|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectrice.pastry.client.PastryAppl
rice.pastry.client.CommonAPIAppl
rice.rm.testing.RMRegrTestApp
| Nested Class Summary | |
static class |
RMRegrTestApp.ReplicateEntry
|
| Field Summary | |
SendOptions |
_sendOptions
|
int |
m_appCount
|
IdSet |
m_keys
|
protected PastryNode |
m_pastryNode
|
java.util.Hashtable |
m_pendingObjects
|
IdSet |
m_refreshedKeys
|
RMImpl |
m_rm
|
static int |
rFactor
|
| Fields inherited from class rice.pastry.client.PastryAppl |
address, instance, thePastryNode |
| Constructor Summary | |
RMRegrTestApp(PastryNode pn,
Credentials cred,
java.lang.String instance)
Constructor |
|
| Method Summary | |
boolean |
checkPassed()
|
void |
clearRefreshedKeys()
|
void |
deliver(Id key,
Message msg)
Called by pastry when a message arrives for this application. |
void |
fetch(IdSet keySet)
This upcall is invoked to notify the application that is should fetch the cooresponding keys in this set, since the node is now responsible for these keys also. |
Credentials |
getCredentials()
Returns the credentials of this application. |
NodeHandle |
getLocalHandle()
|
PastryNode |
getPastryNode()
|
RMRegrTestApp.ReplicateEntry |
getPendingObject(Id key)
|
void |
heartbeat(Id objectKey)
|
void |
isResponsible(IdRange range)
This upcall is to notify the application of the range of keys for which it is responsible. |
void |
periodicMaintenance()
|
void |
printRange()
|
void |
refresh(Id objectKey)
|
void |
remove(Id objectKey)
|
void |
removePendingObject(Id key)
|
boolean |
replicate(Id objectKey)
Called by the application when it needs to replicate an object into k nodes closest to the object key. |
void |
replicateSuccess(Id key,
boolean status)
|
void |
rmIsReady(RM rm)
This upcall is simply to denote that the underlying replica manager (rm) is ready. |
IdSet |
scan(IdRange range)
This upcall should return the set of keys that the application currently stores in this range. |
void |
store(Id key,
java.lang.Object object)
|
| Methods inherited from class rice.pastry.client.CommonAPIAppl |
forward, leafSetChange, localLookup, messageForAppl, neighborSet, notifyReady, range, range, receiveMessage, replicaSet, route, update |
| Methods inherited from class rice.pastry.client.PastryAppl |
enrouteMessage, getAddress, getLeafSet, getNodeHandle, getNodeId, getRoutingTable, isClosest, registerReceiver, routeMsg, routeMsgDirect, routeSetChange, sendMessage |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected PastryNode m_pastryNode
public SendOptions _sendOptions
public RMImpl m_rm
public int m_appCount
public IdSet m_keys
public IdSet m_refreshedKeys
public static int rFactor
public java.util.Hashtable m_pendingObjects
| Constructor Detail |
public RMRegrTestApp(PastryNode pn,
Credentials cred,
java.lang.String instance)
cred - The credentials| Method Detail |
public void rmIsReady(RM rm)
RMClient
rmIsReady in interface RMClientrm - the instance of the Replica Managerpublic RMRegrTestApp.ReplicateEntry getPendingObject(Id key)
public void removePendingObject(Id key)
public void printRange()
public boolean replicate(Id objectKey)
objectKey - the pastry key for the object
public void replicateSuccess(Id key,
boolean status)
public void remove(Id objectKey)
public void fetch(IdSet keySet)
RMClient
fetch in interface RMClientkeySet - set containing the keys that needs to be fetched
public void store(Id key,
java.lang.Object object)
public IdSet scan(IdRange range)
RMClient
scan in interface RMClientrange - the requested rangepublic void isResponsible(IdRange range)
RMClient
isResponsible in interface RMClientrange - the range of keys for which the local node is currently
responsiblepublic Credentials getCredentials()
CommonAPIAppl
getCredentials in class CommonAPIAppl
public void deliver(Id key,
Message msg)
CommonAPIAppl
deliver in class CommonAPIApplmsg - the message that is arriving.public NodeHandle getLocalHandle()
public void heartbeat(Id objectKey)
public void refresh(Id objectKey)
public void periodicMaintenance()
public boolean checkPassed()
public void clearRefreshedKeys()
public PastryNode getPastryNode()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||