|
Rice Pastry API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--rice.pastry.messaging.Message | +--rice.pastry.join.JoinRequest
Request to join this network.
Constructor Summary | |
JoinRequest(rice.pastry.NodeHandle nh)
Constructor. |
|
JoinRequest(rice.pastry.NodeHandle nh,
rice.pastry.security.Credentials cred)
Constructor. |
|
JoinRequest(rice.pastry.NodeHandle nh,
rice.pastry.security.Credentials cred,
java.util.Date stamp)
Constructor. |
|
JoinRequest(rice.pastry.NodeHandle nh,
java.util.Date stamp)
Constructor. |
Method Summary | |
boolean |
accepted()
Returns true if the request was accepted, false if it hasn't yet. |
void |
acceptJoin(rice.pastry.NodeHandle nh,
rice.pastry.leafset.LeafSet ls)
Accept join request. |
rice.pastry.NodeHandle |
getHandle()
Gets the handle of the node trying to join. |
rice.pastry.NodeHandle |
getJoinHandle()
Gets the handle of the node that accepted the join request; |
rice.pastry.leafset.LeafSet |
getLeafSet()
Gets the leafset of the node that accepted the join request; |
rice.pastry.routing.RouteSet[] |
getRow(int i)
Get row. |
int |
lastRow()
Returns the number of rows left to determine (in order). |
int |
numRows()
Get the number of rows. |
void |
pushRow(rice.pastry.routing.RouteSet[] row)
Push row. |
java.lang.String |
toString()
|
Methods inherited from class rice.pastry.messaging.Message |
getCredentials, getDate, getDestination, getSenderId, getStream, hasPriority, setPriority, setSenderId, stamp |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public JoinRequest(rice.pastry.NodeHandle nh)
nh
- a handle of the node trying to join the network.public JoinRequest(rice.pastry.NodeHandle nh, java.util.Date stamp)
nh
- a handle of the node trying to join the network.stamp
- the timestamppublic JoinRequest(rice.pastry.NodeHandle nh, rice.pastry.security.Credentials cred)
nh
- a handle of the node trying to join the network.cred
- the credentialspublic JoinRequest(rice.pastry.NodeHandle nh, rice.pastry.security.Credentials cred, java.util.Date stamp)
nh
- a handle of the node trying to join the network.cred
- the credentialsstamp
- the timestampMethod Detail |
public rice.pastry.NodeHandle getHandle()
public rice.pastry.NodeHandle getJoinHandle()
public rice.pastry.leafset.LeafSet getLeafSet()
public boolean accepted()
public void acceptJoin(rice.pastry.NodeHandle nh, rice.pastry.leafset.LeafSet ls)
nh
- the node handle that accepts the join request.public int lastRow()
public void pushRow(rice.pastry.routing.RouteSet[] row)
row
- the row to push.public rice.pastry.routing.RouteSet[] getRow(int i)
i
- the row to get.
public int numRows()
public java.lang.String toString()
toString
in class java.lang.Object
|
Rice Pastry API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |