rice.p2p.scribe.messaging
Class SubscribeAckMessage
java.lang.Object
rice.p2p.scribe.messaging.AbstractSubscribeMessage
rice.p2p.scribe.messaging.SubscribeAckMessage
- All Implemented Interfaces:
- Serializable, Message, RawMessage, RawSerializable
public class SubscribeAckMessage
- extends AbstractSubscribeMessage
- Version:
- $Id: SubscribeAckMessage.java 3816 2007-08-01 17:54:53Z jeffh $
- Author:
- Alan Mislove
- See Also:
- Serialized Form
TYPE
public static final short TYPE
- See Also:
- Constant Field Values
pathsToRoot
protected List<List<Id>> pathsToRoot
- The contained path to the root
SubscribeAckMessage
public SubscribeAckMessage(NodeHandle source,
List<Topic> topics,
List<List<Id>> pathsToRoot,
int id)
- Constructor which takes a unique integer Id
- Parameters:
id - The unique idsource - The source addressdest - The destination address
getPathsToRoot
public List<List<Id>> getPathsToRoot()
- 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 String toString()
- Returns a String representation of this ack
- Overrides:
toString in class AbstractSubscribeMessage
- Returns:
- A String
getType
public short getType()
- Raw Serialization
serialize
public void serialize(OutputBuffer buf)
throws IOException
- Specified by:
serialize in interface RawSerializable- Overrides:
serialize in class AbstractSubscribeMessage
- Throws:
IOException
build
public static SubscribeAckMessage build(InputBuffer buf,
Endpoint endpoint)
throws IOException
- Throws:
IOException
Copyright © 2010. All Rights Reserved.