com.arjuna.ats.txoj.common
Class TxojEnvironmentBean

java.lang.Object
  extended by com.arjuna.ats.txoj.common.TxojEnvironmentBean
All Implemented Interfaces:
TxojEnvironmentBeanMBean

public class TxojEnvironmentBean
extends java.lang.Object
implements TxojEnvironmentBeanMBean

A JavaBean containing configuration properties for the transactional object system.

Author:
Jonathan Halliday (jonathan.halliday@redhat.com)

Constructor Summary
TxojEnvironmentBean()
           
 
Method Summary
 java.lang.String getLockStoreDir()
          Returns the directory path used for storing persistent locks.
 java.lang.String getLockStoreType()
          Deprecated. I'm unused, remove me
 java.lang.String getMultipleLockStore()
          Returns the name of the multiple lock store implementation.
 java.lang.String getPropertiesFile()
          Returns the name of the properties file.
 java.lang.String getSingleLockStore()
          Sets the name of the single lock store implementation.
 boolean isAllowNestedLocking()
          Returns if nested locking is allowed or not.
 void setAllowNestedLocking(boolean allowNestedLocking)
          Sets if nested locking is allowed or not.
 void setLockStoreDir(java.lang.String lockStoreDir)
          Sets the directory path to be used for storing persistent locks.
 void setLockStoreType(java.lang.String lockStoreType)
          Sets the name of the lock store implementation.
 void setMultipleLockStore(java.lang.String multipleLockStore)
          Sets the name of the multiple lock store implementation.
 void setPropertiesFile(java.lang.String propertiesFile)
          Sets the name of the properties file.
 void setSingleLockStore(java.lang.String singleLockStore)
          Sets the name of the single lock store implementation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TxojEnvironmentBean

public TxojEnvironmentBean()
Method Detail

getPropertiesFile

public java.lang.String getPropertiesFile()
Returns the name of the properties file. Default: "" Equivalent deprecated property: com.arjuna.ats.txoj.common.propertiesFile

Specified by:
getPropertiesFile in interface TxojEnvironmentBeanMBean
Returns:
the name of the properties file

setPropertiesFile

public void setPropertiesFile(java.lang.String propertiesFile)
Sets the name of the properties file.

Specified by:
setPropertiesFile in interface TxojEnvironmentBeanMBean
Parameters:
propertiesFile - the name of the properties file.

getLockStoreDir

public java.lang.String getLockStoreDir()
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 interface TxojEnvironmentBeanMBean
Returns:
the path to the lock directory.

setLockStoreDir

public void setLockStoreDir(java.lang.String lockStoreDir)
Sets the directory path to be used for storing persistent locks.

Specified by:
setLockStoreDir in interface TxojEnvironmentBeanMBean
Parameters:
lockStoreDir - the path to the lock directory.

getLockStoreType

public java.lang.String getLockStoreType()
Deprecated. I'm unused, remove me

Returns the name of the lock store implementation. Default: null Equivalent deprecated property: com.arjuna.ats.txoj.lockstore.lockStoreType

Specified by:
getLockStoreType in interface TxojEnvironmentBeanMBean
Returns:
the name of the lock store implementation.

setLockStoreType

public void setLockStoreType(java.lang.String lockStoreType)
Sets the name of the lock store implementation.

Specified by:
setLockStoreType in interface TxojEnvironmentBeanMBean
Parameters:
lockStoreType - the name of the lock store implementation.

getMultipleLockStore

public java.lang.String getMultipleLockStore()
Returns the name of the multiple lock store implementation. Default: null Equivalent deprecated property: com.arjuna.ats.txoj.lockstore.multipleLockStore

Specified by:
getMultipleLockStore in interface TxojEnvironmentBeanMBean
Returns:
the name of the multiple lock store implementation.

setMultipleLockStore

public void setMultipleLockStore(java.lang.String multipleLockStore)
Sets the name of the multiple lock store implementation.

Specified by:
setMultipleLockStore in interface TxojEnvironmentBeanMBean
Parameters:
multipleLockStore - the name of the multiple lock store implementation.

getSingleLockStore

public java.lang.String getSingleLockStore()
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 interface TxojEnvironmentBeanMBean
Returns:
the name of the single lock store implementation.

setSingleLockStore

public void setSingleLockStore(java.lang.String singleLockStore)
Sets the name of the single lock store implementation.

Specified by:
setSingleLockStore in interface TxojEnvironmentBeanMBean
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 interface TxojEnvironmentBeanMBean
Returns:
true if nested locking is enabled, false otherwise.

setAllowNestedLocking

public void setAllowNestedLocking(boolean allowNestedLocking)
Sets if nested locking is allowed or not.

Specified by:
setAllowNestedLocking in interface TxojEnvironmentBeanMBean
Parameters:
allowNestedLocking - true to enable, false to disable.