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()
ObjectStoreEnvironmentBean
getCacheStoreSize
in interface ObjectStoreEnvironmentBeanMBean
getCacheStoreSize
in class ObjectStoreEnvironmentBean
public void setCacheStoreSize(int cacheStoreSize)
ObjectStoreEnvironmentBean
setCacheStoreSize
in class ObjectStoreEnvironmentBean
cacheStoreSize
- the maximum cache size in bytes.public boolean isCacheStoreSync()
ObjectStoreEnvironmentBean
isCacheStoreSync
in interface ObjectStoreEnvironmentBeanMBean
isCacheStoreSync
in class ObjectStoreEnvironmentBean
public void setCacheStoreSync(boolean cacheStoreSync)
ObjectStoreEnvironmentBean
setCacheStoreSync
in class ObjectStoreEnvironmentBean
cacheStoreSync
- true to enable syncing, false to disable.public int getCacheStoreRemovedItems()
ObjectStoreEnvironmentBean
getCacheStoreRemovedItems
in interface ObjectStoreEnvironmentBeanMBean
getCacheStoreRemovedItems
in class ObjectStoreEnvironmentBean
public void setCacheStoreRemovedItems(int cacheStoreRemovedItems)
ObjectStoreEnvironmentBean
setCacheStoreRemovedItems
in class ObjectStoreEnvironmentBean
cacheStoreRemovedItems
- teh maximun number of items.public int getCacheStoreScanPeriod()
ObjectStoreEnvironmentBean
getCacheStoreScanPeriod
in interface ObjectStoreEnvironmentBeanMBean
getCacheStoreScanPeriod
in class ObjectStoreEnvironmentBean
public void setCacheStoreScanPeriod(int cacheStoreScanPeriod)
ObjectStoreEnvironmentBean
setCacheStoreScanPeriod
in class ObjectStoreEnvironmentBean
cacheStoreScanPeriod
- the sleep duration, in milliseconds.public int getCacheStoreWorkItems()
ObjectStoreEnvironmentBean
getCacheStoreWorkItems
in interface ObjectStoreEnvironmentBeanMBean
getCacheStoreWorkItems
in class ObjectStoreEnvironmentBean
public void setCacheStoreWorkItems(int cacheStoreWorkItems)
ObjectStoreEnvironmentBean
setCacheStoreWorkItems
in class ObjectStoreEnvironmentBean
cacheStoreWorkItems
- the maximum number of outstnading writes.public int getCacheStoreHash()
ObjectStoreEnvironmentBean
getCacheStoreHash
in interface ObjectStoreEnvironmentBeanMBean
getCacheStoreHash
in class ObjectStoreEnvironmentBean
public void setCacheStoreHash(int cacheStoreHash)
ObjectStoreEnvironmentBean
setCacheStoreHash
in class ObjectStoreEnvironmentBean
cacheStoreHash
- the number of hash buckets.public String getLocalOSRoot()
ObjectStoreEnvironmentBean
getLocalOSRoot
in interface ObjectStoreEnvironmentBeanMBean
getLocalOSRoot
in class ObjectStoreEnvironmentBean
public void setLocalOSRoot(String localOSRoot)
ObjectStoreEnvironmentBean
setLocalOSRoot
in class ObjectStoreEnvironmentBean
localOSRoot
- the directory name.public String getObjectStoreDir()
ObjectStoreEnvironmentBean
getObjectStoreDir
in interface ObjectStoreEnvironmentBeanMBean
getObjectStoreDir
in class ObjectStoreEnvironmentBean
public void setObjectStoreDir(String objectStoreDir)
ObjectStoreEnvironmentBean
setObjectStoreDir
in class ObjectStoreEnvironmentBean
objectStoreDir
- the directory path.public boolean isObjectStoreSync()
ObjectStoreEnvironmentBean
isObjectStoreSync
in interface ObjectStoreEnvironmentBeanMBean
isObjectStoreSync
in class ObjectStoreEnvironmentBean
public void setObjectStoreSync(boolean objectStoreSync)
ObjectStoreEnvironmentBean
setObjectStoreSync
in class ObjectStoreEnvironmentBean
objectStoreSync
- true to sunc to disk, false to skip synching.public String getObjectStoreType()
ObjectStoreEnvironmentBean
getObjectStoreType
in interface ObjectStoreEnvironmentBeanMBean
getObjectStoreType
in class ObjectStoreEnvironmentBean
public void setObjectStoreType(String objectStoreType)
ObjectStoreEnvironmentBean
setObjectStoreType
in class ObjectStoreEnvironmentBean
objectStoreType
- the symbolic name of the implementation.public int getHashedDirectories()
ObjectStoreEnvironmentBean
getHashedDirectories
in interface ObjectStoreEnvironmentBeanMBean
getHashedDirectories
in class ObjectStoreEnvironmentBean
public void setHashedDirectories(int hashedDirectories)
ObjectStoreEnvironmentBean
setHashedDirectories
in class ObjectStoreEnvironmentBean
hashedDirectories
- the number of directories.public boolean isTransactionSync()
ObjectStoreEnvironmentBean
isTransactionSync
in interface ObjectStoreEnvironmentBeanMBean
isTransactionSync
in class ObjectStoreEnvironmentBean
public void setTransactionSync(boolean transactionSync)
ObjectStoreEnvironmentBean
setTransactionSync
in class ObjectStoreEnvironmentBean
transactionSync
- true to enable synching, false to disable.public boolean isScanZeroLengthFiles()
ObjectStoreEnvironmentBean
isScanZeroLengthFiles
in class ObjectStoreEnvironmentBean
public void setScanZeroLengthFiles(boolean scanZeroLengthFiles)
ObjectStoreEnvironmentBean
setScanZeroLengthFiles
in class ObjectStoreEnvironmentBean
scanZeroLengthFiles
- true to include zero length files in scan results, false to exclude them.public int getShare()
ObjectStoreEnvironmentBean
getShare
in interface ObjectStoreEnvironmentBeanMBean
getShare
in class ObjectStoreEnvironmentBean
public void setShare(int share)
ObjectStoreEnvironmentBean
setShare
in class ObjectStoreEnvironmentBean
share
- a valid share mode.public int getHierarchyRetry()
ObjectStoreEnvironmentBean
getHierarchyRetry
in interface ObjectStoreEnvironmentBeanMBean
getHierarchyRetry
in class ObjectStoreEnvironmentBean
public void setHierarchyRetry(int hierarchyRetry)
ObjectStoreEnvironmentBean
setHierarchyRetry
in class ObjectStoreEnvironmentBean
hierarchyRetry
- the maximum number of file creation attempts.public int getHierarchyTimeout()
ObjectStoreEnvironmentBean
getHierarchyTimeout
in interface ObjectStoreEnvironmentBeanMBean
getHierarchyTimeout
in class ObjectStoreEnvironmentBean
public void setHierarchyTimeout(int hierarchyTimeout)
ObjectStoreEnvironmentBean
setHierarchyTimeout
in class ObjectStoreEnvironmentBean
hierarchyTimeout
- the wait time in milliseconds.public boolean isSynchronousRemoval()
ObjectStoreEnvironmentBean
isSynchronousRemoval
in interface ObjectStoreEnvironmentBeanMBean
isSynchronousRemoval
in class ObjectStoreEnvironmentBean
public void setSynchronousRemoval(boolean synchronousRemoval)
ObjectStoreEnvironmentBean
setSynchronousRemoval
in class ObjectStoreEnvironmentBean
synchronousRemoval
- true for synchronous operation, false for asynchronous.public long getTxLogSize()
ObjectStoreEnvironmentBean
getTxLogSize
in interface ObjectStoreEnvironmentBeanMBean
getTxLogSize
in class ObjectStoreEnvironmentBean
public void setTxLogSize(long txLogSize)
ObjectStoreEnvironmentBean
setTxLogSize
in class ObjectStoreEnvironmentBean
txLogSize
- the default file size, in bytes.public long getPurgeTime()
ObjectStoreEnvironmentBean
getPurgeTime
in interface ObjectStoreEnvironmentBeanMBean
getPurgeTime
in class ObjectStoreEnvironmentBean
public void setPurgeTime(long purgeTime)
ObjectStoreEnvironmentBean
setPurgeTime
in class ObjectStoreEnvironmentBean
purgeTime
- the purge interval in milliseconds.public String getJdbcAccess()
ObjectStoreEnvironmentBean
getJdbcAccess
in interface ObjectStoreEnvironmentBeanMBean
getJdbcAccess
in class ObjectStoreEnvironmentBean
public void setJdbcAccess(String connectionDetails)
ObjectStoreEnvironmentBean
setJdbcAccess
in interface ObjectStoreEnvironmentBeanMBean
setJdbcAccess
in class ObjectStoreEnvironmentBean
connectionDetails
- an Object that provides JDBCAccess, or null.public String getTablePrefix()
ObjectStoreEnvironmentBean
getTablePrefix
in interface ObjectStoreEnvironmentBeanMBean
getTablePrefix
in class ObjectStoreEnvironmentBean
public void setTablePrefix(String tablePrefix)
ObjectStoreEnvironmentBean
setTablePrefix
in interface ObjectStoreEnvironmentBeanMBean
setTablePrefix
in class ObjectStoreEnvironmentBean
tablePrefix
- A prefix to use on the tablespublic boolean getDropTable()
ObjectStoreEnvironmentBean
getDropTable
in interface ObjectStoreEnvironmentBeanMBean
getDropTable
in class ObjectStoreEnvironmentBean
public void setDropTable(boolean dropTable)
ObjectStoreEnvironmentBean
setDropTable
in interface ObjectStoreEnvironmentBeanMBean
setDropTable
in class ObjectStoreEnvironmentBean
dropTable
- Drop the tablepublic boolean getCreateTable()
ObjectStoreEnvironmentBean
getCreateTable
in class ObjectStoreEnvironmentBean
public void setCreateTable(boolean createTable)
ObjectStoreEnvironmentBean
setCreateTable
in class ObjectStoreEnvironmentBean
createTable
- Create the tablepublic boolean getExposeAllLogRecordsAsMBeans()
getExposeAllLogRecordsAsMBeans
in class ObjectStoreEnvironmentBean
public void setExposeAllLogRecordsAsMBeans(boolean exposeAllLogRecords)
ObjectStoreEnvironmentBean
ObjectStoreBrowser
Use this method to explicitly set the desired behaviour.
You can also set this behaviour via JMX using
JMX
setExposeAllLogRecordsAsMBeans
in class ObjectStoreEnvironmentBean
exposeAllLogRecords
- Set to true to expose basic information about all log recordspublic boolean isIgnoreMBeanHeuristics()
isIgnoreMBeanHeuristics
in class ObjectStoreEnvironmentBean
public void setIgnoreMBeanHeuristics(boolean ignoreMBeanHeuristics)
ObjectStoreEnvironmentBean
setIgnoreMBeanHeuristics
in class ObjectStoreEnvironmentBean
ignoreMBeanHeuristics
- if false heuristic participants may only be deleted after the heuristic
has been clearedpublic boolean isVolatileStoreSupportAllObjUids()
isVolatileStoreSupportAllObjUids
in class ObjectStoreEnvironmentBean
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 methodspublic void setVolatileStoreSupportAllObjUids(boolean volatileStoreSupportAllObjUids)
ObjectStoreEnvironmentBean
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 methodssetVolatileStoreSupportAllObjUids
in class ObjectStoreEnvironmentBean
volatileStoreSupportAllObjUids
- if true then add support for finding Uids by type in the volatile storesCopyright © 2020 JBoss by Red Hat. All rights reserved.