|
ePOST API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object rice.p2p.replication.manager.testing.ReplicationManagerRegrTest.TestReplicationManagerClient
protected class ReplicationManagerRegrTest.TestReplicationManagerClient
DESCRIBE THE CLASS
Field Summary | |
---|---|
Node |
node
|
IdSet |
set
|
Constructor Summary | |
---|---|
ReplicationManagerRegrTest.TestReplicationManagerClient(Node node)
|
Method Summary | |
---|---|
boolean |
exists(Id id)
This upcall should return whether or not the given id is currently stored locally by the client. |
void |
existsInOverlay(Id id,
Continuation command)
This upcall should return whether or not the given id is currently stored somewhere in the overlay by the client. |
void |
fetch(Id id,
NodeHandle hint,
Continuation command)
This upcall is invoked to tell the client to fetch the given id, and to call the given command with the boolean result once the fetch is completed. |
void |
insert(Id id)
|
void |
reInsert(Id id,
Continuation command)
Asks a client to reinsert an object it already holds into the overlay |
void |
remove(Id id,
Continuation command)
This upcall is to notify the client that the given id can be safely removed from the storage. |
IdSet |
scan(IdRange range)
This upcall should return the set of keys that the application currently stores in this range. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public Node node
public IdSet set
Constructor Detail |
---|
public ReplicationManagerRegrTest.TestReplicationManagerClient(Node node)
Method Detail |
---|
public void fetch(Id id, NodeHandle hint, Continuation command)
ReplicationManagerClient
fetch
in interface ReplicationManagerClient
id
- The id to fetchhint
- A hint where to find the key from. This is where the local node
heard about the key.command
- The command to return the result topublic void remove(Id id, Continuation command)
ReplicationManagerClient
remove
in interface ReplicationManagerClient
id
- The id to removepublic IdSet scan(IdRange range)
ReplicationManagerClient
scan
in interface ReplicationManagerClient
range
- the requested rangepublic void insert(Id id)
public boolean exists(Id id)
ReplicationManagerClient
exists
in interface ReplicationManagerClient
id
- The id in question
public void existsInOverlay(Id id, Continuation command)
ReplicationManagerClient
existsInOverlay
in interface ReplicationManagerClient
id
- The id in questionpublic void reInsert(Id id, Continuation command)
ReplicationManagerClient
reInsert
in interface ReplicationManagerClient
id
- The id in question
|
ePOST API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |