|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcgl.narada.protocol.RtpEventRoutingProtocol
public class RtpEventRoutingProtocol
The EventRoutingProtocol 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 | |
|---|---|
RtpEventRoutingProtocol(NodeAddress _nodeAddress)
This constructor is in place for stand almone testing of the class |
|
RtpEventRoutingProtocol(NodeAddress _nodeAddress,
GatewayInfo gatewayInfo,
RtpProfilePropagation rtpPropagationProtocol,
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(RtpEvent rtpEvent,
Destinations toReach)
This method recursively computes destinations for lower levels. |
void |
calculateDestinations(RtpEvent rtpEvent,
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[] rtpEventBytes)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RtpEventRoutingProtocol(NodeAddress _nodeAddress,
GatewayInfo gatewayInfo,
RtpProfilePropagation rtpPropagationProtocol,
ClientConnectionHandler clientConnectionHandler,
ProtocolHandler protocolHandler)
_nodeAddress - The node address of the node in question.gatewayInfo - Reference to the connectivity graph hosted at the nodertpPropagationProtocol - Reference to the RTP 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 RtpEventRoutingProtocol(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[] rtpEventBytes)
public void calculateDestinations(RtpEvent rtpEvent,
Destinations toReach)
rtpEvent - The event for which destinations need to be
computedtoReach - The destinations that need to be reached
public void calculateDestinations(RtpEvent rtpEvent,
Destinations toReach,
int computeForLevel)
rtpEvent - 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 | ||||||||