Package com.arjuna.ats.txoj.common
Class TxojEnvironmentBean
java.lang.Object
com.arjuna.ats.txoj.common.TxojEnvironmentBean
- All Implemented Interfaces:
TxojEnvironmentBeanMBean
A JavaBean containing configuration properties for the transactional object system.
- Author:
- Jonathan Halliday (jonathan.halliday@redhat.com)
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Returns the name of the lock store implementation.Deprecated.Deprecated.boolean
Returns if nested locking is allowed or not.void
setAllowNestedLocking
(boolean allowNestedLocking) Sets if nested locking is allowed or not.void
setLockStoreDir
(String lockStoreDir) Deprecated.void
setLockStoreType
(String lockStoreType) Sets the name of the lock store implementation.void
setMultipleLockStore
(String multipleLockStore) Deprecated.void
setSingleLockStore
(String singleLockStore) Deprecated.
-
Constructor Details
-
TxojEnvironmentBean
public TxojEnvironmentBean()
-
-
Method Details
-
getLockStoreDir
Deprecated.Returns the directory path used for storing persistent locks. Default: {user.dir}/LockStore Equivalent deprecated property: com.arjuna.ats.txoj.lockstore.lockStoreDir- Specified by:
getLockStoreDir
in interfaceTxojEnvironmentBeanMBean
- Returns:
- the path to the lock directory.
-
setLockStoreDir
Deprecated.Sets the directory path to be used for storing persistent locks.- Parameters:
lockStoreDir
- the path to the lock directory.
-
getLockStoreType
Returns the name of the lock store implementation. Default: null Equivalent deprecated property: com.arjuna.ats.txoj.lockstore.lockStoreType- Returns:
- the name of the lock store implementation.
-
setLockStoreType
Sets the name of the lock store implementation.- Parameters:
lockStoreType
- the name of the lock store implementation.
-
getMultipleLockStore
Deprecated.Returns the name of the multiple lock store implementation. Default: null Equivalent deprecated property: com.arjuna.ats.txoj.lockstore.multipleLockStore- Specified by:
getMultipleLockStore
in interfaceTxojEnvironmentBeanMBean
- Returns:
- the name of the multiple lock store implementation.
-
setMultipleLockStore
Deprecated.Sets the name of the multiple lock store implementation.- Parameters:
multipleLockStore
- the name of the multiple lock store implementation.
-
getSingleLockStore
Deprecated.Sets the name of the single lock store implementation. Default: "BasicLockStore" TODO test Equivalent deprecated property: com.arjuna.ats.txoj.lockstore.singleLockStore- Specified by:
getSingleLockStore
in interfaceTxojEnvironmentBeanMBean
- Returns:
- the name of the single lock store implementation.
-
setSingleLockStore
Deprecated.Sets the name of the single lock store implementation.- Parameters:
singleLockStore
- the name of the single lock store implementation.
-
isAllowNestedLocking
public boolean isAllowNestedLocking()Returns if nested locking is allowed or not. Default: true Equivalent deprecated property: com.arjuna.ats.txoj.lockstore.allowNestedLocking- Specified by:
isAllowNestedLocking
in interfaceTxojEnvironmentBeanMBean
- Returns:
- true if nested locking is enabled, false otherwise.
-
setAllowNestedLocking
public void setAllowNestedLocking(boolean allowNestedLocking) Sets if nested locking is allowed or not.- Parameters:
allowNestedLocking
- true to enable, false to disable.
-