|
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
Internal class which is charges with managing the remote connection via a specific route
| Field Summary | |
protected int |
liveness
DESCRIBE THE FIELD |
protected boolean |
pending
DESCRIBE THE FIELD |
protected int |
proximity
DESCRIBE THE FIELD |
protected SourceRoute |
route
DESCRIBE THE FIELD |
protected long |
updated
DESCRIBE THE FIELD |
| 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. |
void |
send(SocketBuffer 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 route| Method Detail |
public boolean isOpen()
public int proximity()
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)
appId - DESCRIBE THE PARAMETERreceiver - DESCRIBE THE PARAMETERtimeout - DESCRIBE THE PARAMETERpublic void ping()
|
Rice Pastry API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||