class documentation
class ProcessAlias(AliasBase): (source)
Constructor: ProcessAlias(path, *args)
Implements interfaces: twisted.mail.interfaces.IAlias
An alias which is handled by the execution of a program.
Method | __init__ |
No summary |
Method | __str__ |
Build a string representation of this ProcessAlias instance. |
Method | create |
Launch a process and create a message receiver to pass a message to the process. |
Method | spawn |
Spawn a process. |
Instance Variable | path |
The arguments to pass to the process. The first string is the executable's name. |
Instance Variable | program |
The path of the program to be executed. |
Instance Variable | reactor |
A reactor which will be used to create and timeout the child process. |
Inherited from AliasBase
:
Method | domain |
Return the domain associated with original address. |
Method | resolve |
Map this alias to its ultimate destination. |
Instance Variable | domains |
See __init__ . |
Instance Variable | original |
The original address being aliased. |
Build a string representation of this ProcessAlias
instance.
Returns | |
bytes | A string containing the command used to invoke the process. |
Launch a process and create a message receiver to pass a message to the process.
Returns | |
MessageWrapper | A message receiver which delivers a message to the process. |
Spawn a process.
This wraps the spawnProcess
method on reactor
so that it can be customized for test purposes.
Parameters | |
proto:IProcessProtocol provider | An object which will be notified of all events related to the created process. |
program:bytes | The full path name of the file to execute. |
path:list of bytes | The arguments to pass to the process. The first string should be the executable's name. |
Returns | |
IProcessTransport provider | A process transport. |