|
||||||||||
| 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. |
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,
Continuation command)
Retrieves the object stored in this instance of Past with the given ID. |
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. |
IdSet |
scan(IdRange range)
Return the ids of objects stored in this instance of Past on the *local* node, with ids in a given range. |
| Method Detail |
public void insert(PastContent obj,
Continuation command)
obj - the object to be insertedcommand - Command to be performed when the result is received
public void lookup(Id id,
Continuation command)
id - the key to be queriedcommand - Command to be performed when the result is received
public 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 received
public void fetch(PastContentHandle handle,
Continuation command)
handle - the key to be queriedcommand - Command to be performed when the result is receivedpublic IdSet scan(IdRange range)
range - The range to query
public NodeHandle getLocalNodeHandle()
public int getReplicationFactor()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||