Bees v0.5.0 API

bees.tests
Class NodeTest

java.lang.Object
  |
  +--bees.tests.NodeTest
All Implemented Interfaces:
NodeCache.EventHandler, Test

public final class NodeTest
extends java.lang.Object
implements Test, NodeCache.EventHandler


Constructor Summary
NodeTest()
           
 
Method Summary
 IntegerPermission collected(Node node, ProtocolSession ps)
          This is called when this element is up for collection, the return value specifies the new expiration time.
 void removed(Node node, ProtocolSession ps)
          This is called when the element is manually removed from from the cache.
 void test(Node node)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeTest

public NodeTest()
Method Detail

test

public void test(Node node)
          throws java.lang.Throwable
Specified by:
test in interface Test

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
Following copied from interface: bees.core.NodeCache.EventHandler
Parameters:
node - The current Node object.
ps - The ProtocolSession that the NodeCache is

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
Following copied from interface: bees.core.NodeCache.EventHandler
Parameters:
node - The current Node object.
ps - The ProtocolSession that the NodeCache is attached to.
Returns:
Null if the element should be collected or an IntegerPermission specifying the number of milliseconds to delay before this element should be collected again.

Bees v0.5.0 API

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/