|
Rice Pastry API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.mpisws.p2p.transport.liveness.LivenessTransportLayerImpl.EntityManager
public class LivenessTransportLayerImpl.EntityManager
Internal class which is charges with managing the remote connection via a specific route
Field Summary | |
---|---|
protected java.lang.ref.WeakReference<Identifier> |
identifier
|
protected int |
liveness
|
protected java.util.Set<org.mpisws.p2p.transport.liveness.LivenessTransportLayerImpl.LSocket> |
sockets
|
protected long |
updated
|
Constructor Summary | |
---|---|
LivenessTransportLayerImpl.EntityManager(Identifier identifier)
Constructor - builds a route manager given the route |
Method Summary | |
---|---|
protected boolean |
checkLiveness(java.util.Map<java.lang.String,java.lang.Object> options)
Method which checks to see this route is dead. |
void |
destroy()
|
LivenessTransportLayerImpl.DeadChecker |
getPending()
|
protected void |
markAlive(java.util.Map<java.lang.String,java.lang.Object> options)
This method should be called when this route is declared alive. |
protected void |
markDead(java.util.Map<java.lang.String,java.lang.Object> options)
This method should be called when this route is declared dead. |
protected void |
markDeadForever(java.util.Map<java.lang.String,java.lang.Object> options)
|
protected void |
markDeadHelper(int liveness,
java.util.Map<java.lang.String,java.lang.Object> options,
boolean notify)
|
protected void |
markSuspected(java.util.Map<java.lang.String,java.lang.Object> options)
This method should be called when this route is declared suspected. |
void |
removeSocket(org.mpisws.p2p.transport.liveness.LivenessTransportLayerImpl.LSocket socket)
|
int |
rto()
|
void |
setPending(LivenessTransportLayerImpl.DeadChecker d)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.lang.ref.WeakReference<Identifier> identifier
protected int liveness
protected long updated
protected java.util.Set<org.mpisws.p2p.transport.liveness.LivenessTransportLayerImpl.LSocket> sockets
Constructor Detail |
---|
public LivenessTransportLayerImpl.EntityManager(Identifier identifier)
route
- The routeMethod Detail |
---|
public LivenessTransportLayerImpl.DeadChecker getPending()
public void setPending(LivenessTransportLayerImpl.DeadChecker d)
public void removeSocket(org.mpisws.p2p.transport.liveness.LivenessTransportLayerImpl.LSocket socket)
public int rto()
protected void markAlive(java.util.Map<java.lang.String,java.lang.Object> options)
protected void markSuspected(java.util.Map<java.lang.String,java.lang.Object> options)
protected void markDead(java.util.Map<java.lang.String,java.lang.Object> options)
protected void markDeadForever(java.util.Map<java.lang.String,java.lang.Object> options)
protected void markDeadHelper(int liveness, java.util.Map<java.lang.String,java.lang.Object> options, boolean notify)
protected boolean checkLiveness(java.util.Map<java.lang.String,java.lang.Object> options)
public java.lang.String toString()
toString
in class java.lang.Object
public void destroy()
|
Rice Pastry API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |