Rice Pastry API

rice.tutorial.past
Class MyPastContent

java.lang.Object
  extended by rice.p2p.past.ContentHashPastContent
      extended by rice.tutorial.past.MyPastContent
All Implemented Interfaces:
java.io.Serializable, PastContent

public class MyPastContent
extends ContentHashPastContent

Author:
Jeff Hoye
See Also:
Serialized Form

Field Summary
 
Fields inherited from class rice.p2p.past.ContentHashPastContent
myId
 
Constructor Summary
MyPastContent(Id id, java.lang.String content)
          Takes an environment for the timestamp An IdFactory to generate the hash The content to be stored.
 
Method Summary
 java.lang.String toString()
          A descriptive toString()
 
Methods inherited from class rice.p2p.past.ContentHashPastContent
checkInsert, getHandle, getId, isMutable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MyPastContent

public MyPastContent(Id id,
                     java.lang.String content)
Takes an environment for the timestamp An IdFactory to generate the hash The content to be stored.

Parameters:
idf - to generate a hash of the content
content - to be stored
Method Detail

toString

public java.lang.String toString()
A descriptive toString()

Overrides:
toString in class java.lang.Object

Rice Pastry API

Copyright © 2001-2005 - Rice Pastry.


Imprint-Dataprotection