com.wiley.posa3.evictor
Class NetworkElement

java.lang.Object
  extended bycom.wiley.posa3.evictor.NetworkElement
All Implemented Interfaces:
EvictionInterface

public class NetworkElement
extends java.lang.Object
implements EvictionInterface

NetworkElement is a resource that can be evicted and therefore implements the EvictionInterface.

Version:
1.0
Author:
Michael Kircher, Prashant Jain

Constructor Summary
NetworkElement()
           
 
Method Summary
 void beforeEviction()
          The beforeEviction() method serves as a hook method that can be called by the Evictor before it evicts an object.
 java.lang.Object info()
          The info() method is used by the Evictor to extract strategy-specific information from the object, to determine whether or not to evict it.
 boolean isEvictable()
          The method isEvictable() is used to determine whether this network element is evictable.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NetworkElement

public NetworkElement()
Method Detail

isEvictable

public boolean isEvictable()
The method isEvictable() is used to determine whether this network element is evictable.

Specified by:
isEvictable in interface EvictionInterface
Returns:
boolan true if the network element is evictable, false otherwise

info

public java.lang.Object info()
The info() method is used by the Evictor to extract strategy-specific information from the object, to determine whether or not to evict it.

Specified by:
info in interface EvictionInterface
Returns:
Object the timestamp corresponding to when this network element was last accessed

beforeEviction

public void beforeEviction()
The beforeEviction() method serves as a hook method that can be called by the Evictor before it evicts an object. This gives the network element a chance to release any resources it may have acquired.

Specified by:
beforeEviction in interface EvictionInterface


Copyright 2004 John Wiley and Sons. All Rights Reserved.