Rice Pastry API

rice.p2p.past.rawserialization
Class JavaSerializedPastContent

java.lang.Object
  extended byrice.p2p.past.rawserialization.JavaSerializedPastContent
All Implemented Interfaces:
PastContent, RawPastContent, java.io.Serializable

public class JavaSerializedPastContent
extends java.lang.Object
implements RawPastContent

DESCRIBE THE CLASS

Version:
$Id: pretty.settings 2305 2005-03-11 20:22:33Z jeffh $
Author:
jeffh
See Also:
Serialized Form

Field Summary
 PastContent content
          DESCRIBE THE FIELD
static short TYPE
          DESCRIBE THE FIELD
 
Constructor Summary
JavaSerializedPastContent(PastContent content)
          Constructor for JavaSerializedPastContent.
 
Method Summary
 PastContent checkInsert(Id id, PastContent existingContent)
          DESCRIBE THE METHOD
 PastContent getContent()
          Gets the Content attribute of the JavaSerializedPastContent object
 PastContentHandle getHandle(Past local)
          Gets the Handle attribute of the JavaSerializedPastContent object
 Id getId()
          Gets the Id attribute of the JavaSerializedPastContent object
 short getType()
          Gets the Type attribute of the JavaSerializedPastContent object
 boolean isMutable()
          Gets the Mutable attribute of the JavaSerializedPastContent object
 void serialize(OutputBuffer buf)
          DESCRIBE THE METHOD
 java.lang.String toString()
          DESCRIBE THE METHOD
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

content

public PastContent content
DESCRIBE THE FIELD


TYPE

public static final short TYPE
DESCRIBE THE FIELD

See Also:
Constant Field Values
Constructor Detail

JavaSerializedPastContent

public JavaSerializedPastContent(PastContent content)
Constructor for JavaSerializedPastContent.

Parameters:
content - DESCRIBE THE PARAMETER
Method Detail

getType

public short getType()
Gets the Type attribute of the JavaSerializedPastContent object

Specified by:
getType in interface RawPastContent
Returns:
The Type value

getContent

public PastContent getContent()
Gets the Content attribute of the JavaSerializedPastContent object

Returns:
The Content value

getHandle

public PastContentHandle getHandle(Past local)
Gets the Handle attribute of the JavaSerializedPastContent object

Specified by:
getHandle in interface PastContent
Parameters:
local - DESCRIBE THE PARAMETER
Returns:
The Handle value

getId

public Id getId()
Gets the Id attribute of the JavaSerializedPastContent object

Specified by:
getId in interface PastContent
Returns:
The Id value

isMutable

public boolean isMutable()
Gets the Mutable attribute of the JavaSerializedPastContent object

Specified by:
isMutable in interface PastContent
Returns:
The Mutable value

serialize

public void serialize(OutputBuffer buf)
               throws java.io.IOException
DESCRIBE THE METHOD

Specified by:
serialize in interface RawPastContent
Parameters:
buf - DESCRIBE THE PARAMETER
Throws:
java.io.IOException - DESCRIBE THE EXCEPTION

toString

public java.lang.String toString()
DESCRIBE THE METHOD

Returns:
DESCRIBE THE RETURN VALUE

checkInsert

public PastContent checkInsert(Id id,
                               PastContent existingContent)
                        throws PastException
DESCRIBE THE METHOD

Specified by:
checkInsert in interface PastContent
Parameters:
id - DESCRIBE THE PARAMETER
existingContent - DESCRIBE THE PARAMETER
Returns:
DESCRIBE THE RETURN VALUE
Throws:
PastException - DESCRIBE THE EXCEPTION

Rice Pastry API

Copyright © 2001-2005 - Rice Pastry.


Imprint-Dataprotection