Package com.arjuna.ats.arjuna.common
Class MetaObjectStoreEnvironmentBean
java.lang.Object
com.arjuna.ats.arjuna.common.ObjectStoreEnvironmentBean
com.arjuna.ats.arjuna.common.MetaObjectStoreEnvironmentBean
- All Implemented Interfaces:
ObjectStoreEnvironmentBeanMBean
Implements an ObjectStoreEnvironmentBean instance that propagates all ObjectStoreEnvironmentBean
updates to all named instances of ObjectStoreEnvironmentBean. An instance of this class is
returned from a call to
arjPropertyManager.getObjectStoreEnvironmentBean()-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns the number of hash buckets used for the cache work queue.intReturns the maximum number of removed items that may be held in the cache before being purged.intReturns the interval on which the cache will wake and process outstanding work.intReturns the maximum allowed size, in bytes, of the cache store's in-memory cache.intReturns the maximum number of outstanding writes that may be held in the cache.booleanShould the store create the tablebooleanShould the store drop the tablebooleanintReturns the number of directories over which the ObjectStore contents will be distributed.intReturns the maximum number of attempts which may be made to create a file path in the store.intReturns the time in milliseconds to wait between file creation retries.Returns an instance of a class implementing JDBCAccess.Returns the local ObjectStore root directory name.Returns the ObjectStore directory path.Returns the fully qualified class name for the ObjectStore implementation.longReturns the purge interval for the LogStore, in milliseconds.intgetShare()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.Get the table prefixlongReturns the default size of the LogStore file, in bytes.booleanReturns true if writes to the objectstore should include a disk sync.booleanbooleanReturns true if ObjectStore operations should be synched to disk.booleanReturns true if zero length files should be returned by a recovery scan.booleanReturns true if the LogStore should write removal records synchronously.booleanReturns true if transaction log operations should be synched to disk.booleanvoidsetCacheStoreHash(int cacheStoreHash) Sets the number of hash buskets used to store the cache work queue.voidsetCacheStoreRemovedItems(int cacheStoreRemovedItems) Sets the maximum number of removed items that may be held in the cache before being purged.voidsetCacheStoreScanPeriod(int cacheStoreScanPeriod) Sets the interval on which the cache will process outstanding work, in milliseconds.voidsetCacheStoreSize(int cacheStoreSize) Sets the maximum size, in bytes, of the in-memory object state cache.voidsetCacheStoreSync(boolean cacheStoreSync) Sets if writes to the store should be synched to disk or not.voidsetCacheStoreWorkItems(int cacheStoreWorkItems) Sets the maximum number of outstanding writes that may be held in the cache.voidsetCreateTable(boolean createTable) Set whether to create the table.voidsetDropTable(boolean dropTable) Set whether to drop the table.voidsetExposeAllLogRecordsAsMBeans(boolean exposeAllLogRecords) Determine whether the ObjStoreBrowser should report basic information about all logs.voidsetHashedDirectories(int hashedDirectories) Sets the number of directories over which the ObjectStore will be split.voidsetHierarchyRetry(int hierarchyRetry) Sets the maximum number of attempts which may be made to create a direcory tree in the store.voidsetHierarchyTimeout(int hierarchyTimeout) Sets the time in milliseconds to wait between file creation retries.voidsetIgnoreMBeanHeuristics(boolean ignoreMBeanHeuristics) Determine whether or not MBean operations that delete a transaction will delete participants that are still in a heuristic statevoidsetJdbcAccess(String connectionDetails) Sets the instance of JDBCAccessvoidsetLocalOSRoot(String localOSRoot) Sets the local ObjectStore root directory name.voidsetObjectStoreDir(String objectStoreDir) Sets the ObjectStore directory path.voidsetObjectStoreSync(boolean objectStoreSync) Sets if ObjectStore operations should be synched to disk or not.voidsetObjectStoreType(String objectStoreType) Sets the symbolic name of the ObjectStore implementation.voidsetPurgeTime(long purgeTime) Sets the purge interval for the LogStore, in milliseconds.voidsetScanZeroLengthFiles(boolean scanZeroLengthFiles) Sets if zero length files should be returned by a recovery scan.voidsetShare(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.voidsetSynchronousRemoval(boolean synchronousRemoval) Sets if the LogStore should write removal records synchronously or not.voidsetTablePrefix(String tablePrefix) Set the table prefixvoidsetTransactionSync(boolean transactionSync) Sets if transaction log operations should be synched to disk or not.voidsetTxLogSize(long txLogSize) Sets the default size of the LogStore, in bytes.voidsetVolatileStoreSupportAllObjUids(boolean volatileStoreSupportAllObjUids) Indicate whether or not the volatile store typesVolatileStoreandTwoPhaseVolatileStoreshould support theRecoveryStore.allObjUids(java.lang.String, com.arjuna.ats.arjuna.state.InputObjectState, int)andRecoveryStore.allTypes(com.arjuna.ats.arjuna.state.InputObjectState)API methodsMethods inherited from class com.arjuna.ats.arjuna.common.ObjectStoreEnvironmentBean
getJdbcDataSource, getJmxToolingMBeanName, setJdbcDataSource, setJmxToolingMBeanName
-
Constructor Details
-
MetaObjectStoreEnvironmentBean
public MetaObjectStoreEnvironmentBean()
-
-
Method Details
-
getCacheStoreSize
public int getCacheStoreSize()Description copied from class:ObjectStoreEnvironmentBeanReturns the maximum allowed size, in bytes, of the cache store's in-memory cache. This property is used by the following object store implementations: CacheStore. Default: 10240 bytes Equivalent deprecated property: com.arjuna.ats.internal.arjuna.objectstore.cacheStore.size- Specified by:
getCacheStoreSizein interfaceObjectStoreEnvironmentBeanMBean- Overrides:
getCacheStoreSizein classObjectStoreEnvironmentBean- Returns:
- the memory cache size in bytes.
-
setCacheStoreSize
public void setCacheStoreSize(int cacheStoreSize) Description copied from class:ObjectStoreEnvironmentBeanSets the maximum size, in bytes, of the in-memory object state cache. This property is used by the following object store implementations: CacheStore.- Overrides:
setCacheStoreSizein classObjectStoreEnvironmentBean- Parameters:
cacheStoreSize- the maximum cache size in bytes.
-
isCacheStoreSync
public boolean isCacheStoreSync()Description copied from class:ObjectStoreEnvironmentBeanReturns true if writes to the objectstore should include a disk sync. Unlikely to be worthwile since the store caches state in memory anyhow. This property is used by the following object store implementations: CacheStore. Default: false Equivalent deprecated property: com.arjuna.ats.internal.arjuna.objectstore.cacheStore.sync- Specified by:
isCacheStoreSyncin interfaceObjectStoreEnvironmentBeanMBean- Overrides:
isCacheStoreSyncin classObjectStoreEnvironmentBean- Returns:
- true if writes should be synched to disk, false otherwise.
-
setCacheStoreSync
public void setCacheStoreSync(boolean cacheStoreSync) Description copied from class:ObjectStoreEnvironmentBeanSets if writes to the store should be synched to disk or not. This property is used by the following object store implementations: CacheStore.- Overrides:
setCacheStoreSyncin classObjectStoreEnvironmentBean- Parameters:
cacheStoreSync- true to enable syncing, false to disable.
-
getCacheStoreRemovedItems
public int getCacheStoreRemovedItems()Description copied from class:ObjectStoreEnvironmentBeanReturns the maximum number of removed items that may be held in the cache before being purged. This property is used by the following object store implementations: CacheStore. Default: 256 Equivalent deprecated property: com.arjuna.ats.internal.arjuna.objectstore.cacheStore.removedItems- Specified by:
getCacheStoreRemovedItemsin interfaceObjectStoreEnvironmentBeanMBean- Overrides:
getCacheStoreRemovedItemsin classObjectStoreEnvironmentBean- Returns:
- the maximum number of removed items in the cache.
-
setCacheStoreRemovedItems
public void setCacheStoreRemovedItems(int cacheStoreRemovedItems) Description copied from class:ObjectStoreEnvironmentBeanSets the maximum number of removed items that may be held in the cache before being purged. This property is used by the following object store implementations: CacheStore.- Overrides:
setCacheStoreRemovedItemsin classObjectStoreEnvironmentBean- Parameters:
cacheStoreRemovedItems- teh maximun number of items.
-
getCacheStoreScanPeriod
public int getCacheStoreScanPeriod()Description copied from class:ObjectStoreEnvironmentBeanReturns the interval on which the cache will wake and process outstanding work. This property is used by the following object store implementations: CacheStore. Default: 120000 milliseconds Equivalent deprecated property: com.arjuna.ats.internal.arjuna.objectstore.cacheStore.scanPeriod- Specified by:
getCacheStoreScanPeriodin interfaceObjectStoreEnvironmentBeanMBean- Overrides:
getCacheStoreScanPeriodin classObjectStoreEnvironmentBean- Returns:
- the work interval of the cache, in milliseconds.
-
setCacheStoreScanPeriod
public void setCacheStoreScanPeriod(int cacheStoreScanPeriod) Description copied from class:ObjectStoreEnvironmentBeanSets the interval on which the cache will process outstanding work, in milliseconds. This property is used by the following object store implementations: CacheStore.- Overrides:
setCacheStoreScanPeriodin classObjectStoreEnvironmentBean- Parameters:
cacheStoreScanPeriod- the sleep duration, in milliseconds.
-
getCacheStoreWorkItems
public int getCacheStoreWorkItems()Description copied from class:ObjectStoreEnvironmentBeanReturns the maximum number of outstanding writes that may be held in the cache. This property is used by the following object store implementations: CacheStore. Default: 100 Equivalent deprecated property: com.arjuna.ats.internal.arjuna.objectstore.cacheStore.workItems- Specified by:
getCacheStoreWorkItemsin interfaceObjectStoreEnvironmentBeanMBean- Overrides:
getCacheStoreWorkItemsin classObjectStoreEnvironmentBean- Returns:
- the maximum number of outstanding writes in the cache.
-
setCacheStoreWorkItems
public void setCacheStoreWorkItems(int cacheStoreWorkItems) Description copied from class:ObjectStoreEnvironmentBeanSets the maximum number of outstanding writes that may be held in the cache. This property is used by the following object store implementations: CacheStore.- Overrides:
setCacheStoreWorkItemsin classObjectStoreEnvironmentBean- Parameters:
cacheStoreWorkItems- the maximum number of outstnading writes.
-
getCacheStoreHash
public int getCacheStoreHash()Description copied from class:ObjectStoreEnvironmentBeanReturns the number of hash buckets used for the cache work queue. This property is used by the following object store implementations: CacheStore. Default: 128 Equivalent deprecated property: com.arjuna.ats.internal.arjuna.objectstore.cacheStore.hash- Specified by:
getCacheStoreHashin interfaceObjectStoreEnvironmentBeanMBean- Overrides:
getCacheStoreHashin classObjectStoreEnvironmentBean- Returns:
- the number of hash buckets used to store the cache state.
-
setCacheStoreHash
public void setCacheStoreHash(int cacheStoreHash) Description copied from class:ObjectStoreEnvironmentBeanSets the number of hash buskets used to store the cache work queue. This property is used by the following object store implementations: CacheStore.- Overrides:
setCacheStoreHashin classObjectStoreEnvironmentBean- Parameters:
cacheStoreHash- the number of hash buckets.
-
getLocalOSRoot
Description copied from class:ObjectStoreEnvironmentBeanReturns the local ObjectStore root directory name. This should be a path element, not a complete path. This property is used by the following object store implementations: ActionStore, CacheStore, HashedActionStore, HashedStore, LogStore, NullActionStore, ShadowingStore, ShadowNoFileLockStore, TwoPhaseVolatileStore, VolatileStore. Default: "defaultStore" Equivalent deprecated property: com.arjuna.ats.arjuna.objectstore.localOSRoot- Specified by:
getLocalOSRootin interfaceObjectStoreEnvironmentBeanMBean- Overrides:
getLocalOSRootin classObjectStoreEnvironmentBean- Returns:
- the local ObjectStore root directory name.
-
setLocalOSRoot
Description copied from class:ObjectStoreEnvironmentBeanSets the local ObjectStore root directory name. This should be a path element, not a complete path. This property is used by the following object store implementations: ActionStore, CacheStore, HashedActionStore, HashedStore, LogStore, NullActionStore, ShadowingStore, ShadowNoFileLockStore, TwoPhaseVolatileStore, VolatileStore.- Overrides:
setLocalOSRootin classObjectStoreEnvironmentBean- Parameters:
localOSRoot- the directory name.
-
getObjectStoreDir
Description copied from class:ObjectStoreEnvironmentBeanReturns the ObjectStore directory path. This property is used by the following object store implementations: ActionStore, CacheStore, HashedActionStore, HashedStore, LogStore, NullActionStore, ShadowingStore, ShadowNoFileLockStore, TwoPhaseVolatileStore, VolatileStore. Default: {user.dir}/ObjectStore Equivalent deprecated property: com.arjuna.ats.arjuna.objectstore.objectStoreDir- Specified by:
getObjectStoreDirin interfaceObjectStoreEnvironmentBeanMBean- Overrides:
getObjectStoreDirin classObjectStoreEnvironmentBean- Returns:
- the ObjectStore directory path.
-
setObjectStoreDir
Description copied from class:ObjectStoreEnvironmentBeanSets the ObjectStore directory path. This property is used by the following object store implementations: ActionStore, CacheStore, HashedActionStore, HashedStore, LogStore, NullActionStore, ShadowingStore, ShadowNoFileLockStore, TwoPhaseVolatileStore, VolatileStore.- Overrides:
setObjectStoreDirin classObjectStoreEnvironmentBean- Parameters:
objectStoreDir- the directory path.
-
isObjectStoreSync
public boolean isObjectStoreSync()Description copied from class:ObjectStoreEnvironmentBeanReturns true if ObjectStore operations should be synched to disk. Note that this value may be overridden by store implementation specific configuration. See also: isTransactionSync This property is used by the following object store implementations: ActionStore, CacheStore, HashedActionStore, HashedStore, LogStore, NullActionStore, ShadowingStore, ShadowNoFileLockStore. Default: true Equivalent deprecated property: com.arjuna.ats.arjuna.objectstore.objectStoreSync- Specified by:
isObjectStoreSyncin interfaceObjectStoreEnvironmentBeanMBean- Overrides:
isObjectStoreSyncin classObjectStoreEnvironmentBean- Returns:
- true for synched operations, false otherwise.
-
setObjectStoreSync
public void setObjectStoreSync(boolean objectStoreSync) Description copied from class:ObjectStoreEnvironmentBeanSets if ObjectStore operations should be synched to disk or not. Caution: Disabling this may be lead to non-ACID transaction behaviour. This property is used by the following object store implementations: ActionStore, CacheStore, HashedActionStore, HashedStore, LogStore, NullActionStore, ShadowingStore, ShadowNoFileLockStore.- Overrides:
setObjectStoreSyncin classObjectStoreEnvironmentBean- Parameters:
objectStoreSync- true to sunc to disk, false to skip synching.
-
getObjectStoreType
Description copied from class:ObjectStoreEnvironmentBeanReturns the fully qualified class name for the ObjectStore implementation. Default: "com.arjuna.ats.internal.arjuna.objectstore.ShadowNoFileLockStore" Equivalent deprecated property: com.arjuna.ats.arjuna.objectstore.objectStoreType- Specified by:
getObjectStoreTypein interfaceObjectStoreEnvironmentBeanMBean- Overrides:
getObjectStoreTypein classObjectStoreEnvironmentBean- Returns:
- the fully qualified class name of the ObjectStore implementation.
-
setObjectStoreType
Description copied from class:ObjectStoreEnvironmentBeanSets the symbolic name of the ObjectStore implementation.- Overrides:
setObjectStoreTypein classObjectStoreEnvironmentBean- Parameters:
objectStoreType- the symbolic name of the implementation.
-
getHashedDirectories
public int getHashedDirectories()Description copied from class:ObjectStoreEnvironmentBeanReturns the number of directories over which the ObjectStore contents will be distributed. Splitting the contents is important for performance on some file systems, as it reduces chain length (number of items in a directory) and directory lock contention. This property is used by the following object store implementations: CacheStore, HashedActionStore, HashedStore. Default: 255 Equivalent deprecated property: com.arjuna.ats.arjuna.objectstore.hashedDirectories- Specified by:
getHashedDirectoriesin interfaceObjectStoreEnvironmentBeanMBean- Overrides:
getHashedDirectoriesin classObjectStoreEnvironmentBean- Returns:
- the number of directories over which to distribute the store.
-
setHashedDirectories
public void setHashedDirectories(int hashedDirectories) Description copied from class:ObjectStoreEnvironmentBeanSets the number of directories over which the ObjectStore will be split. This property is used by the following object store implementations: CacheStore, HashedActionStore, HashedStore.- Overrides:
setHashedDirectoriesin classObjectStoreEnvironmentBean- Parameters:
hashedDirectories- the number of directories.
-
isTransactionSync
public boolean isTransactionSync()Description copied from class:ObjectStoreEnvironmentBeanReturns true if transaction log operations should be synched to disk. This property is used by the following object store implementations: ActionStore, HashedActionStore, LogStore. Default: true Equivalent deprecated property: com.arjuna.ats.arjuna.objectstore.transactionSync- Specified by:
isTransactionSyncin interfaceObjectStoreEnvironmentBeanMBean- Overrides:
isTransactionSyncin classObjectStoreEnvironmentBean- Returns:
- true if operations should be forcedto disk, false otherwise.
-
setTransactionSync
public void setTransactionSync(boolean transactionSync) Description copied from class:ObjectStoreEnvironmentBeanSets if transaction log operations should be synched to disk or not. Caution: Disabling this may be lead to non-ACID transaction behaviour. This property is used by the following object store implementations: ActionStore, HashedActionStore, LogStore.- Overrides:
setTransactionSyncin classObjectStoreEnvironmentBean- Parameters:
transactionSync- true to enable synching, false to disable.
-
isScanZeroLengthFiles
public boolean isScanZeroLengthFiles()Description copied from class:ObjectStoreEnvironmentBeanReturns true if zero length files should be returned by a recovery scan. This property is used by the following object store implementations: ActionStore, CacheStore, HashedActionStore, HashedStore, LogStore, NullActionStore, ShadowingStore, ShadowNoFileLockStore. Default: false- Overrides:
isScanZeroLengthFilesin classObjectStoreEnvironmentBean- Returns:
- true if scan results should include zero length files, false if they should be excluded.
-
setScanZeroLengthFiles
public void setScanZeroLengthFiles(boolean scanZeroLengthFiles) Description copied from class:ObjectStoreEnvironmentBeanSets if zero length files should be returned by a recovery scan. This property is used by the following object store implementations: ActionStore, CacheStore, HashedActionStore, HashedStore, LogStore, NullActionStore, ShadowingStore, ShadowNoFileLockStore.- Overrides:
setScanZeroLengthFilesin classObjectStoreEnvironmentBean- Parameters:
scanZeroLengthFiles- true to include zero length files in scan results, false to exclude them.
-
getHierarchyRetry
public int getHierarchyRetry()Description copied from class:ObjectStoreEnvironmentBeanReturns the maximum number of attempts which may be made to create a file path in the store. This property is used by the following object store implementations: ActionStore, CacheStore, HashedActionStore, HashedStore, LogStore, NullActionStore, ShadowingStore, ShadowNoFileLockStore. Default: 100 Equivalent deprecated property: com.arjuna.ats.arjuna.objectstore.hierarchyRetry- Specified by:
getHierarchyRetryin interfaceObjectStoreEnvironmentBeanMBean- Overrides:
getHierarchyRetryin classObjectStoreEnvironmentBean- Returns:
- the maximum number of attempts to create a nested directory tree.
-
setHierarchyRetry
public void setHierarchyRetry(int hierarchyRetry) Description copied from class:ObjectStoreEnvironmentBeanSets the maximum number of attempts which may be made to create a direcory tree in the store. This property is used by the following object store implementations: ActionStore, CacheStore, HashedActionStore, HashedStore, LogStore, NullActionStore, ShadowingStore, ShadowNoFileLockStore.- Overrides:
setHierarchyRetryin classObjectStoreEnvironmentBean- Parameters:
hierarchyRetry- the maximum number of file creation attempts.
-
getHierarchyTimeout
public int getHierarchyTimeout()Description copied from class:ObjectStoreEnvironmentBeanReturns the time in milliseconds to wait between file creation retries. This property is used by the following object store implementations: ActionStore, CacheStore, HashedActionStore, HashedStore, LogStore, NullActionStore, ShadowingStore, ShadowNoFileLockStore. Default: 100 milliseconds. Equivalent deprecated property: com.arjuna.ats.arjuna.objectstore.hierarchyTimeout- Specified by:
getHierarchyTimeoutin interfaceObjectStoreEnvironmentBeanMBean- Overrides:
getHierarchyTimeoutin classObjectStoreEnvironmentBean- Returns:
- the time to wait before retrying a failed file creation, in milliseconds.
-
setHierarchyTimeout
public void setHierarchyTimeout(int hierarchyTimeout) Description copied from class:ObjectStoreEnvironmentBeanSets the time in milliseconds to wait between file creation retries. This property is used by the following object store implementations: ActionStore, CacheStore, HashedActionStore, HashedStore, LogStore, NullActionStore, ShadowingStore, ShadowNoFileLockStore.- Overrides:
setHierarchyTimeoutin classObjectStoreEnvironmentBean- Parameters:
hierarchyTimeout- the wait time in milliseconds.
-
isSynchronousRemoval
public boolean isSynchronousRemoval()Description copied from class:ObjectStoreEnvironmentBeanReturns true if the LogStore should write removal records synchronously. Disabling this may increase performance at the cost of recovery complexity. This property is used by the following object store implementations: LogStore. Default: true Equivalent deprecated property: com.arjuna.ats.arjuna.coordinator.transactionLog.synchronousRemoval- Specified by:
isSynchronousRemovalin interfaceObjectStoreEnvironmentBeanMBean- Overrides:
isSynchronousRemovalin classObjectStoreEnvironmentBean- Returns:
- true for synchronous removals, false for buffered (asynchronous) operation.
-
setSynchronousRemoval
public void setSynchronousRemoval(boolean synchronousRemoval) Description copied from class:ObjectStoreEnvironmentBeanSets if the LogStore should write removal records synchronously or not. This property is used by the following object store implementations: LogStore.- Overrides:
setSynchronousRemovalin classObjectStoreEnvironmentBean- Parameters:
synchronousRemoval- true for synchronous operation, false for asynchronous.
-
getTxLogSize
public long getTxLogSize()Description copied from class:ObjectStoreEnvironmentBeanReturns the default size of the LogStore file, in bytes. This property is used by the following object store implementations: LogStore. Default: 10MB Equivalent deprecated property: com.arjuna.ats.arjuna.coordinator.transactionLog.txLogSize- Specified by:
getTxLogSizein interfaceObjectStoreEnvironmentBeanMBean- Overrides:
getTxLogSizein classObjectStoreEnvironmentBean- Returns:
- the default file size for the LogStore, in bytes.
-
setTxLogSize
public void setTxLogSize(long txLogSize) Description copied from class:ObjectStoreEnvironmentBeanSets the default size of the LogStore, in bytes. This property is used by the following object store implementations: LogStore.- Overrides:
setTxLogSizein classObjectStoreEnvironmentBean- Parameters:
txLogSize- the default file size, in bytes.
-
getPurgeTime
public long getPurgeTime()Description copied from class:ObjectStoreEnvironmentBeanReturns the purge interval for the LogStore, in milliseconds. This property is used by the following object store implementations: LogStore. Default: 100000 milliseconds Equivalent deprecated property: com.arjuna.ats.arjuna.coordinator.transactionLog.purgeTime- Specified by:
getPurgeTimein interfaceObjectStoreEnvironmentBeanMBean- Overrides:
getPurgeTimein classObjectStoreEnvironmentBean- Returns:
- the purge interval in milliseconds.
-
setPurgeTime
public void setPurgeTime(long purgeTime) Description copied from class:ObjectStoreEnvironmentBeanSets the purge interval for the LogStore, in milliseconds. This property is used by the following object store implementations: LogStore.- Overrides:
setPurgeTimein classObjectStoreEnvironmentBean- Parameters:
purgeTime- the purge interval in milliseconds.
-
getJdbcAccess
Description copied from class:ObjectStoreEnvironmentBeanReturns an instance of a class implementing JDBCAccess.- Specified by:
getJdbcAccessin interfaceObjectStoreEnvironmentBeanMBean- Overrides:
getJdbcAccessin classObjectStoreEnvironmentBean- Returns:
- a JDBCAccess implementation instance, or null.
-
setJdbcAccess
Description copied from class:ObjectStoreEnvironmentBeanSets the instance of JDBCAccess- Specified by:
setJdbcAccessin interfaceObjectStoreEnvironmentBeanMBean- Overrides:
setJdbcAccessin classObjectStoreEnvironmentBean- Parameters:
connectionDetails- an Object that provides JDBCAccess, or null.
-
getTablePrefix
Description copied from class:ObjectStoreEnvironmentBeanGet the table prefix- Specified by:
getTablePrefixin interfaceObjectStoreEnvironmentBeanMBean- Overrides:
getTablePrefixin classObjectStoreEnvironmentBean- Returns:
- The prefix to apply to the table
-
setTablePrefix
Description copied from class:ObjectStoreEnvironmentBeanSet the table prefix- Specified by:
setTablePrefixin interfaceObjectStoreEnvironmentBeanMBean- Overrides:
setTablePrefixin classObjectStoreEnvironmentBean- Parameters:
tablePrefix- A prefix to use on the tables
-
getDropTable
public boolean getDropTable()Description copied from class:ObjectStoreEnvironmentBeanShould the store drop the table- Specified by:
getDropTablein interfaceObjectStoreEnvironmentBeanMBean- Overrides:
getDropTablein classObjectStoreEnvironmentBean- Returns:
- Whether to drop the table
-
setDropTable
public void setDropTable(boolean dropTable) Description copied from class:ObjectStoreEnvironmentBeanSet whether to drop the table.- Specified by:
setDropTablein interfaceObjectStoreEnvironmentBeanMBean- Overrides:
setDropTablein classObjectStoreEnvironmentBean- Parameters:
dropTable- Drop the table
-
getCreateTable
public boolean getCreateTable()Description copied from class:ObjectStoreEnvironmentBeanShould the store create the table- Overrides:
getCreateTablein classObjectStoreEnvironmentBean- Returns:
- Whether to create the table
-
setCreateTable
public void setCreateTable(boolean createTable) Description copied from class:ObjectStoreEnvironmentBeanSet whether to create the table.- Overrides:
setCreateTablein classObjectStoreEnvironmentBean- Parameters:
createTable- Create the table
-
getExposeAllLogRecordsAsMBeans
public boolean getExposeAllLogRecordsAsMBeans()- Overrides:
getExposeAllLogRecordsAsMBeansin classObjectStoreEnvironmentBean- Returns:
- Whether basic information about all log reccords are exposed
-
setExposeAllLogRecordsAsMBeans
public void setExposeAllLogRecordsAsMBeans(boolean exposeAllLogRecords) Description copied from class:ObjectStoreEnvironmentBeanDetermine whether the ObjStoreBrowser should report basic information about all logs. Because exposing log records has the side effect of activating the default is to only activate ones for which we know the side effects are harmlessObjectStoreBrowserUse this method to explicitly set the desired behaviour. You can also set this behaviour via JMX usingJMX- Overrides:
setExposeAllLogRecordsAsMBeansin classObjectStoreEnvironmentBean- Parameters:
exposeAllLogRecords- Set to true to expose basic information about all log records
-
isIgnoreMBeanHeuristics
public boolean isIgnoreMBeanHeuristics()- Overrides:
isIgnoreMBeanHeuristicsin classObjectStoreEnvironmentBean- Returns:
- whether or not MBean operations that delete a transaction will delete participants that are still in a heuristic state
-
setIgnoreMBeanHeuristics
public void setIgnoreMBeanHeuristics(boolean ignoreMBeanHeuristics) Description copied from class:ObjectStoreEnvironmentBeanDetermine whether or not MBean operations that delete a transaction will delete participants that are still in a heuristic state- Overrides:
setIgnoreMBeanHeuristicsin classObjectStoreEnvironmentBean- Parameters:
ignoreMBeanHeuristics- if false heuristic participants may only be deleted after the heuristic has been cleared
-
isVolatileStoreSupportAllObjUids
public boolean isVolatileStoreSupportAllObjUids()- Overrides:
isVolatileStoreSupportAllObjUidsin classObjectStoreEnvironmentBean- Returns:
- whether the volatile store types
VolatileStoreandTwoPhaseVolatileStoreshould support theRecoveryStore.allObjUids(java.lang.String, com.arjuna.ats.arjuna.state.InputObjectState, int)andRecoveryStore.allTypes(com.arjuna.ats.arjuna.state.InputObjectState)API methods
-
setVolatileStoreSupportAllObjUids
public void setVolatileStoreSupportAllObjUids(boolean volatileStoreSupportAllObjUids) Description copied from class:ObjectStoreEnvironmentBeanIndicate whether or not the volatile store typesVolatileStoreandTwoPhaseVolatileStoreshould support theRecoveryStore.allObjUids(java.lang.String, com.arjuna.ats.arjuna.state.InputObjectState, int)andRecoveryStore.allTypes(com.arjuna.ats.arjuna.state.InputObjectState)API methods- Overrides:
setVolatileStoreSupportAllObjUidsin classObjectStoreEnvironmentBean- Parameters:
volatileStoreSupportAllObjUids- if true then add support for finding Uids by type in the volatile stores
-