Package i5.las2peer.p2p.pastry
Class InfoResponseMessage
java.lang.Object
i5.las2peer.p2p.pastry.InfoResponseMessage
- All Implemented Interfaces:
Serializable
,rice.p2p.commonapi.Message
this message is sent from node to node as response to an
GetInfoMessage
- 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
ConstructorDescriptionInfoResponseMessage
(long responseTo, rice.p2p.commonapi.NodeHandle sendingNode, NodeInformation content) create a new MessageInfoResponseMessage
(long responseTo, rice.p2p.commonapi.NodeHandle sendingNode, String xmlContent) create a new message -
Method Summary
Modifier and TypeMethodDescriptionget the delivered node informationint
long
get the id of the message, this is a response torice.p2p.commonapi.NodeHandle
get the handle of the sending node
-
Constructor Details
-
InfoResponseMessage
public InfoResponseMessage(long responseTo, rice.p2p.commonapi.NodeHandle sendingNode, String xmlContent) create a new message- Parameters:
responseTo
- A message reference idsendingNode
- A sending node handlexmlContent
- An XML data content string
-
InfoResponseMessage
public InfoResponseMessage(long responseTo, rice.p2p.commonapi.NodeHandle sendingNode, NodeInformation content) create a new Message- Parameters:
responseTo
- A message reference idsendingNode
- A sending node handlecontent
- A node information content
-
-
Method Details
-
getResponseToId
public long getResponseToId()get the id of the message, this is a response to- Returns:
- message id
-
getSender
public rice.p2p.commonapi.NodeHandle getSender()get the handle of the sending node- Returns:
- message sender
-
getInfoContent
get the delivered node information- Returns:
- node information
-
getPriority
public int getPriority()- Specified by:
getPriority
in interfacerice.p2p.commonapi.Message
-