apps.discovery
Class AdvertiseMaterial
java.lang.Object
|
+--apps.discovery.AdvertiseMaterial
- All Implemented Interfaces:
- NodeCache.EventHandler
- public final class AdvertiseMaterial
- extends java.lang.Object
- implements NodeCache.EventHandler
An AdvertiseMaterial class is used to remove a finger print from the set
of discovered material after a certain amount of time has expired.
XXX We don't actually store the material in here, should we?
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
AdvertiseMaterial
public AdvertiseMaterial(TypeID fp)
- Construct an AdvertiseMaterial object with the given values.
- Parameters:
fp
- The finger print to remove after expiration.
getFingerPrint
public TypeID getFingerPrint()
- Returns:
- The finger print to remove after expiration.
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 java.lang.Object
- 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/