com.wiley.posa3.evictor
Class NetworkElementComponent

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

public class NetworkElementComponent
extends java.lang.Object
implements EvictionInterface

NetworkElementComponent is a component of a network element. Since each network element component can also be evicted, therefore it also implements the EvictionInterface.

Version:
1.0
Author:
Michael Kircher, Prashant Jain

Constructor Summary
NetworkElementComponent()
           
 
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 component, to determine whether or not to evict it.
 boolean isEvictable()
          The method isEvictable() is used to determine whether this network element component is evictable.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NetworkElementComponent

public NetworkElementComponent()
Method Detail

isEvictable

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

Specified by:
isEvictable in interface EvictionInterface
Returns:
boolan true if the network element component 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 component, to determine whether or not to evict it.

Specified by:
info in interface EvictionInterface
Returns:
Object the timestamp corresponding to when this component 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 component 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.