Home | Trees | Index | Help |
|
---|
Package twisted :: Package protocols :: Package jabber :: Module component :: Class Service |
|
Accessor
--+ |Versioned
--+ |ApplicationService
--+ | Service
Business logic superclass for external/connect components
This class provides the necessary functionality to create a new piece of business logic that needs a connection a Jabber router via a connecting TCP socket. Subclass key methods such as (componentConnected
, componentDisconnected
) to be notified when
the component connection comes up and goes down.
Method Summary | |
---|---|
| |
_connected(self,
xs)
| |
_disconnected(self,
obj)
| |
Bind this service to a particular password, host, and port on a router. | |
Fired when the component is auth'd with the router | |
Fired when the component has lost the connection to the router | |
Register bootstrap events here | |
If you subclass me, you MUST call me | |
If you subclass me, you MUST call me | |
Inherited from ApplicationService | |
Have my parent disown me. | |
| |
| |
| |
Set my parent, which must be a service collection of some kind. | |
| |
Inherited from Accessor | |
| |
| |
| |
*actually* del self.k without incurring side-effects. | |
*actually* set self.k to v without incurring side-effects. | |
Inherited from Versioned | |
Get state, adding a version number to it on its way out. | |
| |
(internal) Do a version upgrade. |
Instance Variable Summary | |
---|---|
XmlStream |
xmlstream : Accessor for the current XmlStream which connects this object to the
router |
Class Variable Summary | |
---|---|
Inherited from ApplicationService | |
int |
persistenceVersion = 1 |
NoneType |
serviceName = None |
NoneType |
serviceParent = None |
int |
serviceRunning = 0 |
NoneType |
serviceType = None |
Inherited from Versioned | |
tuple |
persistenceForgets = ()
|
Method Details |
---|
__init__(self,
jabberId,
serviceParent)
|
associateWithRouter(self, password, host, port)Bind this service to a particular password, host, and port on a router. The component ID used to connect to the router is determined by the jabberId passed in the constructor.
|
componentConnected(self)Fired when the component is auth'd with the router |
componentDisconnected(self)Fired when the component has lost the connection to the router |
configureEvents(self, factory)Register bootstrap events here |
startService(self)If you subclass me, you MUST call me |
stopService(self)If you subclass me, you MUST call me |
Instance Variable Details |
---|
xmlstreamAccessor for the current XmlStream which connects this object to the router
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.0 on Sat Sep 13 04:20:47 2003 | http://epydoc.sf.net |