ostore.cache
Class CacheManager.CacheAvailable

java.lang.Object
  |
  +--ostore.cache.CacheManager.CacheAvailable
All Implemented Interfaces:
QueueElementIF
Enclosing class:
CacheManager

public static class CacheManager.CacheAvailable
extends Object
implements QueueElementIF

A simple class to store CacheAvailable state for a cache.


Constructor Summary
CacheManager.CacheAvailable(int[] types, DataCache cache)
          Constructs a new CacheAvailable.
 
Method Summary
 DataCache getCache()
          getCache returns a reference to the cache.
 int[] getTypes()
          getTypes return the types of cacheables that the cache is exporting.
 String toString()
          Returns a human-readable representation of this RequestState.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CacheManager.CacheAvailable

public CacheManager.CacheAvailable(int[] types,
                                   DataCache cache)
Constructs a new CacheAvailable.

Method Detail

getTypes

public int[] getTypes()
getTypes return the types of cacheables that the cache is exporting.

Returns:
the types exported by the cache

getCache

public DataCache getCache()
getCache returns a reference to the cache.

Returns:
a reference to the cache cache.

toString

public String toString()
Returns a human-readable representation of this RequestState.

Overrides:
toString in class Object