Package g4ds :: Module g4dsconfigurationcontroller :: Class RoutingController
[show private | hide private]
[frames | no frames]

Class RoutingController


Handles controlling of routing.
Method Summary
  __init__(self)
Yet empty Constructor.
  dispatch(self, node, message, incomingmessageid)
Handles incoming messages.
  downloadRoutingTable(self, destination, destinationcommunity, timeout)
Download routing table from one peer.
  processIncomingRoutingUpdate(self, destination, data, messageid)
Applies an incoming routing table update to the local routing table manager.
  replyToDownloadRoutingTable(self, destination, destinationcommunity, messageid)
Reply to the request of routing table.
String sendRoutingControllerMessage(self, destination, action, args, data, messagereference, sucess)
Any routing controller message should be send through this interface.
  sendRoutingTable(self, destination, destinationcommunity, timeout, msgid, requestReply)
Sends the local routing table xml encoded to one peer.
  _downloadRoutingTableFromOneNode(self, destination, destinationcommunity, inbackground, status)
Starts a job to download the routing table from one node.
  _uploadRoutingTableToOneNode(self, destination, destinationcommunity, inbackground, status, messageid, requestReply)
Job function for routing table upload.

Method Details

__init__(self)
(Constructor)

Yet empty Constructor.

dispatch(self, node, message, incomingmessageid)

Handles incoming messages.
Parameters:
node - Data of the message as DOM tree
           (type=xml.dom.Node)
message - XML Message in String representation
           (type=String)

downloadRoutingTable(self, destination, destinationcommunity=None, timeout=120)

Download routing table from one peer.

processIncomingRoutingUpdate(self, destination, data, messageid)

Applies an incoming routing table update to the local routing table manager.

replyToDownloadRoutingTable(self, destination, destinationcommunity, messageid)

Reply to the request of routing table.

sendRoutingControllerMessage(self, destination, action, args, data=None, messagereference=None, sucess='0')

Any routing controller message should be send through this interface.
Parameters:
action - Action to perform - check constants in this module
           (type=String)
args - Arguments to pass in form of dictionary - name | value
           (type=dict)
data - Any additional data which does not fit into the args
           (type=String)
Returns:
The ID of the message
           (type=String)

sendRoutingTable(self, destination, destinationcommunity=None, timeout=120, msgid=None, requestReply=1)

Sends the local routing table xml encoded to one peer.

_downloadRoutingTableFromOneNode(self, destination, destinationcommunity, inbackground=1, status=None)

Starts a job to download the routing table from one node.

_uploadRoutingTableToOneNode(self, destination, destinationcommunity, inbackground=1, status=None, messageid=None, requestReply=1)

Job function for routing table upload.

Generated by Epydoc 2.0 on Sat Oct 22 22:52:46 2005 http://epydoc.sf.net