rice.pastry.routing
Class RequestRouteRow
java.lang.Object
rice.pastry.messaging.Message
rice.pastry.messaging.PRawMessage
rice.pastry.routing.RequestRouteRow
- All Implemented Interfaces:
- Serializable, Message, RawMessage, RawSerializable
public class RequestRouteRow
- extends PRawMessage
- implements Serializable
Request a row from the routing table from another node.
- Version:
- $Id: RequestRouteRow.java 3613 2007-02-15 14:45:14Z jstewart $
- Author:
- Andrew Ladd
- See Also:
- Serialized Form
|
Field Summary |
static short |
TYPE
|
TYPE
public static final short TYPE
- See Also:
- Constant Field Values
RequestRouteRow
public RequestRouteRow(NodeHandle nh,
short r)
- Constructor.
- Parameters:
nh - the return handle.r - which row
RequestRouteRow
public RequestRouteRow(Date stamp,
NodeHandle nh,
short r)
- Constructor.
- Parameters:
stamp - the timestampnh - the return handler - which row
RequestRouteRow
public RequestRouteRow(NodeHandle sender,
InputBuffer buf)
throws IOException
- Throws:
IOException
returnHandle
public NodeHandle returnHandle()
- The return handle for the message
- Returns:
- the node handle
getRow
public short getRow()
- Gets the row that made the request.
- Returns:
- the row.
toString
public String toString()
- Overrides:
toString in class Object
getType
public short getType()
- Raw Serialization
- Specified by:
getType in interface RawMessage
serialize
public void serialize(OutputBuffer buf)
throws IOException
- Specified by:
serialize in interface RawSerializable
- Throws:
IOException
Copyright © 2010. All Rights Reserved.