|
Rice Pastry API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectrice.pastry.socket.SocketSourceRouteManager.AddressManager.SourceRouteManager
public class SocketSourceRouteManager.AddressManager.SourceRouteManager
Internal class which is charges with managing the remote connection via a specific route
| Field Summary | |
|---|---|
protected int |
liveness
|
protected boolean |
pending
|
protected int |
proximity
|
protected long |
proximityTimeout
|
protected SourceRoute |
route
|
protected long |
updated
|
| Constructor Summary | |
|---|---|
SocketSourceRouteManager.AddressManager.SourceRouteManager(SourceRoute route)
Constructor - builds a route manager given the route |
|
| Method Summary | |
|---|---|
protected boolean |
checkLiveness()
Method which checks to see this route is dead. |
void |
connect(int appId,
AppSocketReceiver receiver,
int timeout)
Method which opens a socket along this route |
boolean |
isOpen()
Returns whether or not a socket is currently open to this route |
protected void |
markAlive()
This method should be called when this route is declared alive. |
protected void |
markDead()
This method should be called when this route is declared dead. |
protected void |
markProximity(int proximity)
This method should be called when this route has its proximity updated |
protected void |
markSuspected()
This method should be called when this route is declared suspected. |
void |
ping()
Method which suggests a ping to the remote node. |
int |
proximity()
Method which returns the last cached proximity value for the given address. |
int |
rto()
|
void |
send(SocketBuffer message)
Method which enqueues a message along this route |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected SourceRoute route
protected int liveness
protected int proximity
protected long proximityTimeout
protected long updated
protected boolean pending
| Constructor Detail |
|---|
public SocketSourceRouteManager.AddressManager.SourceRouteManager(SourceRoute route)
route - The route| Method Detail |
|---|
public int rto()
public int proximity()
address - The address to return the value for
protected void markAlive()
protected void markSuspected()
protected void markDead()
protected void markProximity(int proximity)
proximity - The proximityprotected boolean checkLiveness()
public void send(SocketBuffer message)
message - The message to send
public void connect(int appId,
AppSocketReceiver receiver,
int timeout)
message - The message to sendpublic void ping()
public boolean isOpen()
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 | |||||||||