|
Rice Pastry API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--rice.pastry.client.PastryAppl
|
+--rice.pastry.client.CommonAPIAppl
|
+--rice.rm.testing.RMRegrTestApp
| Nested Class Summary | |
static class |
RMRegrTestApp.ReplicateEntry
|
| Field Summary | |
rice.pastry.routing.SendOptions |
_sendOptions
|
int |
m_appCount
|
rice.pastry.IdSet |
m_keys
|
protected rice.pastry.PastryNode |
m_pastryNode
|
java.util.Hashtable |
m_pendingObjects
|
rice.pastry.IdSet |
m_refreshedKeys
|
rice.rm.RMImpl |
m_rm
|
static int |
rFactor
|
| Fields inherited from class rice.pastry.client.PastryAppl |
address, instance, thePastryNode |
| Constructor Summary | |
RMRegrTestApp(rice.pastry.PastryNode pn,
rice.pastry.security.Credentials cred,
java.lang.String instance)
Constructor |
|
| Method Summary | |
boolean |
checkPassed()
|
void |
clearRefreshedKeys()
|
void |
deliver(rice.pastry.Id key,
rice.pastry.messaging.Message msg)
Called by pastry when a message arrives for this application. |
void |
fetch(rice.pastry.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. |
rice.pastry.security.Credentials |
getCredentials()
Returns the credentials of this application. |
rice.pastry.NodeHandle |
getLocalHandle()
|
rice.pastry.PastryNode |
getPastryNode()
|
RMRegrTestApp.ReplicateEntry |
getPendingObject(rice.pastry.Id key)
|
void |
heartbeat(rice.pastry.Id objectKey)
|
void |
isResponsible(rice.pastry.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(rice.pastry.Id objectKey)
|
void |
remove(rice.pastry.Id objectKey)
|
void |
removePendingObject(rice.pastry.Id key)
|
boolean |
replicate(rice.pastry.Id objectKey)
Called by the application when it needs to replicate an object into k nodes closest to the object key. |
void |
replicateSuccess(rice.pastry.Id key,
boolean status)
|
void |
rmIsReady(rice.rm.RM rm)
This upcall is simply to denote that the underlying replica manager (rm) is ready. |
rice.pastry.IdSet |
scan(rice.pastry.IdRange range)
This upcall should return the set of keys that the application currently stores in this range. |
void |
store(rice.pastry.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 rice.pastry.PastryNode m_pastryNode
public rice.pastry.routing.SendOptions _sendOptions
public rice.rm.RMImpl m_rm
public int m_appCount
public rice.pastry.IdSet m_keys
public rice.pastry.IdSet m_refreshedKeys
public static int rFactor
public java.util.Hashtable m_pendingObjects
| Constructor Detail |
public RMRegrTestApp(rice.pastry.PastryNode pn,
rice.pastry.security.Credentials cred,
java.lang.String instance)
cred - The credentials| Method Detail |
public void rmIsReady(rice.rm.RM rm)
RMClient
rmIsReady in interface RMClientrm - the instance of the Replica Managerpublic RMRegrTestApp.ReplicateEntry getPendingObject(rice.pastry.Id key)
public void removePendingObject(rice.pastry.Id key)
public void printRange()
public boolean replicate(rice.pastry.Id objectKey)
objectKey - the pastry key for the object
public void replicateSuccess(rice.pastry.Id key,
boolean status)
public void remove(rice.pastry.Id objectKey)
public void fetch(rice.pastry.IdSet keySet)
RMClient
fetch in interface RMClientkeySet - set containing the keys that needs to be fetched
public void store(rice.pastry.Id key,
java.lang.Object object)
public rice.pastry.IdSet scan(rice.pastry.IdRange range)
RMClient
scan in interface RMClientrange - the requested rangepublic void isResponsible(rice.pastry.IdRange range)
RMClient
isResponsible in interface RMClientrange - the range of keys for which the local node is currently
responsiblepublic rice.pastry.security.Credentials getCredentials()
CommonAPIAppl
getCredentials in class CommonAPIAppl
public void deliver(rice.pastry.Id key,
rice.pastry.messaging.Message msg)
CommonAPIAppl
deliver in class CommonAPIApplmsg - the message that is arriving.public rice.pastry.NodeHandle getLocalHandle()
public void heartbeat(rice.pastry.Id objectKey)
public void refresh(rice.pastry.Id objectKey)
public void periodicMaintenance()
public boolean checkPassed()
public void clearRefreshedKeys()
public rice.pastry.PastryNode getPastryNode()
|
Rice Pastry API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||