Rice Pastry API

rice.p2p.past.rawserialization
Class JavaSerializedPastContentHandle

java.lang.Object
  extended by rice.p2p.past.rawserialization.JavaSerializedPastContentHandle
All Implemented Interfaces:
java.io.Serializable, PastContentHandle, RawPastContentHandle

public class JavaSerializedPastContentHandle
extends java.lang.Object
implements RawPastContentHandle

See Also:
Serialized Form

Field Summary
 PastContentHandle handle
           
static short TYPE
           
 
Constructor Summary
JavaSerializedPastContentHandle(PastContentHandle handle)
           
 
Method Summary
 Id getId()
          get the id of the PastContent object associated with this handle
 NodeHandle getNodeHandle()
          get the NodeHandle of the Past node on which the object associated with this handle is stored
 PastContentHandle getPCH()
           
 short getType()
           
 void serialize(OutputBuffer buf)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TYPE

public static final short TYPE
See Also:
Constant Field Values

handle

public PastContentHandle handle
Constructor Detail

JavaSerializedPastContentHandle

public JavaSerializedPastContentHandle(PastContentHandle handle)
Method Detail

serialize

public void serialize(OutputBuffer buf)
               throws java.io.IOException
Specified by:
serialize in interface RawPastContentHandle
Throws:
java.io.IOException

getType

public short getType()
Specified by:
getType in interface RawPastContentHandle

toString

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

getId

public Id getId()
Description copied from interface: PastContentHandle
get the id of the PastContent object associated with this handle

Specified by:
getId in interface PastContentHandle
Returns:
the id

getNodeHandle

public NodeHandle getNodeHandle()
Description copied from interface: PastContentHandle
get the NodeHandle of the Past node on which the object associated with this handle is stored

Specified by:
getNodeHandle in interface PastContentHandle
Returns:
the id

getPCH

public PastContentHandle getPCH()

Rice Pastry API

Copyright © 2001-2005 - Rice Pastry.


Imprint-Dataprotection