Home | Trees | Index | Help |
|
---|
Package buildbot :: Package process :: Module buildstep :: Class LoggedRemoteCommand |
|
Jellyable
--+ |Serializable
--+ |Referenceable
--+ |RemoteCommand
--+ | LoggedRemoteCommand
RemoteShellCommand
I am a RemoteCommand
which gathers output from the
remote command into one or more local log files. My
self.logs
dictionary contains references to these buildbot.status.builder.LogFile
instances.
Any stdout/stderr/header updates from the slave will be put into
self.logs['stdio']
, if it exists. If the remote command uses
other log files, they will go into other entries in
self.logs
.
If you want to use stdout or stderr, you should create a LogFile named 'stdio' and pass it to my useLog() message. Otherwise stdout/stderr will be ignored, which is probably not what you want.
Unless you tell me otherwise, when my command completes I will close all the LogFiles that I know about.Method Summary | |
---|---|
__init__(self,
*args,
**kwargs)
| |
__repr__(self)
| |
addHeader(self,
data)
| |
addStderr(self,
data)
| |
addStdout(self,
data)
| |
addToLog(self,
logname,
data)
| |
Subclasses can override this. | |
remoteUpdate(self,
update)
| |
twisted.internet.defer.Deferred
|
Tell the slave to start executing the remote command. |
Start routing messages from a remote logfile to a local LogFile | |
Inherited from RemoteCommand | |
| |
| |
None |
Called by the slave's buildbot.slave.bot.SlaveBuilder to notify
me the remote command has finished. |
I am called by the slave's buildbot.slave.bot.SlaveBuilder so I can
receive updates from the running remote command. | |
| |
Inherited from Referenceable | |
(internal) | |
A remote message has been received. | |
Inherited from Serializable | |
Return an ID which uniquely represents this object for this process. | |
Inherited from Jellyable | |
|
Instance Variable Summary | |
---|---|
logs : maps logname to a LogFile instance | |
Inherited from RemoteCommand | |
boolean | active : whether the command is currently running |
Class Variable Summary | |
---|---|
bool |
debug = False
|
NoneType |
rc = None |
Inherited from RemoteCommand | |
list of one int | commandCounter : provides a unique value for each RemoteCommand executed across all
slaves |
Inherited from Referenceable | |
Implements |
__implemented__ = <implementedBy twisted.spread.flavors....
|
ClassProvides |
__provides__ = <zope.interface.declarations.ClassProvide...
|
NoneType |
perspective = None |
Inherited from Jellyable | |
ClassProvides |
__providedBy__ = <zope.interface.declarations.ClassProvi...
|
Method Details |
---|
remoteComplete(self, maybeFailure)Subclasses can override this. This is called when the RemoteCommand has finished. 'maybeFailure' will be None if the command completed normally, or a Failure instance in one of the following situations:
|
start(self)Tell the slave to start executing the remote command.
|
useLog(self, loog, closeWhenFinished=False, logfileName=None)Start routing messages from a remote logfile to a local LogFile I take a local ILogFile instance in 'loog', and arrange to route remote log messages for the logfile named 'logfileName' into it. By default this logfileName comes from the ILogFile itself (using the name by which the ILogFile will be displayed), but the 'logfileName' argument can be used to override this. For example, if logfileName='stdio', this logfile will collect text from the stdout and stderr of the command.
|
Instance Variable Details |
---|
logsmaps logname to a LogFile instance |
Class Variable Details |
---|
debug
|
rc
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Sun Dec 10 22:04:45 2006 | http://epydoc.sf.net |