| 
Rice Pastry API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
This interface is the abstraction of something which provides a local storage service, such as a persistence storage service or an in-memory storage service. Two implementations are provided, the PersistentStorage and MemoryStorage, respsectively.
| Method Summary | |
 void | 
store(Id id,
      java.io.Serializable metadata,
      java.io.Serializable obj,
      Continuation c)
Stores an object in this storage.  | 
 void | 
unstore(Id id,
        Continuation c)
Removes the object from the list of stored objects.  | 
| Methods inherited from interface rice.persistence.Catalog | 
exists, getMetadata, getObject, getSize, getTotalSize, rename, scan, scan, scanMetadata, scanMetadata, scanMetadataValuesHead, scanMetadataValuesNull, setMetadata | 
| Method Detail | 
public void store(Id id,
                  java.io.Serializable metadata,
                  java.io.Serializable obj,
                  Continuation c)
unstore(id) followed by store(id, obj)
 . This method finishes by calling receiveResult() on the provided
 continuation with the success or failure of the store. Returns True
 if the action succeeds, else False (through receiveResult on
 c).
id - The object's id.metadata - The object's metadataobj - The object to store.c - The command to run once the operation is complete
public void unstore(Id id,
                    Continuation c)
False is returned. Returns True
 if the action succeeds, else False (through receiveResult on
 c).
c - The command to run once the operation is completeid - DESCRIBE THE PARAMETER
  | 
Rice Pastry API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||