|
Rice Pastry API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
| Method Summary | |
void |
fetch(rice.p2p.past.PastContentHandle handle,
rice.Continuation command)
Retrieves the object associated with a given content handle. |
rice.p2p.commonapi.NodeHandle |
getLocalNodeHandle()
get the nodeHandle of the local Past node |
int |
getReplicationFactor()
Returns the number of replicas used in this Past |
void |
insert(rice.p2p.past.PastContent obj,
rice.Continuation command)
Inserts an object with the given ID into this instance of Past. |
void |
lookup(rice.p2p.commonapi.Id id,
rice.Continuation command)
Retrieves the object stored in this instance of Past with the given ID. |
void |
lookupHandles(rice.p2p.commonapi.Id id,
int max,
rice.Continuation command)
Retrieves the handles of up to max replicas of the object stored in this instance of Past with the given ID. |
rice.p2p.commonapi.IdSet |
scan(rice.p2p.commonapi.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(rice.p2p.past.PastContent obj,
rice.Continuation command)
obj - the object to be insertedcommand - Command to be performed when the result is received
public void lookup(rice.p2p.commonapi.Id id,
rice.Continuation command)
id - the key to be queriedcommand - Command to be performed when the result is received
public void lookupHandles(rice.p2p.commonapi.Id id,
int max,
rice.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(rice.p2p.past.PastContentHandle handle,
rice.Continuation command)
handle - the key to be queriedcommand - Command to be performed when the result is receivedpublic rice.p2p.commonapi.IdSet scan(rice.p2p.commonapi.IdRange range)
range - The range to query
public rice.p2p.commonapi.NodeHandle getLocalNodeHandle()
public int getReplicationFactor()
|
Rice Pastry API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||