Package ckbot :: Module multiprotocol :: Class MultiProtocol
[hide private]
[frames] | no frames]

Class MultiProtocol

source code


Instance Methods [hide private]
 
__init__(self, *subs)
Create a protocol which multiplexes multiple sub-protocols
source code
 
addSubProtocols(self, *subs)
Add one or more sub-protocols
source code
 
off(self)
Broadcast the p.off() call to any supporting subs
source code
 
reset(self, *argv, **kwarg)
Broadcast the p.reset() call to any supporting subs
source code
 
scan(self, *argv, **kwarg)
Broadcast the p.scan() call to any supporting subs, then collect results and map to external NIDs
source code
 
update(self)
Update all sub-protocols and collect heartbeats
source code
 
hintNodes(self, nodes)
Hint the existence of specified NIDs
source code
 
generatePNA(self, nid)
Generate a ProtocolNodeAdaptor for the specified nid, using the protocol which owns it
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, *subs)
(Constructor)

source code 

Create a protocol which multiplexes multiple sub-protocols

For convenience, these sub-protocols can be listed sequentially in the constructor

Overrides: object.__init__

update(self)

source code 

Update all sub-protocols and collect heartbeats

Overrides: ckmodule.AbstractProtocol.update

hintNodes(self, nodes)

source code 

Hint the existence of specified NIDs

Overrides: ckmodule.AbstractProtocol.hintNodes

generatePNA(self, nid)

source code 

Generate a ProtocolNodeAdaptor for the specified nid, using the protocol which owns it

Overrides: ckmodule.AbstractProtocol.generatePNA