|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcgl.narada.protocol.NodeAdditionProtocol
public class NodeAdditionProtocol
NodeAdditionProtocol.java This call is responsible for the node addtion protocol. Specific responsibilities for this class include the following
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
NodeAdditionProtocol()
|
|
NodeAdditionProtocol(NodeAddress nodeAddress,
short[] connectionVector,
String ipDiscriminator,
GatewayInfo gatewayInfo)
|
|
| Method Summary | |
|---|---|
byte[] |
constructNodeAdditionRequest(int[] levels,
boolean from)
This method is responsible for constructing the node addition request. |
void |
forwardNodeAddressRequest(int requestedLevel,
ProtocolID requestId,
Destinations origin,
Destinations toReach,
Destinations traversedSoFar)
|
void |
forwardNodeAddressResponse(byte[] nodeAddressResponse)
|
static void |
main(String[] args)
|
void |
processNodeAdditionRequest(String node,
byte[] connectionRequestPacket)
Process the node addition request. |
void |
processNodeAdditionResponse(String node,
byte[] nodeAdditionResponse)
This method processes the Node Addition Response. |
void |
processNodeAddressRequest(byte[] nodeAddressRequest)
Not all addresses can be assigned at the node which has received a node addition request. |
void |
processNodeAddressResponse(byte[] nodeAddressResponse)
|
void |
setAddressAssignerForLevel(int level)
This method sets this node to be the node assigner at a certain level. |
void |
setNodeAddress(NodeAddress nodeAddress)
|
void |
setProtocolHandler(ProtocolHandler protocolHandler)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NodeAdditionProtocol()
public NodeAdditionProtocol(NodeAddress nodeAddress,
short[] connectionVector,
String ipDiscriminator,
GatewayInfo gatewayInfo)
| Method Detail |
|---|
public void setProtocolHandler(ProtocolHandler protocolHandler)
public void setNodeAddress(NodeAddress nodeAddress)
public void setAddressAssignerForLevel(int level)
level - The level for which this node is the address assigner.public void processNodeAddressRequest(byte[] nodeAddressRequest)
public void processNodeAddressResponse(byte[] nodeAddressResponse)
public void forwardNodeAddressResponse(byte[] nodeAddressResponse)
public void forwardNodeAddressRequest(int requestedLevel,
ProtocolID requestId,
Destinations origin,
Destinations toReach,
Destinations traversedSoFar)
public void processNodeAdditionRequest(String node,
byte[] connectionRequestPacket)
node - - The unassigned node from which this request was received.connectionRequestPacket - - The request for set up.
public void processNodeAdditionResponse(String node,
byte[] nodeAdditionResponse)
nodeAdditionResponse - The response to a node/unit addition
request.
public byte[] constructNodeAdditionRequest(int[] levels,
boolean from)
levels - - Integer array specifying the kind of gateways the node
seeks to be.from - - Speicification of the to/from relationship for
node addition.public static void main(String[] args)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||