|
||||||||||
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.SPLBGetLoadInfoReplyBody
public class SPLBGetLoadInfoReplyBody
Implement the message body used for replying workload information of a super peer to the requester
Constructor Summary | |
---|---|
SPLBGetLoadInfoReplyBody(PhysicalInfo physicalSender,
LogicalInfo logicalSender,
int numOfElement,
int order,
boolean direction,
LogicalInfo logicalDestination)
Construct the message body with speicified parameters. |
|
SPLBGetLoadInfoReplyBody(java.lang.String serializeData)
Construct the message body with a string value. |
Method Summary | |
---|---|
boolean |
getDirection()
Get direction of sending request |
LogicalInfo |
getLogicalDestination()
Get logical address of the receiver |
LogicalInfo |
getLogicalSender()
Get logical address of the sender |
int |
getNumOfElement()
Get number of stored item at the node |
int |
getOrder()
Get order of the 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 |
Constructor Detail |
---|
public SPLBGetLoadInfoReplyBody(PhysicalInfo physicalSender, LogicalInfo logicalSender, int numOfElement, int order, boolean direction, LogicalInfo logicalDestination)
physicalSender
- physical address of the senderlogicalSender
- logical address of the sendernumOfElement
- number of stored itemorder
- order of stored itemdirection
- direction of sending requestlogicalDestination
- logical address of the receiverpublic SPLBGetLoadInfoReplyBody(java.lang.String serializeData)
serializeData
- the string value that contains
the serialized message bodyMethod Detail |
---|
public PhysicalInfo getPhysicalSender()
public LogicalInfo getLogicalSender()
public int getNumOfElement()
public int getOrder()
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 |