|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcgl.narada.protocol.ConnectionPropagation
public class ConnectionPropagation
ConnectionPropogation
This class is responsible for the propagation of a connection within only the
relevant units of the subsystem. Thus a level-0 gateway that has been added,
needs to have its information disseminated only within the confines of the
cluster that it belongs to. In general a level l gateway should be
disseminated only within the confines of (l+1) unit that it belongs
to. Connections thus received are used to update the connectivity graph, and
result in the updating of the routing cache.
This class performs this function for connections that are added as a result
of the node addition protocol or gateways established using the gateway
propagation protocol.
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
ConnectionPropagation(GatewayInfo gatewayInfo,
ProtocolHandler protocolHandler)
The connection Propagation constructor |
|
| Method Summary | |
|---|---|
static void |
main(String[] args)
|
void |
processConnectionBuffer(byte[] connectionsBufferStream)
When a new node/unit is added to the existing system, the newly added unit needs to recreate the view of the connectivitives that exist throughout the system. |
void |
processConnectionPropagation(byte[] connectionPropBuffer)
When a node/unit is added to the system. |
void |
propagateConnectionBufferToHop(Gateway hop)
In response to a sub system (LEVEL level) being added to an existing system, the node belonging to the system needs to exachange data regarding gateways at level onwards in the newly merged system. |
void |
propagateConnectionInformation(Connection connection,
boolean connectionAdded)
This method is invoked by the node which has received a node set up request, after the setup is complete. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConnectionPropagation(GatewayInfo gatewayInfo,
ProtocolHandler protocolHandler)
gatewayInfo - The connectivity graphprotocolHandler - The protocol handler for the server node.| Method Detail |
|---|
public void processConnectionPropagation(byte[] connectionPropBuffer)
connectionPropBuffer - This is the byte stream that is received over a link
public void propagateConnectionInformation(Connection connection,
boolean connectionAdded)
connection - The connection that has been establishedpublic void processConnectionBuffer(byte[] connectionsBufferStream)
connectionsBufferStream - The serialized stream of relevant connections that has been
received over a gateway.public void propagateConnectionBufferToHop(Gateway hop)
hop - The gateway over which the serialized stream of relevant
connections needs to be sent over.public static void main(String[] args)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||