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 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
 String getLockStoreDir()
          Returns the directory path used for storing persistent locks.
 String getLockStoreType()
          Returns the name of the lock store implementation.
 String getMultipleLockStore()
          Returns the name of the multiple lock store implementation.
 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(String lockStoreDir)
          Sets the directory path to be used for storing persistent locks.
 void setLockStoreType(String lockStoreType)
          Sets the name of the lock store implementation.
 void setMultipleLockStore(String multipleLockStore)
          Sets the name of the multiple lock store implementation.
 void setSingleLockStore(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

getLockStoreDir

public 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(String lockStoreDir)
Sets the directory path to be used for storing persistent locks.

Parameters:
lockStoreDir - the path to the lock directory.

getLockStoreType

public String 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

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

Parameters:
lockStoreType - the name of the lock store implementation.

getMultipleLockStore

public 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(String multipleLockStore)
Sets the name of the multiple lock store implementation.

Parameters:
multipleLockStore - the name of the multiple lock store implementation.

getSingleLockStore

public 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(String singleLockStore)
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 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.

Parameters:
allowNestedLocking - true to enable, false to disable.


Copyright © 2011. All Rights Reserved.