Package i5.las2peer.p2p.pastry
Class GetInfoMessage
java.lang.Object
i5.las2peer.p2p.pastry.GetInfoMessage
- All Implemented Interfaces:
Serializable
,rice.p2p.commonapi.Message
- See Also:
-
Field Summary
Fields inherited from interface rice.p2p.commonapi.Message
DEFAULT_PRIORITY, HIGH_PRIORITY, LOW_PRIORITY, LOWEST_PRIORITY, MAX_PRIORITY, MEDIUM_HIGH_PRIORITY, MEDIUM_LOW_PRIORITY, MEDIUM_PRIORITY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionlong
getId()
a random id for answer collectionint
rice.p2p.commonapi.NodeHandle
get the sender of the information request
-
Constructor Details
-
GetInfoMessage
public GetInfoMessage(rice.p2p.commonapi.NodeHandle sender) create a new- Parameters:
sender
- A sending node handle
-
-
Method Details
-
getSender
public rice.p2p.commonapi.NodeHandle getSender()get the sender of the information request- Returns:
- sending node of the request
-
getId
public long getId()a random id for answer collection- Returns:
- id of this message
-
getPriority
public int getPriority()- Specified by:
getPriority
in interfacerice.p2p.commonapi.Message
-