|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsg.edu.nus.protocol.body.Body
sg.edu.nus.protocol.body.SPLIAdjacentReplyBody
public class SPLIAdjacentReplyBody
Implement the message body used for replying adjacent info in case of node failure
Field Summary | |
---|---|
static boolean |
FROM_LEFT_TO_RIGHT
|
static boolean |
FROM_RIGHT_TO_LEFT
|
Constructor Summary | |
---|---|
SPLIAdjacentReplyBody(PhysicalInfo physicalSender,
LogicalInfo logicalSender,
AdjacentNodeInfo newAdjacent,
boolean direction,
LogicalInfo logicalDestination)
Construct the message body with specified parameters. |
|
SPLIAdjacentReplyBody(java.lang.String serializeData)
Construct the message body with a string value. |
Method Summary | |
---|---|
boolean |
getDirection()
Get direction of the new adjacent node |
LogicalInfo |
getLogicalDestination()
Get logical address of the receiver |
LogicalInfo |
getLogicalSender()
Get logical address of the sender |
AdjacentNodeInfo |
getNewAdjacent()
Get information of the new adjacent node |
PhysicalInfo |
getPhysicalSender()
Get physical address of the sender |
java.lang.String |
getString()
Return a readable string for testing or writing in the log file |
java.lang.String |
toString()
|
Methods inherited from class sg.edu.nus.protocol.body.Body |
---|
clone |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final boolean FROM_LEFT_TO_RIGHT
public static final boolean FROM_RIGHT_TO_LEFT
Constructor Detail |
---|
public SPLIAdjacentReplyBody(PhysicalInfo physicalSender, LogicalInfo logicalSender, AdjacentNodeInfo newAdjacent, boolean direction, LogicalInfo logicalDestination)
physicalSender
- physical address of the senderlogicalSender
- logical address of the sendernewAdjacent
- new adjacent node infodirection
- direction of the new adjacent nodelogicalDestination
- logical address of the receiverpublic SPLIAdjacentReplyBody(java.lang.String serializeData)
serializeData
- the string value that contains
the serialized message bodyMethod Detail |
---|
public PhysicalInfo getPhysicalSender()
public LogicalInfo getLogicalSender()
public AdjacentNodeInfo getNewAdjacent()
public boolean getDirection()
public LogicalInfo getLogicalDestination()
public java.lang.String getString()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |