|
Rice Pastry API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object rice.p2p.past.gc.rawserialization.JavaSerializedGCPastContent
public class JavaSerializedGCPastContent
Field Summary | |
---|---|
GCPastContent |
content
|
static short |
TYPE
|
Constructor Summary | |
---|---|
JavaSerializedGCPastContent(GCPastContent content)
|
Method Summary | |
---|---|
PastContent |
checkInsert(Id id,
PastContent existingContent)
Checks if a insert operation should be allowed. |
PastContent |
getContent()
|
GCPastContentHandle |
getHandle(GCPast local,
long expiration)
Produces a handle for this content object. |
PastContentHandle |
getHandle(Past local)
Produces a handle for this content object. |
Id |
getId()
Returns the Id under which this object is stored in Past. |
GCPastMetadata |
getMetadata(long expiration)
Returns the metadata which should be stored with this object. |
short |
getType()
|
long |
getVersion()
Returns the version number associated with this PastContent object - version numbers are designed to be monotonically increasing numbers which signify different versions of the same object. |
boolean |
isMutable()
States if this content object is mutable. |
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 |
---|
public static final short TYPE
public GCPastContent content
Constructor Detail |
---|
public JavaSerializedGCPastContent(GCPastContent content)
Method Detail |
---|
public void serialize(OutputBuffer buf) throws java.io.IOException
serialize
in interface RawPastContent
java.io.IOException
public short getType()
getType
in interface RawPastContent
public java.lang.String toString()
toString
in class java.lang.Object
public PastContent getContent()
public PastContent checkInsert(Id id, PastContent existingContent) throws PastException
PastContent
checkInsert
in interface PastContent
id
- the key identifying the object
PastException
public PastContentHandle getHandle(Past local)
PastContent
getHandle
in interface PastContent
public Id getId()
PastContent
getId
in interface PastContent
public boolean isMutable()
PastContent
isMutable
in interface PastContent
public long getVersion()
GCPastContent
getVersion
in interface GCPastContent
public GCPastContentHandle getHandle(GCPast local, long expiration)
GCPastContent
getHandle
in interface GCPastContent
public GCPastMetadata getMetadata(long expiration)
GCPastContent
getMetadata
in interface GCPastContent
|
Rice Pastry API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |