Rice Pastry API

rice.pastry.socket.messaging
Class NodeIdResponseMessage

java.lang.Object
  extended byrice.pastry.messaging.Message
      extended byrice.pastry.socket.messaging.SocketMessage
          extended byrice.pastry.socket.messaging.NodeIdResponseMessage
All Implemented Interfaces:
java.io.Serializable

public class NodeIdResponseMessage
extends SocketMessage

A response message to a NodeIdRequestMessage, containing the remote node's nodeId.

Version:
$Id: NodeIdResponseMessage.java,v 1.8 2005/03/11 00:57:59 jeffh Exp $
Author:
Alan Mislove
See Also:
Serialized Form

Field Summary
 
Fields inherited from class rice.pastry.messaging.Message
DEFAULT_PRIORITY_LEVEL
 
Constructor Summary
NodeIdResponseMessage(NodeId nid, long epoch)
          Constructor
 
Method Summary
 long getEpoch()
          Returns the epoch of this address
 NodeId getNodeId()
          Returns the nodeId of the receiver.
 
Methods inherited from class rice.pastry.messaging.Message
getCredentials, getDate, getDestination, getPriority, getSender, getSenderId, setPriority, setSender, stamp
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeIdResponseMessage

public NodeIdResponseMessage(NodeId nid,
                             long epoch)
Constructor

Parameters:
nid - The nodeId of the receiver of the NodeIdRequestMessage.
epoch - DESCRIBE THE PARAMETER
Method Detail

getNodeId

public NodeId getNodeId()
Returns the nodeId of the receiver.

Returns:
The NodeId of the receiver node.

getEpoch

public long getEpoch()
Returns the epoch of this address

Returns:
The epoch

Rice Pastry API

Copyright © 2001-2005 - Rice Pastry.


Imprint-Dataprotection