rice.p2p.past.gc.rawserialization
Class JavaSerializedGCPastContentHandle
java.lang.Object
rice.p2p.past.gc.rawserialization.JavaSerializedGCPastContentHandle
- All Implemented Interfaces:
- Serializable, GCPastContentHandle, RawGCPastContentHandle, PastContentHandle, RawPastContentHandle
public class JavaSerializedGCPastContentHandle
- extends Object
- implements RawGCPastContentHandle
- See Also:
- Serialized Form
TYPE
public static final short TYPE
- See Also:
- Constant Field Values
handle
public GCPastContentHandle handle
JavaSerializedGCPastContentHandle
public JavaSerializedGCPastContentHandle(GCPastContentHandle handle)
serialize
public void serialize(OutputBuffer buf)
throws IOException
- Specified by:
serialize in interface RawPastContentHandle
- Throws:
IOException
getType
public short getType()
- Specified by:
getType in interface RawPastContentHandle
toString
public String toString()
- Overrides:
toString in class 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()
getVersion
public long getVersion()
- Description copied from interface:
GCPastContentHandle
- Returns the version number associated with this PastContentHandle -
version numbers are designed to be monotonically increasing numbers which
signify different versions of the same object.
- Specified by:
getVersion in interface GCPastContentHandle
- Returns:
- The version number of this object
getExpiration
public long getExpiration()
- Description copied from interface:
GCPastContentHandle
- Returns the current expiration time of this object.
- Specified by:
getExpiration in interface GCPastContentHandle
- Returns:
- The current expiration time of this object
Copyright © 2010. All Rights Reserved.