|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.arjuna.ats.arjuna.common.ObjectStoreEnvironmentBean
public class ObjectStoreEnvironmentBean
A JavaBean containing configuration properties for the objectstore and various implementations thereof.
Constructor Summary | |
---|---|
ObjectStoreEnvironmentBean()
|
Method Summary | |
---|---|
int |
getCacheStoreHash()
Returns the number of hash buckets used for the cache work queue. |
int |
getCacheStoreRemovedItems()
Returns the maximum number of removed items that may be held in the cache before being purged. |
int |
getCacheStoreScanPeriod()
Returns the interval on which the cache will wake and process outstanding work. |
int |
getCacheStoreSize()
Returns the maximum allowed size, in bytes, of the cache store's in-memory cache. |
int |
getCacheStoreWorkItems()
Returns the maximum number of outstanding writes that may be held in the cache. |
int |
getHashedDirectories()
Returns the number of directories over which the ObjectStore contents will be distributed. |
int |
getHierarchyRetry()
Returns the maximum number of attempts which may be made to create a file path in the store. |
int |
getHierarchyTimeout()
Returns the time in milliseconds to wait between file creation retries. |
int |
getJdbcPoolSizeInitial()
Returns the number of connections to initialize in the pool at startup. |
int |
getJdbcPoolSizeMaximum()
Returns the maximum number of connections to hold in the pool. |
java.lang.String |
getJdbcTxDbAccess()
Returns the classname of the JDBCAccess implementation used for the ActionStore. |
java.lang.String |
getJdbcUserDbAccess()
Returns the classname of the JDBCAccess implementation used for the ObjectStore. |
java.lang.String |
getLocalOSRoot()
Returns the local ObjectStore root directory name. |
java.lang.String |
getObjectStoreDir()
Returns the ObjectStore directory path. |
java.lang.String |
getObjectStoreType()
Returns the symbolic name for the ObjectStore implementation. |
long |
getPurgeTime()
Returns the purge interval for the LogStore, in milliseconds. |
int |
getShare()
Returns the share mode for the ObjectStore, i.e., is this being shared between VMs? Default: ObjectStore.OS_UNKNOWN Equivalent deprecated property: com.arjuna.ats.arjuna.objectstore.share |
long |
getTxLogSize()
Returns the default size of the LogStore file, in bytes. |
boolean |
isCacheStoreSync()
Returns true if writes to the objectstore should include a disk sync. |
boolean |
isJdbcPoolPutConnections()
Deprecated. I'm unused and should be removed. |
boolean |
isJmxEnabled()
Determines whether JMX instrumentation of the Object Store is enabled. |
boolean |
isObjectStoreSync()
Returns true if ObjectStore operations should be synched to disk. |
boolean |
isSynchronousRemoval()
Returns true if the LogStore should write removal records synchronously. |
boolean |
isTransactionSync()
Returns true if transaction log operations should be synched to disk. |
void |
setCacheStoreHash(int cacheStoreHash)
Sets the number of hash buskets used to store the cache work queue. |
void |
setCacheStoreRemovedItems(int cacheStoreRemovedItems)
Sets the maximum number of removed items that may be held in the cache before being purged. |
void |
setCacheStoreScanPeriod(int cacheStoreScanPeriod)
Sets the interval on which the cache will process outstanding work, in milliseconds. |
void |
setCacheStoreSize(int cacheStoreSize)
Sets the maximum size, in bytes, of the in-memory object state cache. |
void |
setCacheStoreSync(boolean cacheStoreSync)
Sets if writes to the store should be synched to disk or not. |
void |
setCacheStoreWorkItems(int cacheStoreWorkItems)
Sets the maximum number of outstanding writes that may be held in the cache. |
void |
setHashedDirectories(int hashedDirectories)
Sets the number of directories over which the ObjectStore will be split. |
void |
setHierarchyRetry(int hierarchyRetry)
Sets the maximum number of attempts which may be made to create a direcory tree in the store. |
void |
setHierarchyTimeout(int hierarchyTimeout)
Sets the time in milliseconds to wait between file creation retries. |
void |
setJdbcPoolPutConnections(boolean jdbcPoolPutConnections)
Sets if connections should be returned to the pool after use. |
void |
setJdbcPoolSizeInitial(int jdbcPoolSizeInitial)
Sets the number of the connection to initialize in the pool at startup. |
void |
setJdbcPoolSizeMaximum(int jdbcPoolSizeMaximum)
Sets the maximum number of connections to hold in the pool. |
void |
setJdbcTxDbAccess(java.lang.String jdbcTxDbAccess)
Sets the classname of the JDBCAccess implementation used for the ActionStore. |
void |
setJdbcUserDbAccess(java.lang.String jdbcUserDbAccess)
Sets the classname of the JDBCAccess implementation used for the ObjectStore. |
void |
setJmxEnabled(boolean enable)
Enable or disable JMX instrumentation of the Object Store. |
void |
setLocalOSRoot(java.lang.String localOSRoot)
Sets the local ObjectStore root directory name. |
void |
setObjectStoreDir(java.lang.String objectStoreDir)
Sets the ObjectStore directory path. |
void |
setObjectStoreSync(boolean objectStoreSync)
Sets if ObjectStore operations should be synched to disk or not. |
void |
setObjectStoreType(java.lang.String objectStoreType)
Sets the symbolic name of the ObjectStore implementation. |
void |
setPurgeTime(long purgeTime)
Sets the purge interval for the LogStore, in milliseconds. |
void |
setShare(int share)
Sets the share mode of the ObjectStore |
void |
setSynchronousRemoval(boolean synchronousRemoval)
Sets if the LogStore should write removal records synchronously or not. |
void |
setTransactionSync(boolean transactionSync)
Sets if transaction log operations should be synched to disk or not. |
void |
setTxLogSize(long txLogSize)
Sets the default size of the LogStore, in bytes. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ObjectStoreEnvironmentBean()
Method Detail |
---|
public int getCacheStoreSize()
getCacheStoreSize
in interface ObjectStoreEnvironmentBeanMBean
public void setCacheStoreSize(int cacheStoreSize)
setCacheStoreSize
in interface ObjectStoreEnvironmentBeanMBean
cacheStoreSize
- the maximum cache size in bytes.public boolean isCacheStoreSync()
isCacheStoreSync
in interface ObjectStoreEnvironmentBeanMBean
public void setCacheStoreSync(boolean cacheStoreSync)
setCacheStoreSync
in interface ObjectStoreEnvironmentBeanMBean
cacheStoreSync
- true to enable syncing, false to disable.public int getCacheStoreRemovedItems()
getCacheStoreRemovedItems
in interface ObjectStoreEnvironmentBeanMBean
public void setCacheStoreRemovedItems(int cacheStoreRemovedItems)
setCacheStoreRemovedItems
in interface ObjectStoreEnvironmentBeanMBean
cacheStoreRemovedItems
- teh maximun number of items.public int getCacheStoreScanPeriod()
getCacheStoreScanPeriod
in interface ObjectStoreEnvironmentBeanMBean
public void setCacheStoreScanPeriod(int cacheStoreScanPeriod)
setCacheStoreScanPeriod
in interface ObjectStoreEnvironmentBeanMBean
cacheStoreScanPeriod
- the sleep duration, in milliseconds.public int getCacheStoreWorkItems()
getCacheStoreWorkItems
in interface ObjectStoreEnvironmentBeanMBean
public void setCacheStoreWorkItems(int cacheStoreWorkItems)
setCacheStoreWorkItems
in interface ObjectStoreEnvironmentBeanMBean
cacheStoreWorkItems
- the maximum number of outstnading writes.public int getCacheStoreHash()
getCacheStoreHash
in interface ObjectStoreEnvironmentBeanMBean
public void setCacheStoreHash(int cacheStoreHash)
setCacheStoreHash
in interface ObjectStoreEnvironmentBeanMBean
cacheStoreHash
- the number of hash buckets.public java.lang.String getLocalOSRoot()
getLocalOSRoot
in interface ObjectStoreEnvironmentBeanMBean
public void setLocalOSRoot(java.lang.String localOSRoot)
setLocalOSRoot
in interface ObjectStoreEnvironmentBeanMBean
localOSRoot
- the directory name.public java.lang.String getObjectStoreDir()
getObjectStoreDir
in interface ObjectStoreEnvironmentBeanMBean
public void setObjectStoreDir(java.lang.String objectStoreDir)
setObjectStoreDir
in interface ObjectStoreEnvironmentBeanMBean
objectStoreDir
- the directory path.public boolean isObjectStoreSync()
isObjectStoreSync
in interface ObjectStoreEnvironmentBeanMBean
public void setObjectStoreSync(boolean objectStoreSync)
setObjectStoreSync
in interface ObjectStoreEnvironmentBeanMBean
objectStoreSync
- true to sunc to disk, false to skip synching.public java.lang.String getObjectStoreType()
getObjectStoreType
in interface ObjectStoreEnvironmentBeanMBean
public void setObjectStoreType(java.lang.String objectStoreType)
setObjectStoreType
in interface ObjectStoreEnvironmentBeanMBean
objectStoreType
- the symbolic name of the implementation.public int getHashedDirectories()
getHashedDirectories
in interface ObjectStoreEnvironmentBeanMBean
public void setHashedDirectories(int hashedDirectories)
setHashedDirectories
in interface ObjectStoreEnvironmentBeanMBean
hashedDirectories
- the number of directories.public boolean isTransactionSync()
isTransactionSync
in interface ObjectStoreEnvironmentBeanMBean
public void setTransactionSync(boolean transactionSync)
setTransactionSync
in interface ObjectStoreEnvironmentBeanMBean
transactionSync
- true to enable synching, false to disable.public java.lang.String getJdbcUserDbAccess()
getJdbcUserDbAccess
in interface ObjectStoreEnvironmentBeanMBean
public void setJdbcUserDbAccess(java.lang.String jdbcUserDbAccess)
setJdbcUserDbAccess
in interface ObjectStoreEnvironmentBeanMBean
jdbcUserDbAccess
- the name of the class implementing JDBCAccess.public java.lang.String getJdbcTxDbAccess()
getJdbcTxDbAccess
in interface ObjectStoreEnvironmentBeanMBean
public void setJdbcTxDbAccess(java.lang.String jdbcTxDbAccess)
setJdbcTxDbAccess
in interface ObjectStoreEnvironmentBeanMBean
jdbcTxDbAccess
- the name of the class implementing JDBCAccess.public int getJdbcPoolSizeInitial()
getJdbcPoolSizeInitial
in interface ObjectStoreEnvironmentBeanMBean
public void setJdbcPoolSizeInitial(int jdbcPoolSizeInitial)
setJdbcPoolSizeInitial
in interface ObjectStoreEnvironmentBeanMBean
jdbcPoolSizeInitial
- the initial size of the connection pool.public int getJdbcPoolSizeMaximum()
getJdbcPoolSizeMaximum
in interface ObjectStoreEnvironmentBeanMBean
public void setJdbcPoolSizeMaximum(int jdbcPoolSizeMaximum)
setJdbcPoolSizeMaximum
in interface ObjectStoreEnvironmentBeanMBean
jdbcPoolSizeMaximum
- the maximum size of the connection pool.public boolean isJdbcPoolPutConnections()
isJdbcPoolPutConnections
in interface ObjectStoreEnvironmentBeanMBean
public void setJdbcPoolPutConnections(boolean jdbcPoolPutConnections)
setJdbcPoolPutConnections
in interface ObjectStoreEnvironmentBeanMBean
jdbcPoolPutConnections
- true to enable connection reuse, false to disable.public int getShare()
getShare
in interface ObjectStoreEnvironmentBeanMBean
public void setShare(int share)
setShare
in interface ObjectStoreEnvironmentBeanMBean
share
- a valid share mode.public int getHierarchyRetry()
getHierarchyRetry
in interface ObjectStoreEnvironmentBeanMBean
public void setHierarchyRetry(int hierarchyRetry)
setHierarchyRetry
in interface ObjectStoreEnvironmentBeanMBean
hierarchyRetry
- the maximum number of file creation attempts.public int getHierarchyTimeout()
getHierarchyTimeout
in interface ObjectStoreEnvironmentBeanMBean
public void setHierarchyTimeout(int hierarchyTimeout)
setHierarchyTimeout
in interface ObjectStoreEnvironmentBeanMBean
hierarchyTimeout
- the wait time in milliseconds.public boolean isSynchronousRemoval()
isSynchronousRemoval
in interface ObjectStoreEnvironmentBeanMBean
public void setSynchronousRemoval(boolean synchronousRemoval)
setSynchronousRemoval
in interface ObjectStoreEnvironmentBeanMBean
synchronousRemoval
- true for synchronous operation, false for asynchronous.public long getTxLogSize()
getTxLogSize
in interface ObjectStoreEnvironmentBeanMBean
public void setTxLogSize(long txLogSize)
setTxLogSize
in interface ObjectStoreEnvironmentBeanMBean
txLogSize
- the default file size, in bytes.public long getPurgeTime()
getPurgeTime
in interface ObjectStoreEnvironmentBeanMBean
public void setPurgeTime(long purgeTime)
setPurgeTime
in interface ObjectStoreEnvironmentBeanMBean
purgeTime
- the purge interval in milliseconds.public boolean isJmxEnabled()
isJmxEnabled
in interface ObjectStoreEnvironmentBeanMBean
public void setJmxEnabled(boolean enable)
setJmxEnabled
in interface ObjectStoreEnvironmentBeanMBean
enable
- set to true to enable.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |