Class InfoResponseMessage

java.lang.Object
i5.las2peer.p2p.pastry.InfoResponseMessage
All Implemented Interfaces:
Serializable, rice.p2p.commonapi.Message

public class InfoResponseMessage extends Object implements rice.p2p.commonapi.Message
this message is sent from node to node as response to an GetInfoMessage
See Also:
  • Constructor Details

    • InfoResponseMessage

      public InfoResponseMessage(long responseTo, rice.p2p.commonapi.NodeHandle sendingNode, String xmlContent)
      create a new message
      Parameters:
      responseTo - A message reference id
      sendingNode - A sending node handle
      xmlContent - 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 id
      sendingNode - A sending node handle
      content - 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

      public NodeInformation getInfoContent()
      get the delivered node information
      Returns:
      node information
    • getPriority

      public int getPriority()
      Specified by:
      getPriority in interface rice.p2p.commonapi.Message