|
Rice Pastry API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Method Summary | |
void |
fetch(PastContentHandle handle,
Continuation command)
Retrieves the object associated with a given content handle. |
Environment |
getEnvironment()
Gets the Environment attribute of the Past object |
java.lang.String |
getInstance()
|
NodeHandle |
getLocalNodeHandle()
get the nodeHandle of the local Past node |
int |
getReplicationFactor()
Returns the number of replicas used in this Past |
void |
insert(PastContent obj,
Continuation command)
Inserts an object with the given ID into this instance of Past. |
void |
lookup(Id id,
boolean cache,
Continuation command)
Retrieves the object stored in this instance of Past with the given ID. |
void |
lookup(Id id,
Continuation command)
Retrieves the object stored in this instance of Past with the given ID. |
void |
lookupHandle(Id id,
NodeHandle handle,
Continuation command)
Retrieves the handle for the given object stored on the requested node. |
void |
lookupHandles(Id id,
int max,
Continuation command)
Retrieves the handles of up to max replicas of the object stored in this instance of Past with the given ID. |
void |
setContentDeserializer(PastContentDeserializer deserializer)
Sets the ContentDeserializer attribute of the Past object |
void |
setContentHandleDeserializer(PastContentHandleDeserializer deserializer)
Sets the ContentHandleDeserializer attribute of the Past object |
Method Detail |
public void insert(PastContent obj, Continuation command)
obj
- the object to be insertedcommand
- Command to be performed when the result is receivedpublic void lookup(Id id, Continuation command)
id
- the key to be queriedcommand
- Command to be performed when the result is receivedpublic void lookup(Id id, boolean cache, Continuation command)
id
- the key to be queriedcache
- Whether or not the result should be cachedcommand
- Command to be performed when the result is receivedpublic void lookupHandles(Id id, int max, Continuation command)
id
- the key to be queriedmax
- the maximal number of replicas requestedcommand
- Command to be performed when the result is receivedpublic void lookupHandle(Id id, NodeHandle handle, Continuation command)
id
- the key to be queriedhandle
- The node on which the handle is requestedcommand
- Command to be performed when the result is receivedpublic void fetch(PastContentHandle handle, Continuation command)
handle
- the key to be queriedcommand
- Command to be performed when the result is receivedpublic NodeHandle getLocalNodeHandle()
public int getReplicationFactor()
public Environment getEnvironment()
public java.lang.String getInstance()
public void setContentDeserializer(PastContentDeserializer deserializer)
deserializer
- The new ContentDeserializer valuepublic void setContentHandleDeserializer(PastContentHandleDeserializer deserializer)
deserializer
- The new ContentHandleDeserializer value
|
Rice Pastry API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |