|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcgl.narada.protocol.GatewayPropagationProtocol
public class GatewayPropagationProtocol
This class is responsible for the creation of gateway between two units at different levels. This process of setting up connection between two units must satisfy the constraints imposed by the setup rules.
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
GatewayPropagationProtocol(short[] connectionVector,
GatewayInfo gatewayInfo)
The GatewayPropagation Protocol - Testing purposes |
|
GatewayPropagationProtocol(short[] connectionVector,
GatewayInfo gatewayInfo,
ProtocolHandler protocolHandler)
The GatewayPropagation Protocol - Constructor |
|
| Method Summary | |
|---|---|
byte[] |
constructGatewaySetupRequest(String node,
int gatewayLevel)
This method is responsible for the creation of a gateway setup request. |
void |
handleConnectionSetupResponse(String node,
byte[] gatewaySetupResponse)
This method is responsible for processing the connection set up response. |
void |
handleGatewayCreationRequest(String node,
byte[] gatewayCreationRequest)
This method is used for establishing a connection between two units in the system. |
static void |
main(String[] args)
The test function for the gateway propagation protocol. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GatewayPropagationProtocol(short[] connectionVector,
GatewayInfo gatewayInfo)
connectionVector - The connection vector for the node in question, which
maintains information regarding the number of allowed
conncurrent connections at different levels.gatewayInfo - The connectivity graph handle
public GatewayPropagationProtocol(short[] connectionVector,
GatewayInfo gatewayInfo,
ProtocolHandler protocolHandler)
connectionVector - The connection vector for the node in question, which
maintains information regarding the number of allowed
conncurrent connections at different levels.gatewayInfo - The connectivity graph handleprotocolHandler - A reference to the protocol Handler. To be able to setup
gateways, the node in question should have an assigned
address.| Method Detail |
|---|
public void handleGatewayCreationRequest(String node, byte[] gatewayCreationRequest)
public void handleConnectionSetupResponse(String node, byte[] gatewaySetupResponse)
node - The node issuing the response, this node is then mapped to a
logical hop of this server node.gatewaySetupResponse - A marshalled representation of the gateway setup response.public byte[] constructGatewaySetupRequest(String node, int gatewayLevel)
node - The node to which this request needs to be issued to, this
node has not yet been configured as a hop by the
system.gatewayLevel - The gateway level that this node seeks to be.
public static void main(String[] args)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||