|
ePOST API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Past
Method Summary | |
---|---|
void |
fetch(PastContentHandle handle,
Continuation command)
Retrieves the object associated with a given content handle. |
Environment |
getEnvironment()
|
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. |
Method Detail |
---|
void insert(PastContent obj, Continuation command)
obj
- the object to be insertedcommand
- Command to be performed when the result is receivedvoid lookup(Id id, Continuation command)
id
- the key to be queriedcommand
- Command to be performed when the result is receivedvoid 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 receivedvoid 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 receivedvoid 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 receivedvoid fetch(PastContentHandle handle, Continuation command)
handle
- the key to be queriedcommand
- Command to be performed when the result is receivedNodeHandle getLocalNodeHandle()
int getReplicationFactor()
Environment getEnvironment()
java.lang.String getInstance()
|
ePOST API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |