org.objectweb.perseus.cache.lib
Class BasicCacheManager.CapacityEvent

java.lang.Object
  extended byorg.objectweb.perseus.cache.lib.BasicCacheManager.CapacityEvent
All Implemented Interfaces:
CacheCapacityEvent
Enclosing class:
BasicCacheManager

protected class BasicCacheManager.CapacityEvent
extends java.lang.Object
implements CacheCapacityEvent

This class is a basic implementation of the CacheCapacityEvent interface.


Field Summary
 int cacheSize
           
 int eventId
           
 int oldCacheSize
           
 
Fields inherited from interface org.objectweb.perseus.cache.api.CacheCapacityEvent
NOTIFY_CACHE_RESIZE
 
Constructor Summary
BasicCacheManager.CapacityEvent(int eventid, int oldCacheSize, int cacheSize)
           
 
Method Summary
 int getEventId()
          Returns the cache event type.
 int getOldSize()
          It retrieves the old cache size before the resizing.
 int getSize()
          It retrieves the new cache size.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

eventId

public int eventId

oldCacheSize

public int oldCacheSize

cacheSize

public int cacheSize
Constructor Detail

BasicCacheManager.CapacityEvent

public BasicCacheManager.CapacityEvent(int eventid,
                                       int oldCacheSize,
                                       int cacheSize)
Method Detail

getEventId

public int getEventId()
Description copied from interface: CacheCapacityEvent
Returns the cache event type.

Specified by:
getEventId in interface CacheCapacityEvent

getOldSize

public int getOldSize()
Description copied from interface: CacheCapacityEvent
It retrieves the old cache size before the resizing.

Specified by:
getOldSize in interface CacheCapacityEvent

getSize

public int getSize()
Description copied from interface: CacheCapacityEvent
It retrieves the new cache size.

Specified by:
getSize in interface CacheCapacityEvent


Copyright © 2000-2002 France Telecom S.A., INRIA, IMAG-LSR All Rights Reserved.