|
Novell exteNd Director 5.2 API |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
This provides an interface for the cache manager.
| Field Summary | |
static String |
CACHE_MGR
Cache Manager Key. |
static String |
GLOBAL_CACHE_HOLDER_ID
Global Cache Holder ID. |
static String |
NAS_SERVERID_ATTR
Attribute name from ServletContext that provides server identification information from Websphere. |
static String |
SERVER_ID_PROPERTY
Server ID system property name. |
static String |
WAS_SERVERID_ATTR
Attribute name from ServletContext that provides server identification information from Websphere. |
| Method Summary | |
void |
enableCache(boolean doEnable)
Enables/Disables the cache. |
void |
flushAll()
Flushes the cache entries from all server-lifetime cache holders. |
void |
flushAll(boolean notification)
Flushes the cache entries from all server-lifetime cache holders. |
void |
flushServerLifetimeCacheHolder(String cacheHolderID)
Flushes the cache entries held by the sepcified server-lifetime cache holder. |
void |
flushServerLifetimeCacheHolder(String cacheHolderID,
boolean notification)
Flushes the cache entries held by the sepcified server-lifetime cache holder. |
Document |
getAllStatistics()
Gets an xml Document that provides the current statistics from cache manager. |
String |
getCacheManagerUUID()
Gets the Cache Manager UUID. |
EbiSrvLifetimeCacheHolder |
getGlobalCacheHolder()
Gets the global server-lifetime cache holder. |
EbiRemoteCoordinatorAdmin |
getRemoteCoordinatorAdmin()
Gets an EbiRemoteCoordinatorAdmin object that communicates to the cache coordinator server through rmi to retrieve information from the cache coordinator server. |
EbiSrvLifetimeCacheHolder |
getServerLifetimeCacheHolder(String cacheHolderID)
Looks up a server-lifetime cache holder by its ID |
String[] |
getServerLifetimeCacheHolderIDList()
Gets the list of all server lifetime cache holder IDs. |
void |
initialize()
Initializes the cache manager. |
void |
initialize(long maxObjs)
Initializes the cache manager from xwb. |
boolean |
isCacheEnabled()
Checks to see if the cache is enabled. |
void |
removeServerLifetimeCacheHolder(String cacheHolderID)
Removes a server-lifetime cache holder by its ID |
void |
setDiskDirectory(String dirLoc)
Sets the disk directory. |
void |
setDiskMaxEntrySize(long maxEntrySize)
Sets the maximum content size for a cache entry allowed in the disk cache. |
void |
setDiskMaxTotalSize(long maxDiskSize)
Sets the total disk size used for disk cache. |
void |
setMemoryMaxEntrySize(long maxEntrySize)
Sets the maximum content size for a cache entry allowed in the memory cache. |
void |
setMemoryMaxTotalSize(long maxMemSize)
Sets the total memory size used for memory cache. |
void |
setObjectMaxTotalSize(long maxObjs)
Sets the maximum number of objects store in the object cache. |
void |
setServerID(String serverID)
Sets server ID for the server instance that this cachemgr instance is running on. |
| Field Detail |
public static final String CACHE_MGR
public static final String GLOBAL_CACHE_HOLDER_ID
public static final String SERVER_ID_PROPERTY
public static final String NAS_SERVERID_ATTR
public static final String WAS_SERVERID_ATTR
| Method Detail |
public String getCacheManagerUUID()
public EbiSrvLifetimeCacheHolder getGlobalCacheHolder()
public void initialize()
public void initialize(long maxObjs)
maixObjs - maximum number of objects hold in the object cache container.public void enableCache(boolean doEnable)
doEnable - true if wants to enable the cache.public boolean isCacheEnabled()
public void setMemoryMaxEntrySize(long maxEntrySize)
maxEntrySize - maximum entry size for memory cache.public void setMemoryMaxTotalSize(long maxMemSize)
maxMemSize - maximum total memory size allowed for the memory cache.public void setDiskMaxEntrySize(long maxEntrySize)
maxEntrySize - maximum entry size for disk cache.public void setDiskMaxTotalSize(long maxDiskSize)
maxDiskSize - maximum total disk size allowed for the disk cache.public void setDiskDirectory(String dirLoc)
dirLoc - disk cache directory location.public void setObjectMaxTotalSize(long maxObjs)
maxObjs - maximum number of objects allow to be cached in the
object cache.public void setServerID(String serverID)
serverID - a server ID.public String[] getServerLifetimeCacheHolderIDList()
public EbiSrvLifetimeCacheHolder getServerLifetimeCacheHolder(String cacheHolderID)
cacheHolderID - an ID for the specified cache holder.public void removeServerLifetimeCacheHolder(String cacheHolderID)
cacheHolderID - an ID of the cache holder to be removed.public void flushServerLifetimeCacheHolder(String cacheHolderID)
cacheHolderID - an identifier for the cache holder to be flushed
public void flushServerLifetimeCacheHolder(String cacheHolderID,
boolean notification)
cacheHolderID - an identifier for the cache holder to be flushednotification - a boolean value, if true will also notify
the cache coordinator to broadcast a message to flush this cache holder
from all servers in the cluster.public void flushAll()
public void flushAll(boolean notification)
notification - true if request for broadcasting, false if
just flush the caches locally.public Document getAllStatistics()
public EbiRemoteCoordinatorAdmin getRemoteCoordinatorAdmin()
throws EboUnrecoverableSystemException
|
Novell exteNd Director 5.2 API |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||