|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcgl.narada.protocol.TagValueEventRoutingProtocol
public class TagValueEventRoutingProtocol
The TagValueEventRoutingProtocol is responsible for updating routing information associated with events. The routing information would vary depending on the link over which the event was received. Any given node could be connected to multiple links which have different gateway behavior. The event routing protocol needs to handle every such case.
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
TagValueEventRoutingProtocol(NodeAddress _nodeAddress)
This constructor is in place for stand almone testing of the class |
|
TagValueEventRoutingProtocol(NodeAddress _nodeAddress,
GatewayInfo gatewayInfo,
TagValueProfilePropagation tvProfileProp,
ClientConnectionHandler clientConnectionHandler,
ProtocolHandler protocolHandler)
The constructor requires both the nodeAdress which it would use to update routing information associated with a certain received event, and also the gatewayInfo which would be used to compute the next most efficient hop |
|
| Method Summary | |
|---|---|
void |
calculateDestinations(MEvent mEvent,
Destinations toReach)
This method recursively computes destinations for lower levels. |
void |
calculateDestinations(MEvent mEvent,
Destinations toReach,
int computeForLevel)
This method recursively computes destinations for lower levels. |
static void |
main(String[] args)
|
void |
processEventReceived(byte[] receivedEventBytes)
This method is responsible for the calculation of destination lists associated with the event. |
void |
processEventReceivedFromClient(byte[] receivedEventBytes)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TagValueEventRoutingProtocol(NodeAddress _nodeAddress,
GatewayInfo gatewayInfo,
TagValueProfilePropagation tvProfileProp,
ClientConnectionHandler clientConnectionHandler,
ProtocolHandler protocolHandler)
_nodeAddress - The node address of the node in question.gatewayInfo - Reference to the connectivity graph hosted at the nodetvProfileProp - Reference to the profile propagation protocol which
would provide uswith destinations at different levels.clientConnectionHandler - This is useful for routing events to
clients within the destination lists that are generated.protocolHandler - A handle to the protocol Handlerpublic TagValueEventRoutingProtocol(NodeAddress _nodeAddress)
_nodeAddress - The node address of the node in question.| Method Detail |
|---|
public void processEventReceived(byte[] receivedEventBytes)
receivedEventBytes - The event and the event routing information
encapsulated within a stream of bytespublic void processEventReceivedFromClient(byte[] receivedEventBytes)
public void calculateDestinations(MEvent mEvent,
Destinations toReach)
mEvent - The event for which destinations need to be
computedtoReach - The destinations that need to be reached
public void calculateDestinations(MEvent mEvent,
Destinations toReach,
int computeForLevel)
mEvent - The event for which destinations need to be
computedtoReach - The destinations that need to be reachedpublic static void main(String[] args)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||