Rice Pastry API

rice.pastry.wire.messaging.socket
Class HelloResponseMessage

java.lang.Object
  |
  +--rice.pastry.wire.messaging.socket.SocketMessage
        |
        +--rice.pastry.wire.messaging.socket.SocketCommandMessage
              |
              +--rice.pastry.wire.messaging.socket.HelloResponseMessage
All Implemented Interfaces:
java.io.Serializable

public class HelloResponseMessage
extends SocketCommandMessage

Class which represents a greeting response in the socket-based pastry protocol. It contains the InetSocketAddress and nodeId of the socket-accepting node.

Version:
$Id: HelloResponseMessage.java,v 1.1 2002/09/13 03:23:56 amislove Exp $
Author:
Alan Mislove
See Also:
Serialized Form

Constructor Summary
HelloResponseMessage(rice.pastry.wire.WirePastryNode pn, rice.pastry.NodeId dest)
          Constructor
 
Method Summary
 java.net.InetSocketAddress getAddress()
          Returns the address of the source of this message.
 rice.pastry.NodeId getDestination()
          Returns the NodeId of the source
 rice.pastry.NodeId getNodeId()
          Returns the NodeId of the source
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HelloResponseMessage

public HelloResponseMessage(rice.pastry.wire.WirePastryNode pn,
                            rice.pastry.NodeId dest)
Constructor

Method Detail

getAddress

public java.net.InetSocketAddress getAddress()
Returns the address of the source of this message.

Returns:
The address of the source of the message.

getNodeId

public rice.pastry.NodeId getNodeId()
Returns the NodeId of the source

Returns:
The NodeId of the source of this message.

getDestination

public rice.pastry.NodeId getDestination()
Returns the NodeId of the source

Returns:
The NodeId of the source of this message.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

Rice Pastry API

Copyright © 2001 - Rice Pastry.


Imprint-Dataprotection