ckbot :: nobus :: Protocol :: Class Protocol
[hide private]
[frames] | no frames]

Class Protocol

source code


abstract superclass of all Protocol classes

AbstractProtocol subclasses must implement the following methods:
  p.update()
  p.hintNodes(nodes)
  p.generatePNA( nid )

AbstractProtocol instances must have the following data attributes:
  p.heartbeats -- dict -- nid to last heartbeat

Instance Methods [hide private]
 
__init__(self, *args, **kw)
Allow a bus parameter to be passed to all AbstractProtocol subclass constructors
source code
 
update(self)
*PURE* perform Protocol housekeeping operations
source code
 
hintNodes(self, nodes)
*PURE* use hint that specified nodes are available
source code
 
generatePNA(self, nid)
*PURE* Generate a ProtocolNodeAdaptor for the specified nid
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, *args, **kw)
(Constructor)

source code 

Allow a bus parameter to be passed to all AbstractProtocol subclass constructors

Overrides: object.__init__
(inherited documentation)

update(self)

source code 

*PURE* perform Protocol housekeeping operations

Overrides: ckmodule.AbstractProtocol.update
(inherited documentation)

hintNodes(self, nodes)

source code 

*PURE* use hint that specified nodes are available

Overrides: ckmodule.AbstractProtocol.hintNodes
(inherited documentation)

generatePNA(self, nid)

source code 

*PURE* Generate a ProtocolNodeAdaptor for the specified nid

Overrides: ckmodule.AbstractProtocol.generatePNA
(inherited documentation)