|
Oracle Application Server Java Object Cache API Reference 10g Release 3 (10.1.3) B25712-01 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
oracle.ias.cache.NamedCacheAttributes
oracle.ias.cache.CacheAttributes
CacheAttributes has the Cache configuration information. It is a structure which is passed to Cache.init(CacheAttributes) to do the system wide configuration. All the fileds are public and user can access the fields directly. Two constructors and a set of convenient methods are provided.
Cache.init(CacheAttributes)| Field Summary | |
boolean |
autoInitWhether cache is auto init |
java.lang.String |
cacheNameThe name of the cache |
int |
capacityBufferThe percentage of the cache to keep in reserve when determining when to clean the cache. |
java.lang.String |
capacityPolicyThe capacityPolicy object which is used to determine if an object is eligible to be removed from the cache when the cache capacity has been reached. |
int |
cleanIntervalNumber of seconds between cache cleanings |
int |
internalVersionVersion number used to indicate format changes |
int |
maxIdleTimeThe maximum number of seconds an object can remain idle without being available for removal should the cache fill up |
int |
pingIntervalNumber of seconds between cache death detection(pinging) |
int |
transportDeprecated. |
java.lang.String |
versionVersion of the cache software |
| Fields inherited from class oracle.ias.cache.NamedCacheAttributes |
diskCount, diskPath, diskSize, distribute, dms, dumpFileName, HTTP, isSSLEnabled, logFileName, logger, logLevel, logSeverity, maxObjects, maxSize, REGIONSEPARATOR, sslConfigFilePath, TCP |
| Constructor Summary | |
CacheAttributes()Constructs a default CacheAttributes which will set all the values to default. |
|
| Method Summary | |
void |
setAutoInit(boolean flag) |
void |
setCacheName(java.lang.String name)sets the cach name |
void |
setCapacityBuffer(int count)sets the capacity policy string The capacity policy string must be the class name for a class that extends the CapacityPolicy abstract class and implements the Declarable interface. |
void |
setCapacityPolicy(java.lang.String policyString)sets the capacity policy string The capacity policy string must be the class name for a class that extends the CapacityPolicy abstract class and implements the Declarable interface. |
void |
setCleanInterval(int pCleanInterval)sets number of seconds between cache cleanings |
void |
setPingInterval(int pPingInterval)sets number of seconds between cache death detection |
java.lang.String |
toString()converts this object into a formatted string |
| Methods inherited from class oracle.ias.cache.NamedCacheAttributes |
addCacheAddr, addCacheAddr, addCacheAddr, addCacheAddr, addPrimaryCacheAddr, addressIsOriginal, clone, getAddrList, getAddrListString, getAddrString, getCacheAddrs, getCacheDumpFilePath, getCoordinatorList, getGroupConfig, getLocalAddress, getLoggerConfigurationFileName, getLogLevel, getLowerPortBoundry, getMulticastAddress, getMulticastInterval, getMulticastPort, getMulticastTTL, getOverrideNodeListenerPort, getResolutionInterval, getUpperPortBoundry, isMulticast, isNodeListenerDeathDetectable, isOverrideLogconfiguration, isPriorityOrderEnabled, removeCacheAddr, setCacheDumpFileName, setDiskCount, setDiskPath, setDiskSize, setDistribute, setDms, setEnableSSL, setKeyStore, setLocalAddress, setLogFileName, setLogger, setLoggerConfigurationFileName, setLogLevel, setLogSeverity, setLowerPortBoundry, setMaxObjects, setMaxSize, setNodeListenerDeathDetectable, setOverrideLogconfiguration, setOverrideNodeListenerPort, setSSLConfigFile, setTransport, setUpperPortBoundry |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public java.lang.String version
public int internalVersion
public int cleanInterval
public int pingInterval
public java.lang.String capacityPolicy
The capacity buffer is a percentage of the cache to be held in reserve. That is, the cache system will start looking for objects to be removed from the cache when only the indicated percentage of the cache is available. For example if maxCount is set to 1000 and the capacityBuffer is set to 5 then when the number of objects in the cache reaches 950, the cache will start looking for objects to remove. The default value for capacityBuffer is 15.
public int capacityBuffer
public int maxIdleTime
public boolean autoInit
public java.lang.String cacheName
public int transport
| Constructor Detail |
public CacheAttributes()
throws CacheException
| Method Detail |
public void setCleanInterval(int pCleanInterval)
pCleanInterval - number of seconds between cache cleaningspublic void setPingInterval(int pPingInterval)
pPingInterval - number of seconds between cache death detectionpublic void setCapacityPolicy(java.lang.String policyString)
The capacity policy string must be the class name for a class that extends the CapacityPolicy abstract class and implements the Declarable interface. The abstract method CapacityPolicy.policy must be implemented. The capacity policy set in CacheAttributes is the capacity policy for the cache as a whole. The init method of the Declarable interface is called when the object is instantiated to do any initialization required.
policyString - the class name of the capacity policy objectpublic void setAutoInit(boolean flag)
flag - if true auto init is enabled
public void setCapacityBuffer(int count)
throws InvalidArgumentException
The capacity policy string must be the class name for a class that extends the CapacityPolicy abstract class and implements the Declarable interface. The abstract method CapacityPolicy.policy must be implemented The capacity policy set in CacheAttributes is the capacity policy for the cache as a whole. The init method of the Declarable interface is called when the object is instantiated to any initialization required.
count - the capacity bufferInvalidArgumentExceptionpublic void setCacheName(java.lang.String name)
name - is the name for the cachepublic java.lang.String toString()
|
Oracle Application Server Java Object Cache API Reference 10g Release 3 (10.1.3) B25712-01 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||