apps.liveness
Class LiveNeighbor
java.lang.Object
|
+--bees.core.Neighbor
|
+--apps.liveness.LiveNeighbor
- All Implemented Interfaces:
- NodeCache.EventHandler
- public final class LiveNeighbor
- extends Neighbor
- implements NodeCache.EventHandler
A LiveNeighbor is a Neighbor subclass that is used to track the
responsiveness of a neighbor.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
LiveNeighbor
public LiveNeighbor(NeighborImpl ni)
- Construct a LiveNeighbor with the given values.
- Parameters:
ni
- The NeighborImpl to wrap and activate.
removed
public void removed(Node node,
ProtocolSession ps)
- Description copied from interface:
NodeCache.EventHandler
- This is called when the element is manually removed from
from the cache.
- Specified by:
removed
in interface NodeCache.EventHandler
- See Also:
NodeCache.EventHandler.removed(Node, ProtocolSession)
collected
public IntegerPermission collected(Node node,
ProtocolSession ps)
- Description copied from interface:
NodeCache.EventHandler
- This is called when this element is up for collection,
the return value specifies the new expiration time. Null
is returned if the element should really be collected.
- Specified by:
collected
in interface NodeCache.EventHandler
- See Also:
NodeCache.EventHandler.collected(Node, ProtocolSession)
toString
public java.lang.String toString()
- Overrides:
toString
in class Neighbor
- See Also:
Object.toString()
This documentation is Copyright (C) 2002 The University of Utah. All Rights Reserved. See the individual source files for distribution terms.
Documentation, software, and mailing lists for Bees v0.5.0 can be found at the Janos Project: http://www.cs.utah.edu/flux/janos/