Home | Trees | Index | Help |
---|
Package twisted :: Package internet :: Module app :: Class Application |
|
Logger
--+ |Versioned
--+ |OriginalAccessor
--+ |_AbstractServiceCollection
--+ | Application
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 | |
---|---|
Initialize me. | |
__delattr__(self,
k)
(inherited from OriginalAccessor )
| |
__getattr__(self,
k)
(inherited from OriginalAccessor )
| |
__getstate__(self)
| |
__repr__(self)
| |
__setattr__(self,
k,
v)
(inherited from OriginalAccessor )
| |
__setstate__(self,
state)
(inherited from Versioned )
| |
Adds an object implementing delay.IDelayed for execution in my event loop. | |
Add a service to this collection. (inherited from _AbstractServiceCollection )
| |
bindPorts(self)
| |
Connect a given client protocol factory to a specific SSL server. | |
Connect a given client protocol factory to a specific TCP server. | |
Connects a ConnectedDatagramProtocol instance to a UDP
port. | |
Connect a given client protocol factory to a specific UNIX socket. | |
Start an instance of the given connectorType connecting. | |
get_authorizer(self)
| |
Retrieve the named service from this application. (inherited from _AbstractServiceCollection )
| |
Connects a given protocol factory to the given numeric TCP/IP port. | |
Connects a given protocol factory to the given numeric TCP/IP port. | |
Connects a given protocol factory to the given numeric UDP port. | |
Connects a given protocol factory to the UNIX socket with the given filename. | |
Start an instance of the given portType listening. | |
log(self,
bytes)
(inherited from Logger )
| |
A log prefix which describes me. | |
*actually* del self.k without incurring side-effects. (inherited from OriginalAccessor )
| |
*actually* set self.k to v without incurring side-effects. (inherited from OriginalAccessor )
| |
Remove a Delayed previously added to the main event loop with addDelayed. | |
Remove a service from this collection. (inherited from _AbstractServiceCollection )
| |
run(save=1, installSignalHandlers=1) Run this application, running the main loop if necessary. | |
Save a pickle of this application to a file in the current directory. | |
Retrieve persistent uid/gid pair (if possible) and set the current process's euid/egid. | |
Retrieve persistent uid/gid pair (if possible) and set the current process's uid/gid | |
unlistenTCP(self,
port,
interface)
| |
Stop a DatagramProtocol listening on the given local port and interface. | |
unlistenUNIX(self,
filename)
| |
unlistenWith(self,
portType,
*args,
**kw)
| |
Version 1 Persistence Upgrade | |
upgradeToVersion10(self)
| |
upgradeToVersion11(self)
| |
Version 2 Persistence Upgrade | |
Version 3 Persistence Upgrade | |
Version 4 Persistence Upgrade | |
upgradeToVersion5(self)
| |
upgradeToVersion6(self)
| |
upgradeToVersion7(self)
| |
upgradeToVersion8(self)
| |
upgradeToVersion9(self)
| |
(internal) Do a version upgrade. (inherited from Versioned )
| |
_afterShutDown(self)
| |
_beforeShutDown(self)
| |
_Logger__prefix(self)
(inherited from Logger )
|
Class Variable Summary | |
---|---|
int |
persistenceVersion
|
string |
persistStyle
|
int |
running
|
None |
_authorizer
|
int |
_boundPorts
|
Method Details |
---|
__init__(self,
name,
uid=None,
gid=None,
authorizer=None,
authorizer_=None)
|
addDelayed(self, delayed)Adds an object implementing delay.IDelayed for execution in my event loop. The timeout for select() will be calculated based on the sum of all Delayed instances attached to me, using their 'timeout' method. In this manner, delayed instances should have their various callbacks called approximately when they're supposed to be (based on when they were registered). This is not hard realtime by any means; depending on server load, the callbacks may be called in more or less time. However, 'simulation time' for each Delayed instance will be monotonically increased on a regular basis. See the documentation for twisted.python.delay.Delayed and IDelayed for details. |
connectSSL(self, host, port, factory, ctxFactory, timeout=30, bindAddress=None)Connect a given client protocol factory to a specific SSL server. |
connectTCP(self, host, port, factory, timeout=30, bindAddress=None)Connect a given client protocol factory to a specific TCP server. |
connectUDP(self, remotehost, remoteport, protocol, localport=0, interface='', maxPacketSize=8192)Connects a |
connectUNIX(self, address, factory, timeout=30)Connect a given client protocol factory to a specific UNIX socket. |
connectWith(self, connectorType, *args, **kw)Start an instance of the givenconnectorType
connecting.
|
listenSSL(self, port, factory, ctxFactory, backlog=5, interface='')Connects a given protocol factory to the given numeric TCP/IP port. The connection is a SSL one, using contexts created by the context factory. |
listenTCP(self, port, factory, backlog=5, interface='')Connects a given protocol factory to the given numeric TCP/IP port. |
listenUDP(self, port, factory, interface='', maxPacketSize=8192)Connects a given protocol factory to the given numeric UDP port. |
listenUNIX(self, filename, factory, backlog=5)Connects a given protocol factory to the UNIX socket with the given filename. |
listenWith(self, portType, *args, **kw)Start an instance of the givenportType listening.
|
logPrefix(self)A log prefix which describes me. |
removeDelayed(self, delayed)Remove a Delayed previously added to the main event loop with addDelayed. |
run(self, save=1, installSignalHandlers=1)run(save=1, installSignalHandlers=1) Run this application, running the main loop if necessary. If 'save' is true, then when this Application is shut down, it will be persisted to a pickle. 'installSignalHandlers' is passed through to main.run(), the function that starts the mainloop. |
save(self, tag=None, filename=None, passphrase=None)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 |
unlistenUDP(self, port, interface='')Stop a DatagramProtocol listening on the given local port and interface. |
upgradeToVersion1(self)Version 1 Persistence Upgrade |
upgradeToVersion2(self)Version 2 Persistence Upgrade |
upgradeToVersion3(self)Version 3 Persistence Upgrade |
upgradeToVersion4(self)Version 4 Persistence Upgrade |
Class Variable Details |
---|
persistenceVersion
|
persistStyle
|
running
|
_authorizer
|
_boundPorts
|
Home | Trees | Index | Help |
---|
Generated by Epydoc 1.1 on Sat Feb 15 21:19:03 2003 | http://epydoc.sf.net |