ist.palcom.routing.util
Class SimpleMulticastRoutingManager

java.lang.Object
  extended by ist.palcom.routing.util.AbstractRoutingManager
      extended by ist.palcom.routing.util.SimpleMulticastRoutingManager
All Implemented Interfaces:
IHgraphNode, RoutingManager

public class SimpleMulticastRoutingManager
extends AbstractRoutingManager

Very simple multicast forwarder. This manager will forward all multicast messages received to the nodes reachable by its mediamanager and deliver the message to the thread the subscribe to the manager.


Field Summary
 
Fields inherited from class ist.palcom.routing.util.AbstractRoutingManager
_node, manager, pubSubManager, recieverThread, registeredThreads, scheduler
 
Fields inherited from interface ist.palcom.hgraph.IHgraphNode
CHILD_NAME_CLASH, CIRCULARITY_CLASH, COMMAND_OR_NODE_MISSING, ERROR, HANDLER_MISSING, INVOKATOR_MISSING, LISTENER_MISSING, NODE_NOT_CHILD, PATH_MISSING, SIBLING_ALREADY_EXISTS, SIBLING_NONEXISTENT, SIBLING_REFERENCE_ALREADY_EXISTS, SIBLING_REFERENCE_NONEXISTENT, STATUS_OK, VALUE_ALREADY_EXISTS, VALUE_NOT_PRESENT
 
Constructor Summary
SimpleMulticastRoutingManager(PalcomScheduler scheduler, MediaManager mediaManager, RoutingPubSubManager pubSubManager, URN deviceURN)
           
 
Method Summary
protected  void handleRoutingMessage(AbstractRoutingMessage message)
          Method that should be implemented to handle the different routing messages that the specific implementation of a routing manager can handle.
 void send(Message message)
           
 boolean send(Message message, URN senderURN, Selector senderSelector, URN receiverURN, Selector receiverSelector)
           
protected  void startRouting()
           
 
Methods inherited from class ist.palcom.routing.util.AbstractRoutingManager
addErrorHandler, addNodeChild, getChildIterator, getFuncFunc, getLocalDeviceCache, getNodeName, getNodeParent, getPath, getRoutingSelector, getRoutingURN, getSiblingFunc, getValueFunc, hasChildNamed, isAncestorOf, registerAsListener, registerForHeartBeats, removeNodeChild, send, sendBroadcast, sendGroupJoinMessage, sendGroupLeaveMessage, sendHeartAttack, sendHeartBeat, setDiscoverySelector, setLocalDeviceCache, setLocalDeviceID, setLocalDiscoveryVersion, setLocalStatusFlag, setLocalStatusFlag, setNodeName, setNodeParent, startReceiving, stop, stopReceiving, stopReceiving, toXML, toXMLFull, toXMLFullRecursively, toXMLRecursively, unregisterDevice, updatePath
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleMulticastRoutingManager

public SimpleMulticastRoutingManager(PalcomScheduler scheduler,
                                     MediaManager mediaManager,
                                     RoutingPubSubManager pubSubManager,
                                     URN deviceURN)
Method Detail

send

public boolean send(Message message,
                    URN senderURN,
                    Selector senderSelector,
                    URN receiverURN,
                    Selector receiverSelector)
Specified by:
send in interface RoutingManager
Specified by:
send in class AbstractRoutingManager

send

public void send(Message message)

handleRoutingMessage

protected void handleRoutingMessage(AbstractRoutingMessage message)
Description copied from class: AbstractRoutingManager
Method that should be implemented to handle the different routing messages that the specific implementation of a routing manager can handle.

Specified by:
handleRoutingMessage in class AbstractRoutingManager
Parameters:
message - - message send between the nodes in the network to update/establish routing.

startRouting

protected void startRouting()
Specified by:
startRouting in class AbstractRoutingManager