public class MetaObjectStoreEnvironmentBean extends ObjectStoreEnvironmentBean
arjPropertyManager.getObjectStoreEnvironmentBean()| Constructor and Description |
|---|
MetaObjectStoreEnvironmentBean() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
boolean |
getCreateTable()
Should the store create the table
|
boolean |
getDropTable()
Should the store drop the table
|
boolean |
getExposeAllLogRecordsAsMBeans() |
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.
|
String |
getJdbcAccess()
Returns an instance of a class implementing JDBCAccess.
|
String |
getLocalOSRoot()
Returns the local ObjectStore root directory name.
|
String |
getObjectStoreDir()
Returns the ObjectStore directory path.
|
String |
getObjectStoreType()
Returns the fully qualified class 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?
This property is used by the following object store implementations: ActionStore, CacheStore, HashedActionStore,
HashedStore, LogStore, NullActionStore, ShadowingStore, ShadowNoFileLockStore, TwoPhaseVolatileStore, VolatileStore.
|
String |
getTablePrefix()
Get the table prefix
|
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 |
isIgnoreMBeanHeuristics() |
boolean |
isObjectStoreSync()
Returns true if ObjectStore operations should be synched to disk.
|
boolean |
isScanZeroLengthFiles()
Returns true if zero length files should be returned by a recovery scan.
|
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.
|
boolean |
isVolatileStoreSupportAllObjUids() |
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 |
setCreateTable(boolean createTable)
Set whether to create the table.
|
void |
setDropTable(boolean dropTable)
Set whether to drop the table.
|
void |
setExposeAllLogRecordsAsMBeans(boolean exposeAllLogRecords)
Determine whether the ObjStoreBrowser should report basic information about all logs.
|
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 |
setIgnoreMBeanHeuristics(boolean ignoreMBeanHeuristics)
Determine whether or not MBean operations that delete a transaction will delete participants that
are still in a heuristic state
|
void |
setJdbcAccess(String connectionDetails)
Sets the instance of JDBCAccess
|
void |
setLocalOSRoot(String localOSRoot)
Sets the local ObjectStore root directory name.
|
void |
setObjectStoreDir(String objectStoreDir)
Sets the ObjectStore directory path.
|
void |
setObjectStoreSync(boolean objectStoreSync)
Sets if ObjectStore operations should be synched to disk or not.
|
void |
setObjectStoreType(String objectStoreType)
Sets the symbolic name of the ObjectStore implementation.
|
void |
setPurgeTime(long purgeTime)
Sets the purge interval for the LogStore, in milliseconds.
|
void |
setScanZeroLengthFiles(boolean scanZeroLengthFiles)
Sets if zero length files should be returned by a recovery scan.
|
void |
setShare(int share)
Sets the share mode of the ObjectStore
This property is used by the following object store implementations: ActionStore, CacheStore, HashedActionStore,
HashedStore, LogStore, NullActionStore, ShadowingStore, ShadowNoFileLockStore, TwoPhaseVolatileStore, VolatileStore.
|
void |
setSynchronousRemoval(boolean synchronousRemoval)
Sets if the LogStore should write removal records synchronously or not.
|
void |
setTablePrefix(String tablePrefix)
Set the table prefix
|
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.
|
void |
setVolatileStoreSupportAllObjUids(boolean volatileStoreSupportAllObjUids)
Indicate whether or not the volatile store types
VolatileStore
and TwoPhaseVolatileStore should support the
RecoveryStore.allObjUids(java.lang.String, com.arjuna.ats.arjuna.state.InputObjectState, int) and
RecoveryStore.allTypes(com.arjuna.ats.arjuna.state.InputObjectState)
API methods |
public int getCacheStoreSize()
ObjectStoreEnvironmentBeangetCacheStoreSize in interface ObjectStoreEnvironmentBeanMBeangetCacheStoreSize in class ObjectStoreEnvironmentBeanpublic void setCacheStoreSize(int cacheStoreSize)
ObjectStoreEnvironmentBeansetCacheStoreSize in class ObjectStoreEnvironmentBeancacheStoreSize - the maximum cache size in bytes.public boolean isCacheStoreSync()
ObjectStoreEnvironmentBeanisCacheStoreSync in interface ObjectStoreEnvironmentBeanMBeanisCacheStoreSync in class ObjectStoreEnvironmentBeanpublic void setCacheStoreSync(boolean cacheStoreSync)
ObjectStoreEnvironmentBeansetCacheStoreSync in class ObjectStoreEnvironmentBeancacheStoreSync - true to enable syncing, false to disable.public int getCacheStoreRemovedItems()
ObjectStoreEnvironmentBeangetCacheStoreRemovedItems in interface ObjectStoreEnvironmentBeanMBeangetCacheStoreRemovedItems in class ObjectStoreEnvironmentBeanpublic void setCacheStoreRemovedItems(int cacheStoreRemovedItems)
ObjectStoreEnvironmentBeansetCacheStoreRemovedItems in class ObjectStoreEnvironmentBeancacheStoreRemovedItems - teh maximun number of items.public int getCacheStoreScanPeriod()
ObjectStoreEnvironmentBeangetCacheStoreScanPeriod in interface ObjectStoreEnvironmentBeanMBeangetCacheStoreScanPeriod in class ObjectStoreEnvironmentBeanpublic void setCacheStoreScanPeriod(int cacheStoreScanPeriod)
ObjectStoreEnvironmentBeansetCacheStoreScanPeriod in class ObjectStoreEnvironmentBeancacheStoreScanPeriod - the sleep duration, in milliseconds.public int getCacheStoreWorkItems()
ObjectStoreEnvironmentBeangetCacheStoreWorkItems in interface ObjectStoreEnvironmentBeanMBeangetCacheStoreWorkItems in class ObjectStoreEnvironmentBeanpublic void setCacheStoreWorkItems(int cacheStoreWorkItems)
ObjectStoreEnvironmentBeansetCacheStoreWorkItems in class ObjectStoreEnvironmentBeancacheStoreWorkItems - the maximum number of outstnading writes.public int getCacheStoreHash()
ObjectStoreEnvironmentBeangetCacheStoreHash in interface ObjectStoreEnvironmentBeanMBeangetCacheStoreHash in class ObjectStoreEnvironmentBeanpublic void setCacheStoreHash(int cacheStoreHash)
ObjectStoreEnvironmentBeansetCacheStoreHash in class ObjectStoreEnvironmentBeancacheStoreHash - the number of hash buckets.public String getLocalOSRoot()
ObjectStoreEnvironmentBeangetLocalOSRoot in interface ObjectStoreEnvironmentBeanMBeangetLocalOSRoot in class ObjectStoreEnvironmentBeanpublic void setLocalOSRoot(String localOSRoot)
ObjectStoreEnvironmentBeansetLocalOSRoot in class ObjectStoreEnvironmentBeanlocalOSRoot - the directory name.public String getObjectStoreDir()
ObjectStoreEnvironmentBeangetObjectStoreDir in interface ObjectStoreEnvironmentBeanMBeangetObjectStoreDir in class ObjectStoreEnvironmentBeanpublic void setObjectStoreDir(String objectStoreDir)
ObjectStoreEnvironmentBeansetObjectStoreDir in class ObjectStoreEnvironmentBeanobjectStoreDir - the directory path.public boolean isObjectStoreSync()
ObjectStoreEnvironmentBeanisObjectStoreSync in interface ObjectStoreEnvironmentBeanMBeanisObjectStoreSync in class ObjectStoreEnvironmentBeanpublic void setObjectStoreSync(boolean objectStoreSync)
ObjectStoreEnvironmentBeansetObjectStoreSync in class ObjectStoreEnvironmentBeanobjectStoreSync - true to sunc to disk, false to skip synching.public String getObjectStoreType()
ObjectStoreEnvironmentBeangetObjectStoreType in interface ObjectStoreEnvironmentBeanMBeangetObjectStoreType in class ObjectStoreEnvironmentBeanpublic void setObjectStoreType(String objectStoreType)
ObjectStoreEnvironmentBeansetObjectStoreType in class ObjectStoreEnvironmentBeanobjectStoreType - the symbolic name of the implementation.public int getHashedDirectories()
ObjectStoreEnvironmentBeangetHashedDirectories in interface ObjectStoreEnvironmentBeanMBeangetHashedDirectories in class ObjectStoreEnvironmentBeanpublic void setHashedDirectories(int hashedDirectories)
ObjectStoreEnvironmentBeansetHashedDirectories in class ObjectStoreEnvironmentBeanhashedDirectories - the number of directories.public boolean isTransactionSync()
ObjectStoreEnvironmentBeanisTransactionSync in interface ObjectStoreEnvironmentBeanMBeanisTransactionSync in class ObjectStoreEnvironmentBeanpublic void setTransactionSync(boolean transactionSync)
ObjectStoreEnvironmentBeansetTransactionSync in class ObjectStoreEnvironmentBeantransactionSync - true to enable synching, false to disable.public boolean isScanZeroLengthFiles()
ObjectStoreEnvironmentBeanisScanZeroLengthFiles in class ObjectStoreEnvironmentBeanpublic void setScanZeroLengthFiles(boolean scanZeroLengthFiles)
ObjectStoreEnvironmentBeansetScanZeroLengthFiles in class ObjectStoreEnvironmentBeanscanZeroLengthFiles - true to include zero length files in scan results, false to exclude them.public int getShare()
ObjectStoreEnvironmentBeangetShare in interface ObjectStoreEnvironmentBeanMBeangetShare in class ObjectStoreEnvironmentBeanpublic void setShare(int share)
ObjectStoreEnvironmentBeansetShare in class ObjectStoreEnvironmentBeanshare - a valid share mode.public int getHierarchyRetry()
ObjectStoreEnvironmentBeangetHierarchyRetry in interface ObjectStoreEnvironmentBeanMBeangetHierarchyRetry in class ObjectStoreEnvironmentBeanpublic void setHierarchyRetry(int hierarchyRetry)
ObjectStoreEnvironmentBeansetHierarchyRetry in class ObjectStoreEnvironmentBeanhierarchyRetry - the maximum number of file creation attempts.public int getHierarchyTimeout()
ObjectStoreEnvironmentBeangetHierarchyTimeout in interface ObjectStoreEnvironmentBeanMBeangetHierarchyTimeout in class ObjectStoreEnvironmentBeanpublic void setHierarchyTimeout(int hierarchyTimeout)
ObjectStoreEnvironmentBeansetHierarchyTimeout in class ObjectStoreEnvironmentBeanhierarchyTimeout - the wait time in milliseconds.public boolean isSynchronousRemoval()
ObjectStoreEnvironmentBeanisSynchronousRemoval in interface ObjectStoreEnvironmentBeanMBeanisSynchronousRemoval in class ObjectStoreEnvironmentBeanpublic void setSynchronousRemoval(boolean synchronousRemoval)
ObjectStoreEnvironmentBeansetSynchronousRemoval in class ObjectStoreEnvironmentBeansynchronousRemoval - true for synchronous operation, false for asynchronous.public long getTxLogSize()
ObjectStoreEnvironmentBeangetTxLogSize in interface ObjectStoreEnvironmentBeanMBeangetTxLogSize in class ObjectStoreEnvironmentBeanpublic void setTxLogSize(long txLogSize)
ObjectStoreEnvironmentBeansetTxLogSize in class ObjectStoreEnvironmentBeantxLogSize - the default file size, in bytes.public long getPurgeTime()
ObjectStoreEnvironmentBeangetPurgeTime in interface ObjectStoreEnvironmentBeanMBeangetPurgeTime in class ObjectStoreEnvironmentBeanpublic void setPurgeTime(long purgeTime)
ObjectStoreEnvironmentBeansetPurgeTime in class ObjectStoreEnvironmentBeanpurgeTime - the purge interval in milliseconds.public String getJdbcAccess()
ObjectStoreEnvironmentBeangetJdbcAccess in interface ObjectStoreEnvironmentBeanMBeangetJdbcAccess in class ObjectStoreEnvironmentBeanpublic void setJdbcAccess(String connectionDetails)
ObjectStoreEnvironmentBeansetJdbcAccess in interface ObjectStoreEnvironmentBeanMBeansetJdbcAccess in class ObjectStoreEnvironmentBeanconnectionDetails - an Object that provides JDBCAccess, or null.public String getTablePrefix()
ObjectStoreEnvironmentBeangetTablePrefix in interface ObjectStoreEnvironmentBeanMBeangetTablePrefix in class ObjectStoreEnvironmentBeanpublic void setTablePrefix(String tablePrefix)
ObjectStoreEnvironmentBeansetTablePrefix in interface ObjectStoreEnvironmentBeanMBeansetTablePrefix in class ObjectStoreEnvironmentBeantablePrefix - A prefix to use on the tablespublic boolean getDropTable()
ObjectStoreEnvironmentBeangetDropTable in interface ObjectStoreEnvironmentBeanMBeangetDropTable in class ObjectStoreEnvironmentBeanpublic void setDropTable(boolean dropTable)
ObjectStoreEnvironmentBeansetDropTable in interface ObjectStoreEnvironmentBeanMBeansetDropTable in class ObjectStoreEnvironmentBeandropTable - Drop the tablepublic boolean getCreateTable()
ObjectStoreEnvironmentBeangetCreateTable in class ObjectStoreEnvironmentBeanpublic void setCreateTable(boolean createTable)
ObjectStoreEnvironmentBeansetCreateTable in class ObjectStoreEnvironmentBeancreateTable - Create the tablepublic boolean getExposeAllLogRecordsAsMBeans()
getExposeAllLogRecordsAsMBeans in class ObjectStoreEnvironmentBeanpublic void setExposeAllLogRecordsAsMBeans(boolean exposeAllLogRecords)
ObjectStoreEnvironmentBeanObjectStoreBrowser
Use this method to explicitly set the desired behaviour.
You can also set this behaviour via JMX using
JMXsetExposeAllLogRecordsAsMBeans in class ObjectStoreEnvironmentBeanexposeAllLogRecords - Set to true to expose basic information about all log recordspublic boolean isIgnoreMBeanHeuristics()
isIgnoreMBeanHeuristics in class ObjectStoreEnvironmentBeanpublic void setIgnoreMBeanHeuristics(boolean ignoreMBeanHeuristics)
ObjectStoreEnvironmentBeansetIgnoreMBeanHeuristics in class ObjectStoreEnvironmentBeanignoreMBeanHeuristics - if false heuristic participants may only be deleted after the heuristic
has been clearedpublic boolean isVolatileStoreSupportAllObjUids()
isVolatileStoreSupportAllObjUids in class ObjectStoreEnvironmentBeanVolatileStore
and TwoPhaseVolatileStore should support the
RecoveryStore.allObjUids(java.lang.String, com.arjuna.ats.arjuna.state.InputObjectState, int) and
RecoveryStore.allTypes(com.arjuna.ats.arjuna.state.InputObjectState)
API methodspublic void setVolatileStoreSupportAllObjUids(boolean volatileStoreSupportAllObjUids)
ObjectStoreEnvironmentBeanVolatileStore
and TwoPhaseVolatileStore should support the
RecoveryStore.allObjUids(java.lang.String, com.arjuna.ats.arjuna.state.InputObjectState, int) and
RecoveryStore.allTypes(com.arjuna.ats.arjuna.state.InputObjectState)
API methodssetVolatileStoreSupportAllObjUids in class ObjectStoreEnvironmentBeanvolatileStoreSupportAllObjUids - if true then add support for finding Uids by type in the volatile storesCopyright © 2022 JBoss by Red Hat. All rights reserved.