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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Returns the name of the lock store implementation.Deprecated.Deprecated.booleanReturns if nested locking is allowed or not.voidsetAllowNestedLocking(boolean allowNestedLocking) Sets if nested locking is allowed or not.voidsetLockStoreDir(String lockStoreDir) Deprecated.voidsetLockStoreType(String lockStoreType) Sets the name of the lock store implementation.voidsetMultipleLockStore(String multipleLockStore) Deprecated.voidsetSingleLockStore(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:
getLockStoreDirin 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:
getMultipleLockStorein 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:
getSingleLockStorein 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:
isAllowNestedLockingin 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.
-