rice.p2p.past.messaging
Class LookupHandlesMessage
java.lang.Object
rice.p2p.past.messaging.PastMessage
rice.p2p.past.messaging.ContinuationMessage
rice.p2p.past.messaging.LookupHandlesMessage
- All Implemented Interfaces:
- java.io.Serializable, Continuation, Message, RawMessage
- Direct Known Subclasses:
- GCLookupHandlesMessage
public class LookupHandlesMessage
- extends ContinuationMessage
- Version:
- $Id: LookupHandlesMessage.java 3524 2007-01-09 14:09:27Z jeffh $
result should be MultiringNodeHandleSet
- Author:
- Alan Mislove, Ansley Post, Peter Druschel
- See Also:
- Serialized Form
Field Summary |
static short |
TYPE
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
TYPE
public static final short TYPE
- See Also:
- Constant Field Values
LookupHandlesMessage
public LookupHandlesMessage(int uid,
Id id,
int max,
NodeHandle source,
Id dest)
- Constructor
- Parameters:
uid
- The unique idid
- The location to be storedmax
- The number of replicassource
- The source addressdest
- The destination address
LookupHandlesMessage
protected LookupHandlesMessage(InputBuffer buf,
Endpoint endpoint)
throws java.io.IOException
- Throws:
java.io.IOException
getId
public Id getId()
- Method which returns the id
- Returns:
- The contained id
getMax
public int getMax()
- Method which returns the number of replicas
- Returns:
- The number of replicas to fetch
toString
public java.lang.String toString()
- Returns a string representation of this message
- Overrides:
toString
in class java.lang.Object
- Returns:
- A string representing this message
getType
public short getType()
- Raw Serialization
serialize
public void serialize(OutputBuffer buf)
throws java.io.IOException
- Description copied from class:
ContinuationMessage
- Deprecated to cause warnings.
use serialize(OutputBuffer buf, boolean javaSerialize)
- Specified by:
serialize
in interface RawMessage
- Specified by:
serialize
in class ContinuationMessage
- Throws:
java.io.IOException
serializeHelper
protected void serializeHelper(OutputBuffer buf)
throws java.io.IOException
- So that it can be subclassed without serializing a version here
- Parameters:
buf
-
- Throws:
java.io.IOException
build
public static LookupHandlesMessage build(InputBuffer buf,
Endpoint endpoint)
throws java.io.IOException
- Throws:
java.io.IOException
Copyright © 2001-2005 - Rice Pastry.