wt.notify
Class NotificationListCache

java.lang.Object
  extended byjava.rmi.server.RemoteObject
      extended byjava.rmi.server.RemoteServer
          extended bywt.util.RMIServer
              extended bywt.cache.CacheManager
                  extended bywt.notify.NotificationListCache
All Implemented Interfaces:
CacheServer, Remote, Serializable, Unreferenced

public class NotificationListCache
extends CacheManager

This class implements cache service to store notification lists. It follows the 2-level cache paradigm. Creation and updates to notification lists must be communicated to the cache by the Notification Policy manager.

See Also:
Serialized Form

Field Summary
protected static boolean VERBOSE
           
private static String versionID
           
 
Fields inherited from class wt.cache.CacheManager
MASTER
 
Fields inherited from class wt.util.RMIServer
csf, ssf
 
Fields inherited from class java.rmi.server.RemoteServer
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Constructor Summary
NotificationListCache()
          Contruct a new policy list cache.
 
Method Summary
 Object get(Object key)
          Get cache entry with given key.
 void put(Object key, Object value)
          Put a cache entry with given key.
 
Methods inherited from class wt.cache.CacheManager
checkAccess, getDefaultName, getDefaultSize, getEntry, isCacheHost, overflow, ping, putEntry, putEntry, reference, registerSlave, remove, remove, removeEntry, removeEntry, reset, unreferenced, update, updateEntry, updateEntry
 
Methods inherited from class wt.util.RMIServer
clone, exportObject, exportObject, exportObject, getClientSocketFactory, getPort, getServerSocketFactory, getStub, isHostInList, isLocalHost, setPort, writeReplace
 
Methods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLog
 
Methods inherited from class java.rmi.server.RemoteObject
equals, getRef, hashCode, toString, toStub
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

versionID

private static final String versionID
See Also:
Constant Field Values

VERBOSE

protected static boolean VERBOSE
Constructor Detail

NotificationListCache

public NotificationListCache()
                      throws RemoteException
Contruct a new policy list cache.

Method Detail

get

public Object get(Object key)
Description copied from class: CacheManager
Get cache entry with given key. If not in local cache, the master cache is checked.

Supported API: true

Overrides:
get in class CacheManager
Parameters:
key - the key object
Returns:
the corresponding cached object or null if not in cache

put

public void put(Object key,
                Object value)
Description copied from class: CacheManager
Put a cache entry with given key. The entry will also be put in the master cache, and any slave caches will have their corresponding entry removed.

Supported API: true

Overrides:
put in class CacheManager
Parameters:
key - the key object
value - the value object