wt.series
Class SeriesCache.ContextMessenger

java.lang.Object
  extended byjava.rmi.server.RemoteObject
      extended byjava.rmi.server.RemoteServer
          extended bywt.util.RMIServer
              extended bywt.cache.CacheManager
                  extended bywt.cache.Messenger
                      extended bywt.series.SeriesCache.ContextMessenger
All Implemented Interfaces:
CacheServer, DirtyMap.DirtyMapListener, Remote, Serializable, Unreferenced
Enclosing class:
SeriesCache

public static final class SeriesCache.ContextMessenger
extends Messenger
implements DirtyMap.DirtyMapListener

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class wt.cache.Messenger
Messenger.MessageReceiver
 
Field Summary
 
Fields inherited from class wt.cache.Messenger
 
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
 
Fields inherited from interface wt.cache.CacheServer
versionID
 
Constructor Summary
SeriesCache.ContextMessenger()
           
 
Method Summary
 void mappingAdded(Object key, Object value, Object placeholder)
          A mapping was added to the local cache.
 void mappingRemoved(Object key)
          A mapping was removed from the local cache.
 void mappingsAdded(Map mappings, Object placeholder)
           
 void mappingsRemoved(Collection keys)
           
 
Methods inherited from class wt.cache.Messenger
addReceiver, getDefaultSize, putEntry, removeEntry, removeReceiver, reset, sendMessage
 
Methods inherited from class wt.cache.CacheManager
checkAccess, get, getDefaultName, getEntry, isCacheHost, overflow, ping, put, putEntry, reference, registerSlave, remove, remove, removeEntry, 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
 

Constructor Detail

SeriesCache.ContextMessenger

public SeriesCache.ContextMessenger()
                             throws RemoteException
Method Detail

mappingAdded

public void mappingAdded(Object key,
                         Object value,
                         Object placeholder)
A mapping was added to the local cache. Don't need to notify remote caches because there is nothing additional to do after adding the mapping.

Specified by:
mappingAdded in interface DirtyMap.DirtyMapListener

mappingRemoved

public void mappingRemoved(Object key)
A mapping was removed from the local cache. Make sure the stale entry is removed from remote caches. Not applicable here because we don't remove values. If the cache needs to be reinitialized clear it and reload entirely.

Specified by:
mappingRemoved in interface DirtyMap.DirtyMapListener

mappingsAdded

public void mappingsAdded(Map mappings,
                          Object placeholder)
Specified by:
mappingsAdded in interface DirtyMap.DirtyMapListener

mappingsRemoved

public void mappingsRemoved(Collection keys)
Specified by:
mappingsRemoved in interface DirtyMap.DirtyMapListener