wt.org
Class DirectoryInfrastructureNodeCache
java.lang.Object
java.rmi.server.RemoteObject
java.rmi.server.RemoteServer
wt.util.RMIServer
wt.cache.CacheManager
wt.org.DirectoryInfrastructureNodeCache
- All Implemented Interfaces:
- CacheServer, Remote, Serializable, Unreferenced
- public class DirectoryInfrastructureNodeCache
- extends CacheManager
This class implements a cache service for directory infrastructure nodes.
It follows the 2-level cache paradigm. Creation and updates to directory
infrastructure nodes must be communicated to the cache by the Organization
Services manager.
- See Also:
- Serialized Form
Methods inherited from class wt.cache.CacheManager |
checkAccess, get, getDefaultName, getEntry, isCacheHost, overflow, ping, put, 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 |
cacheSummaryInterval
private static int cacheSummaryInterval
hits
private int hits
misses
private int misses
VERBOSE
protected static boolean VERBOSE
DirectoryInfrastructureNodeCache
public DirectoryInfrastructureNodeCache()
throws RemoteException
- Contruct a new directory infrastructure node cache.
remove
public void remove(DirectoryInfrastructureNode key)
get
public DirectoryInfrastructureNode get(String name,
DirectoryContextProvider context)
throws WTException
- Throws:
WTException
put
public void put(DirectoryInfrastructureNode node)
getDefaultSize
public int getDefaultSize()
- Description copied from class:
CacheManager
- Get desired size of this cache.
This method attemps to find a size property called
wt.cache.size.CacheName
where cacheName
is the name of this cache. Subclasses can override this
method to control cache size in some other way. If no property is found, the default
size is 100.
Supported API: true
- Overrides:
getDefaultSize
in class CacheManager
reportCacheStats
private void reportCacheStats()