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