planet.scribe.messaging
Class SubscribeAckMessage

java.lang.Object
  extended by planet.scribe.messaging.ScribeMessage
      extended by planet.scribe.messaging.AbstractSubscribeMessage
          extended by planet.scribe.messaging.SubscribeAckMessage
All Implemented Interfaces:
java.io.Serializable, Message

public class SubscribeAckMessage
extends AbstractSubscribeMessage

The ack for a subscribe message.

Version:
$Id: SubscribeAckMessage.java,v 1.3 2003/10/14 02:58:15 amislove Exp $
Author:
Alan Mislove
See Also:
Serialized Form

Field Summary
protected  Id[] pathToRoot
          The contained path to the root
 
Fields inherited from class planet.scribe.messaging.AbstractSubscribeMessage
id
 
Fields inherited from class planet.scribe.messaging.ScribeMessage
source, topic
 
Constructor Summary
SubscribeAckMessage(NodeHandle source, Topic topic, Id[] pathToRoot, int id)
           
 
Method Summary
 Id[] getPathToRoot()
          Returns the path to the root for the node receiving this message
 java.lang.String toString()
          Returns a String represneting this message
 
Methods inherited from class planet.scribe.messaging.AbstractSubscribeMessage
getId
 
Methods inherited from class planet.scribe.messaging.ScribeMessage
getSource, getTopic, setSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

pathToRoot

protected Id[] pathToRoot
The contained path to the root

Constructor Detail

SubscribeAckMessage

public SubscribeAckMessage(NodeHandle source,
                           Topic topic,
                           Id[] pathToRoot,
                           int id)
Parameters:
source - The source address
topic - Message topic.
pathToRoot - Path wiht Id to root node.
id - The unique id
Method Detail

getPathToRoot

public Id[] getPathToRoot()
Returns the path to the root for the node receiving this message

Returns:
The new path to the root for the node receiving this message

toString

public java.lang.String toString()
Returns a String represneting this message

Overrides:
toString in class java.lang.Object
Returns:
A String of this message