|
ePOST API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object rice.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 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. |
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. |
void |
send(Message message)
Method which enqueues a message along this route |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected SourceRoute route
protected int liveness
protected int proximity
protected long updated
protected boolean pending
Constructor Detail |
---|
public SocketSourceRouteManager.AddressManager.SourceRouteManager(SourceRoute route)
route
- The routeMethod Detail |
---|
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(Message message)
message
- The message to sendpublic void ping()
public boolean isOpen()
|
ePOST API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |