public class CoordinatorEnvironmentBean extends Object implements CoordinatorEnvironmentBeanMBean
| Constructor and Description |
|---|
CoordinatorEnvironmentBean() |
| Modifier and Type | Method and Description |
|---|---|
CheckedActionFactory |
getCheckedActionFactory()
Returns an instance of a class implementing CheckedActionFactory.
|
String |
getCheckedActionFactoryClassName()
Returns the class name of an implementation of CheckedActionFactory
Default: "com.arjuna.ats.internal.arjuna.coordinator.CheckedActionFactoryImple"
Equivalent deprecated property: com.arjuna.ats.coordinator.checkedActionFactory
|
String |
getCommunicationStore()
Returns the symbolic name for the communication store type.
|
int |
getDefaultTimeout()
Returns the default interval after which a transaction may be considered for timeout, in seconds.
|
int |
getMaxTwoPhaseCommitThreads() |
long |
getTxReaperCancelFailWaitPeriod()
Returns the number of millisecs delay afer a worker thread is interrupted,
before the reaper writes the it off as a zombie and starts a new thread.
|
long |
getTxReaperCancelWaitPeriod()
Returns the number of millisecs delay afer a cancel is scheduled,
before the reaper tries to interrupt the worker thread executing the cancel.
|
String |
getTxReaperMode()
Returns the operating mode of the transaction timeout processing system.
|
long |
getTxReaperTimeout()
Returns the timeout (wakeup) interval of the reaper's PERIODIC mode, in milliseconds.
|
int |
getTxReaperZombieMax()
Returns the threshold for count of non-exited zombies at which
the system starts logging error messages.
|
boolean |
isAlternativeRecordOrdering()
Whether to use the alternative abstract record ordering.
|
boolean |
isAsyncCommit()
Returns true if anynchronous commit behaviour is enabled.
|
boolean |
isAsyncPrepare()
Returns true if asynchronous prepare behaviour is enabled.
|
boolean |
isAsyncRollback()
Returns true if asynchronous rollback behaviour is enabled.
|
boolean |
isBeforeCompletionWhenRollbackOnly()
Returns if beforeCompletion should be called on Synchronizations when completing transactions that are marked rollback only.
|
boolean |
isClassicPrepare()
Returns true if the old sytle of prepare handling should be used for PersistenceRecord.
|
boolean |
isCommitOnePhase()
Returns true if one phase commit optimization is to be used.
|
boolean |
isEnableStatistics()
Returns true if transaction statistics should be recorded.
|
boolean |
isFinalizeBasicActions()
Sets whether or not to use finalizers for BasicActions (i.e.
|
boolean |
isMaintainHeuristics()
Returns true if heuristic outcomes should be recorded.
|
boolean |
isReadonlyOptimisation()
Returns true if handling of read only resources should be optimized.
|
boolean |
isSharedTransactionLog()
Returns if the transaction log sould be run in shared mode or not.
|
boolean |
isStartDisabled()
Returns if the transaction manager should be created in a disabled state or not.
|
boolean |
isTransactionStatusManagerEnable()
Returns if the transaction status manager (TSM) service, needed for out of process recovery, should be provided or not.
|
boolean |
isWriteOptimisation()
Returns true if write optimisation protocol should be used for PersistenceRecord.
|
void |
setAlternativeRecordOrdering(boolean alternativeRecordOrdering)
Set whether or not to use the alternative abstract record
ordering.
|
void |
setAsyncCommit(boolean asyncCommit)
Sets if asynchronous commit behaviour should be enabled or not.
|
void |
setAsyncPrepare(boolean asyncPrepare)
Sets if asynchronous prepare behaviour should be enabled or not.
|
void |
setAsyncRollback(boolean asyncRollback)
Sets if asynchronous rollback behaviour should be enabled or not.
|
void |
setBeforeCompletionWhenRollbackOnly(boolean beforeCompletionWhenRollbackOnly)
Sets if beforeCompletion should be called on transactions that are set rollback only.
|
void |
setCheckedActionFactory(CheckedActionFactory instance)
Sets the instance of CheckedActionFactory.
|
void |
setCheckedActionFactoryClassName(String checkedActionFactoryClassName)
Sets the class name of the CheckedActionFactory implementation.
|
void |
setClassicPrepare(boolean classicPrepare)
Sets if old sytle prepare handling should be used for PersistenceRecord.
|
void |
setCommitOnePhase(boolean commitOnePhase)
Sets if one phase commit behaviour is enabled or not.
|
void |
setCommunicationStore(String communicationStore)
Sets the symbolic name of the communication store.
|
void |
setDefaultTimeout(int defaultTimeout)
Sets the default lifetime after which a transaction may be considered for timeout, in seconds.
|
void |
setEnableStatistics(boolean enableStatistics)
Sets if transaction statistics should be recorded or not.
|
void |
setFinalizeBasicActions(boolean finalizeBasicActions)
Sets whether or not to use finalizers for BasicActions (i.e.
|
void |
setMaintainHeuristics(boolean maintainHeuristics)
Sets if heuristics should be recorded or not.
|
void |
setMaxTwoPhaseCommitThreads(int maxTwoPhaseCommitThreads) |
void |
setReadonlyOptimisation(boolean readonlyOptimisation)
Sets if handling of read only resources should be optimized.
|
void |
setSharedTransactionLog(boolean sharedTransactionLog)
Sets if the transaction log should be run in shared mode or not.
|
void |
setStartDisabled(boolean startDisabled)
Sets if the transaction manager should be created in a disabled state or not.
|
void |
setTransactionStatusManagerEnable(boolean transactionStatusManagerEnable)
Sets if the transaction status manager service should be provided or not.
|
void |
setTxReaperCancelFailWaitPeriod(long txReaperCancelFailWaitPeriod)
Sets the delay to allow an interrupted cancel to be cleaned up.
|
void |
setTxReaperCancelWaitPeriod(long txReaperCancelWaitPeriod)
Sets the delay to allow a cancel to be processed before interrupting it.
|
void |
setTxReaperMode(String txReaperMode)
Sets the operating mode of the transaction timeout processing system.
|
void |
setTxReaperTimeout(long txReaperTimeout)
Sets the timeout interval of the transaction reaper.
|
void |
setTxReaperZombieMax(int txReaperZombieMax)
Sets the threshold number of zombie threads at which errors will start to be reported.
|
void |
setWriteOptimisation(boolean writeOptimisation)
Sets if write optimization protocol should be used for PersistenceRecord.
|
public boolean isAsyncCommit()
isAsyncCommit in interface CoordinatorEnvironmentBeanMBeanpublic void setAsyncCommit(boolean asyncCommit)
asyncCommit - true to enable asynchronous commit, false to disable.public boolean isAsyncPrepare()
isAsyncPrepare in interface CoordinatorEnvironmentBeanMBeanpublic void setAsyncPrepare(boolean asyncPrepare)
asyncPrepare - true to enable asynchronous prepare, false to disable.public boolean isAsyncRollback()
isAsyncRollback in interface CoordinatorEnvironmentBeanMBeanpublic void setAsyncRollback(boolean asyncRollback)
asyncRollback - true to enable asynchronous rollback, false to disable.public int getMaxTwoPhaseCommitThreads()
public void setMaxTwoPhaseCommitThreads(int maxTwoPhaseCommitThreads)
public boolean isCommitOnePhase()
isCommitOnePhase in interface CoordinatorEnvironmentBeanMBeanpublic void setCommitOnePhase(boolean commitOnePhase)
commitOnePhase - true to enable, false to disable.public boolean isMaintainHeuristics()
isMaintainHeuristics in interface CoordinatorEnvironmentBeanMBeanpublic void setMaintainHeuristics(boolean maintainHeuristics)
maintainHeuristics - true to enable recording of heuristics, false to disable.public boolean isWriteOptimisation()
isWriteOptimisation in interface CoordinatorEnvironmentBeanMBeanpublic void setWriteOptimisation(boolean writeOptimisation)
writeOptimisation - true to enable write optimization, false to disable.public boolean isReadonlyOptimisation()
isReadonlyOptimisation in interface CoordinatorEnvironmentBeanMBeanpublic void setReadonlyOptimisation(boolean readonlyOptimisation)
readonlyOptimisation - true to enable read only optimization, false to disable.public boolean isClassicPrepare()
isClassicPrepare in interface CoordinatorEnvironmentBeanMBeanpublic void setClassicPrepare(boolean classicPrepare)
classicPrepare - true to enable classic prepare handling, false to disable.public boolean isEnableStatistics()
isEnableStatistics in interface CoordinatorEnvironmentBeanMBeanpublic void setEnableStatistics(boolean enableStatistics)
setEnableStatistics in interface CoordinatorEnvironmentBeanMBeanenableStatistics - true to enable statistics gathering, false to disable.public boolean isSharedTransactionLog()
isSharedTransactionLog in interface CoordinatorEnvironmentBeanMBeanpublic void setSharedTransactionLog(boolean sharedTransactionLog)
sharedTransactionLog - true to enable transaction log sharing, false to disable.public boolean isStartDisabled()
isStartDisabled in interface CoordinatorEnvironmentBeanMBeanpublic void setStartDisabled(boolean startDisabled)
startDisabled - true to start in a diabled state, false to start enabled.public String getTxReaperMode()
getTxReaperMode in interface CoordinatorEnvironmentBeanMBeanpublic void setTxReaperMode(String txReaperMode)
txReaperMode - the name of the required operating mode.public long getTxReaperTimeout()
getTxReaperTimeout in interface CoordinatorEnvironmentBeanMBeanpublic void setTxReaperTimeout(long txReaperTimeout)
txReaperTimeout - the reaper sleep interval, in milliseconds.public long getTxReaperCancelWaitPeriod()
getTxReaperCancelWaitPeriod in interface CoordinatorEnvironmentBeanMBeanpublic void setTxReaperCancelWaitPeriod(long txReaperCancelWaitPeriod)
txReaperCancelWaitPeriod - in milliseconds.public long getTxReaperCancelFailWaitPeriod()
getTxReaperCancelFailWaitPeriod in interface CoordinatorEnvironmentBeanMBeanpublic void setTxReaperCancelFailWaitPeriod(long txReaperCancelFailWaitPeriod)
txReaperCancelFailWaitPeriod - in milliseconds.public int getTxReaperZombieMax()
getTxReaperZombieMax in interface CoordinatorEnvironmentBeanMBeanpublic void setTxReaperZombieMax(int txReaperZombieMax)
txReaperZombieMax - the number of threads.public int getDefaultTimeout()
getDefaultTimeout in interface CoordinatorEnvironmentBeanMBeanpublic void setDefaultTimeout(int defaultTimeout)
defaultTimeout - the default transaction lifetime, in seconds.public boolean isTransactionStatusManagerEnable()
isTransactionStatusManagerEnable in interface CoordinatorEnvironmentBeanMBeanpublic void setTransactionStatusManagerEnable(boolean transactionStatusManagerEnable)
transactionStatusManagerEnable - true to enable the TSM, false to disable.public boolean isBeforeCompletionWhenRollbackOnly()
isBeforeCompletionWhenRollbackOnly in interface CoordinatorEnvironmentBeanMBeanpublic void setBeforeCompletionWhenRollbackOnly(boolean beforeCompletionWhenRollbackOnly)
beforeCompletionWhenRollbackOnly - true to call beforeCompletions on rollback only tx, false to skip them.public String getCheckedActionFactoryClassName()
getCheckedActionFactoryClassName in interface CoordinatorEnvironmentBeanMBeanpublic void setCheckedActionFactoryClassName(String checkedActionFactoryClassName)
checkedActionFactoryClassName - the name of a class that implements CheckedActionFactory.public CheckedActionFactory getCheckedActionFactory()
public void setCheckedActionFactory(CheckedActionFactory instance)
instance - an Object that implements CheckedActionFactory, or null.public boolean isAlternativeRecordOrdering()
true if order abstract records on type first, or
false if order on Uid first.public void setAlternativeRecordOrdering(boolean alternativeRecordOrdering)
alternativeRecordOrdering - true for alternative (i.e. type) ordering, false for normal (i.e. Uid) ordering.public String getCommunicationStore()
getCommunicationStore in interface CoordinatorEnvironmentBeanMBeanpublic void setCommunicationStore(String communicationStore)
communicationStore - the communication store name.public boolean isFinalizeBasicActions()
public void setFinalizeBasicActions(boolean finalizeBasicActions)
finalizeBasicActions - true to enable finalization, false to disable.Copyright © 2013. All Rights Reserved.