wt.org
Class DirectoryInfrastructureNodeCache

java.lang.Object
  extended byjava.rmi.server.RemoteObject
      extended byjava.rmi.server.RemoteServer
          extended bywt.util.RMIServer
              extended bywt.cache.CacheManager
                  extended bywt.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

Field Summary
private static int cacheSummaryInterval
           
private  int hits
           
private  int misses
           
protected static boolean VERBOSE
           
 
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
DirectoryInfrastructureNodeCache()
          Contruct a new directory infrastructure node cache.
 
Method Summary
 DirectoryInfrastructureNode get(String name, DirectoryContextProvider context)
           
 int getDefaultSize()
          Get desired size of this cache.
 void put(DirectoryInfrastructureNode node)
           
 void remove(DirectoryInfrastructureNode key)
           
private  void reportCacheStats()
           
 
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
 
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

cacheSummaryInterval

private static int cacheSummaryInterval

hits

private int hits

misses

private int misses

VERBOSE

protected static boolean VERBOSE
Constructor Detail

DirectoryInfrastructureNodeCache

public DirectoryInfrastructureNodeCache()
                                 throws RemoteException
Contruct a new directory infrastructure node cache.

Method Detail

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()