|
Rice Pastry API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--rice.pastry.PastryNodeFactory
|
+--rice.pastry.dist.DistPastryNodeFactory
|
+--rice.pastry.rmi.RMIPastryNodeFactory
Pastry node factory for RMI-linked nodes.
| Field Summary | |
static int |
DEFAULT_REGISTRY_PORT
|
static int |
NUM_ATTEMPTS
|
static java.rmi.registry.Registry |
rmiRegistry
Instance of RMI registry ever-created when using this factory. |
| Fields inherited from class rice.pastry.dist.DistPastryNodeFactory |
PROTOCOL_RMI, PROTOCOL_WIRE |
| Constructor Summary | |
RMIPastryNodeFactory(rice.pastry.NodeIdFactory nf,
int p)
Constructor. |
|
| Method Summary | |
rice.pastry.NodeHandle |
generateNodeHandle(java.net.InetSocketAddress address)
Specified by the DistPastryNodeFactory class. |
rice.pastry.leafset.LeafSet |
getLeafSet(rice.pastry.NodeHandle handle)
This method returns the remote leafset of the provided handle to the caller, in a protocol-dependent fashion. |
int |
getProximity(rice.pastry.NodeHandle local,
rice.pastry.NodeHandle handle)
This method determines and returns the proximity of the current local node the provided NodeHandle. |
rice.pastry.routing.RouteSet[] |
getRouteRow(rice.pastry.NodeHandle handle,
int row)
This method returns the remote route row of the provided handle to the caller, in a protocol-dependent fashion. |
rice.pastry.PastryNode |
newNode(rice.pastry.NodeHandle bootstrap)
Generates a new pastry node with a random NodeId using the bootstrap bootstrap. |
rice.pastry.PastryNode |
newNode(rice.pastry.NodeHandle bootstrap,
rice.pastry.NodeId nodeId)
Makes many policy choices and manufactures a new RMIPastryNode. |
void |
pause(int ms)
Pauses the current thread for ms milliseconds. |
| Methods inherited from class rice.pastry.dist.DistPastryNodeFactory |
getFactory, getNodeHandle |
| Methods inherited from class rice.pastry.PastryNodeFactory |
getNearest |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static int NUM_ATTEMPTS
public static int DEFAULT_REGISTRY_PORT
public static java.rmi.registry.Registry rmiRegistry
| Constructor Detail |
public RMIPastryNodeFactory(rice.pastry.NodeIdFactory nf,
int p)
p - RMI registry port.| Method Detail |
public rice.pastry.NodeHandle generateNodeHandle(java.net.InetSocketAddress address)
generateNodeHandle in class DistPastryNodeFactoryaddress - The address to look for the node.
public void pause(int ms)
ms - The number of milliseconds to pause.public rice.pastry.PastryNode newNode(rice.pastry.NodeHandle bootstrap)
DistPastryNodeFactory
newNode in class DistPastryNodeFactorybootstrap - Node handle to bootstrap from.
public rice.pastry.PastryNode newNode(rice.pastry.NodeHandle bootstrap,
rice.pastry.NodeId nodeId)
newNode in class DistPastryNodeFactorybootstrap - Node handle to bootstrap from.public rice.pastry.leafset.LeafSet getLeafSet(rice.pastry.NodeHandle handle)
getLeafSet in class PastryNodeFactoryhandle - The node to connect to
public rice.pastry.routing.RouteSet[] getRouteRow(rice.pastry.NodeHandle handle,
int row)
getRouteRow in class PastryNodeFactoryhandle - The node to connect torow - The row number to retrieve
public int getProximity(rice.pastry.NodeHandle local,
rice.pastry.NodeHandle handle)
getProximity in class PastryNodeFactoryhandle - The handle to determine the proximity of
|
Rice Pastry API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||