I am the `root object' in a Twisted process.
I represent a set of persistent, potentially interconnected listening
TCP ports, delayed event schedulers, and service.Services.
| Method Summary |
| |
__init__(self,
name,
uid,
gid,
authorizer,
authorizer_)
Initialize me. |
| |
__getstate__(self)
|
| |
__repr__(self)
|
| |
_afterShutDown(self)
|
| |
_beforeShutDown(self)
|
| |
_doBindPorts(self)
|
| |
bindPorts(self)
|
| |
connectSSL(self,
host,
port,
factory,
ctxFactory,
timeout,
bindAddress)
Connect a given client protocol factory to a specific SSL server. |
| |
connectTCP(self,
host,
port,
factory,
timeout,
bindAddress)
Connect a given client protocol factory to a specific TCP server. |
| |
connectUDP(self,
remotehost,
remoteport,
protocol,
localport,
interface,
maxPacketSize)
Connects a ConnectedDatagramProtocol instance to a UDP
port. |
| |
connectUNIX(self,
address,
factory,
timeout)
Connect a given client protocol factory to a specific UNIX socket. |
| |
connectWith(self,
connectorType,
*args,
**kw)
Start an instance of the given connectorType
connecting. |
| |
get_authorizer(self)
|
| |
listenSSL(self,
port,
factory,
ctxFactory,
backlog,
interface)
Connects a given protocol factory to the given numeric TCP/IP
port. |
| |
listenTCP(self,
port,
factory,
backlog,
interface)
Connects a given protocol factory to the given numeric TCP/IP
port. |
| |
listenUDP(self,
port,
proto,
interface,
maxPacketSize)
Connects a given DatagramProtocol to the given numeric UDP port. |
| |
listenUNIX(self,
filename,
factory,
backlog,
mode)
Connects a given protocol factory to the UNIX socket with the given
filename. |
| |
listenWith(self,
portType,
*args,
**kw)
Start an instance of the given portType listening. |
| |
logPrefix(self)
A log prefix which describes me. |
| |
run(self,
save,
installSignalHandlers)
run(save=1, installSignalHandlers=1) Run this application, running the
main loop if necessary. |
| |
save(self,
tag,
filename,
passphrase)
Save a pickle of this application to a file in the current
directory. |
| |
setEUID(self)
Retrieve persistent uid/gid pair (if possible) and set the current
process's euid/egid. |
| |
setUID(self)
Retrieve persistent uid/gid pair (if possible) and set the current
process's uid/gid |
| |
unlistenSSL(self,
port,
interface)
Stop an SSL Port listening on the given interface and port. |
| |
unlistenTCP(self,
port,
interface)
Stop a Port listening on the given port and interface. |
| |
unlistenUDP(self,
port,
interface)
Stop a DatagramProtocol listening on the given local port and
interface. |
| |
unlistenUNIX(self,
filename)
Stop a Port listening on the given filename. |
| |
unlistenWith(self,
portType,
*args,
**kw)
Stop a Port listening with the given parameters. |
| |
upgradeToVersion1(self)
Version 1 Persistence Upgrade |
| |
upgradeToVersion10(self)
|
| |
upgradeToVersion11(self)
|
| |
upgradeToVersion12(self)
|
| |
upgradeToVersion2(self)
Version 2 Persistence Upgrade |
| |
upgradeToVersion3(self)
Version 3 Persistence Upgrade |
| |
upgradeToVersion4(self)
Version 4 Persistence Upgrade |
| |
upgradeToVersion5(self)
|
| |
upgradeToVersion6(self)
|
| |
upgradeToVersion7(self)
|
| |
upgradeToVersion8(self)
|
| |
upgradeToVersion9(self)
|
| Inherited from Versioned |
| |
__setstate__(self,
state)
|
| |
versionUpgrade(self)
(internal) Do a version upgrade. |
| Inherited from Accessor |
| |
__delattr__(self,
k)
|
| |
__getattr__(self,
k)
|
| |
__setattr__(self,
k,
v)
|
| |
reallyDel(self,
k)
*actually* del self.k without incurring side-effects. |
| |
reallySet(self,
k,
v)
*actually* set self.k to v without incurring side-effects. |
| Inherited from _AbstractServiceCollection |
| |
addService(self,
service)
Add a service to this collection. |
| |
getServiceNamed(self,
serviceName)
Retrieve the named service from this application. |
| |
removeService(self,
service)
Remove a service from this collection. |