class ProcessAlias(AliasBase): (source)
Implements interfaces: twisted.mail.interfaces.IAlias
| Method | __init__ |
|
| Method | __str__ |
Build a string representation of this ProcessAlias instance. |
| Method | createMessageReceiver |
Launch a process and create a message receiver to pass a message to the process. |
| Method | spawnProcess |
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. |
ProcessAlias instance.| Returns | |
bytes | A string containing the command used to invoke 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. |