Rice Pastry API

org.mpisws.p2p.transport.liveness
Class LivenessTransportLayerImpl.EntityManager

java.lang.Object
  extended by org.mpisws.p2p.transport.liveness.LivenessTransportLayerImpl.EntityManager
Enclosing class:
LivenessTransportLayerImpl<Identifier>

public class LivenessTransportLayerImpl.EntityManager
extends java.lang.Object

Internal class which is charges with managing the remote connection via a specific route


Field Summary
protected  Identifier identifier
           
protected  int liveness
           
protected  LivenessTransportLayerImpl.DeadChecker pending
           
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.Integer> options)
           
 void destroy()
           
protected  void markAlive(java.util.Map<java.lang.String,java.lang.Integer> options)
          This method should be called when this route is declared alive.
protected  void markDead(java.util.Map<java.lang.String,java.lang.Integer> options)
          This method should be called when this route is declared dead.
protected  void markSuspected(java.util.Map<java.lang.String,java.lang.Integer> options)
          This method should be called when this route is declared suspected.
 int rto()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

identifier

protected Identifier identifier

liveness

protected int liveness

updated

protected long updated

pending

protected LivenessTransportLayerImpl.DeadChecker pending
Constructor Detail

LivenessTransportLayerImpl.EntityManager

public LivenessTransportLayerImpl.EntityManager(Identifier identifier)
Constructor - builds a route manager given the route

Parameters:
route - The route
Method Detail

rto

public int rto()

markAlive

protected void markAlive(java.util.Map<java.lang.String,java.lang.Integer> options)
This method should be called when this route is declared alive.


markSuspected

protected void markSuspected(java.util.Map<java.lang.String,java.lang.Integer> options)
This method should be called when this route is declared suspected.


markDead

protected void markDead(java.util.Map<java.lang.String,java.lang.Integer> options)
This method should be called when this route is declared dead.


checkLiveness

protected boolean checkLiveness(java.util.Map<java.lang.String,java.lang.Integer> options)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

destroy

public void destroy()

Rice Pastry API

Copyright © 2001-2005 - Rice Pastry.


Imprint-Dataprotection