Trees | Indices | Help |
|
---|
|
twisted.spread.jelly.Jellyable --+ | twisted.spread.flavors.Serializable --+ | twisted.spread.flavors.Referenceable --+ | RemoteCommand --+ | LoggedRemoteCommand
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.
Instance Methods | |||
|
|||
|
|||
|
|||
|
|||
twisted.internet.defer.Deferred
|
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from Inherited from Inherited from |
Class Variables | |
rc = None hash(x) |
|
debug = False
|
|
Inherited from Inherited from |
Instance Variables | |
logs maps logname to a LogFile instance |
|
Inherited from |
Method Details |
|
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.
|
Tell the slave to start executing the remote command.
|
|
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:
and also (for now):
This method should do cleanup, like closing log files. It should normally return the 'failure' argument, so that any exceptions will be propagated to the Step. If it wants to consume them, return None instead.
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Fri Oct 29 10:00:42 2010 | http://epydoc.sourceforge.net |