public class JTAEnvironmentBean extends Object implements JTAEnvironmentBeanMBean
| Constructor and Description |
|---|
JTAEnvironmentBean() |
| Modifier and Type | Method and Description |
|---|---|
int |
getAsyncCommitPoolSize()
Returns maximum size of a thread pool, used to execute asynchronous commits.
|
List<String> |
getCommitMarkableResourceJNDINames()
Retrieve the list of JNDI names that will be queried for committed 1PC
resources that were enlisted in 2PC transactions.
|
int |
getCommitMarkableResourceRecordDeleteBatchSize()
If this is a positive number, use a batch to delete
CommitMarkableResourceRecord from the database.
|
Map<String,Integer> |
getCommitMarkableResourceRecordDeleteBatchSizeMap()
Allow the default policy of a batch size to delete
CommitMarkableResourceRecord from the database.
|
Map<String,String> |
getCommitMarkableResourceTableNameMap()
Get the name of the table to use for storing commit markable resources
commit state notifiers in.
|
String |
getDefaultCommitMarkableTableName()
Get the name of the table to use for storing commit markable resources
commit state notifiers in.
|
Class |
getLastResourceOptimisationInterface()
Returns the Class representing the marker interface for LastResource.
|
String |
getLastResourceOptimisationInterfaceClassName()
Returns the class name of the marker interface used to indicate a LastResource.
|
int |
getOrphanSafetyInterval() |
Map<String,Boolean> |
getPerformImmediateCleanupOfCommitMarkableResourceBranchesMap()
Allow the default policy of whether to use a synchronization to remove
the branch should be overriden.
|
TransactionManager |
getTransactionManager()
Returns an instance of a class implementing javax.transaction.TransactionManager.
|
String |
getTransactionManagerClassName()
Returns the class name of the javax.transaction.TransactionManager implementation.
|
String |
getTransactionManagerJNDIContext()
Returns the JNDI bind name for the implementation of TransactionManager.
|
TransactionSynchronizationRegistry |
getTransactionSynchronizationRegistry()
Returns an instance of a class implementing javax.transaction.transactionSynchronizationRegistry.
|
String |
getTransactionSynchronizationRegistryClassName()
Returns the class name of the javax.transaction.TransactionSynchronizationRegistry implementation.
|
String |
getTransactionSynchronizationRegistryJNDIContext()
Returns the JNDI bind name for the implementation of TransactionSynchronizationRegistry.
|
UserTransaction |
getUserTransaction()
Returns an instance of a class implementing javax.transaction.UserTransaction.
|
String |
getUserTransactionClassName()
Returns the class name of the javax.transaction.UserTransaction implementation.
|
String |
getUserTransactionJNDIContext()
Returns the JNDI bind name for the implementation of UserTransaction.
|
org.jboss.tm.usertx.UserTransactionOperationsProvider |
getUserTransactionOperationsProvider()
Returning singleton instance of
UserTransactionOperationsProvider instantiated based
based on name specified by setUserTransactionOperationsProviderClassName(String).When class name is redefined during runtime there should be instantiated new provider. |
String |
getUserTransactionOperationsProviderClassName()
Get class name that is used as
UserTransactionOperationsProvider |
List<String> |
getXaRecoveryNodes()
Returns the set of node identifiers for which recovery will be performed.
|
List<String> |
getXaResourceIsSameRMClassNames()
Returns the class names of the XAResource types whose isSameRM method is overridden to return false.
|
List<String> |
getXaResourceMapClassNames()
Returns the set of XAResourceMap implementation class names used to configure XAException handling.
|
List<XAResourceMap> |
getXaResourceMaps()
Returns the set of XAResourceMap instances.
|
List<String> |
getXaResourceOrphanFilterClassNames()
Returns a list of names of classes that implement XAResourceOrphanFilter.
|
List<XAResourceOrphanFilter> |
getXaResourceOrphanFilters()
Returns the set of XAResourceOrphanFilter instances.
|
com.arjuna.ats.internal.jta.resources.arjunacore.XAResourceRecordWrappingPlugin |
getXAResourceRecordWrappingPlugin()
Returns an instance of a class implementing XAResourceRecordWrappingPlugin.
|
String |
getXaResourceRecordWrappingPluginClassName()
Returns the class name of the XAResourceRecordWrappingPlugin implementation.
|
List<XAResourceRecovery> |
getXaResourceRecoveries()
Returns the set of XAResourceRecovery instances.
|
List<String> |
getXaResourceRecoveryClassNames()
Returns the set of XAResourceRecovery implementation class names,
each of which may have configuration data appended to it.
|
boolean |
isNotifyCommitMarkableResourceRecoveryModuleOfCompleteBranches()
If this is enabled we will tell the recovery module when we complete
branches.
|
boolean |
isPerformImmediateCleanupOfCommitMarkableResourceBranches()
If this returns true, a synchronization is registered by the
CommitMarkableResourceRecord to delete records as soon as the transaction
completes.
|
boolean |
isStrictJTA12DuplicateXAENDPROTOErr()
Returns true if we would treat XAER_PROTO out of duplicate xar as an error.
|
boolean |
isSupportSubtransactions()
Returns true if subtransactions are allowed.
|
boolean |
isTransactionToThreadListenersEnabled()
Returns true if the listeners announcing of the change of the thread transaction association happens.
|
boolean |
isXaAssumeRecoveryComplete()
Returns if XAResources that can't be recovered should be assumed to have completed.
|
boolean |
isXaRollbackOptimization()
Returns if connections associated to XAResources that fail during prepare should be cleaned up immediately.
|
boolean |
isXaTransactionTimeoutEnabled()
Returns if the transaction timeout is passed on to the enlisted XAResources.
|
void |
setAsyncCommitPoolSize(int asyncCommitPoolSize)
Sets maximum size of a thread pool, used to execute asynchronous commits.
|
void |
setCommitMarkableResourceJNDINames(List<String> commitMarkableResourceJNDINames)
Set the list of JNDI names to apply a special LastResource algorithm that
allows us to store data about the transaction in the resource manager to
determine the outcome of the resource after crash/
If you change the list of jndinames you _can't_ change the JNDI name of
the connections until they have been recovered.
|
void |
setCommitMarkableResourceRecordDeleteBatchSize(int batchSize)
Alter the default batch size or set to -1 to disable batch deletion of
CommitMarkableResourceRecord from the database.
|
void |
setCommitMarkableResourceRecordDeleteBatchSizeMap(Map<String,Integer> commitMarkableResourceRecordDeleteBatchSizeMap)
Allow the default policy of a batch size to delete
CommitMarkableResourceRecord from the database.
|
void |
setCommitMarkableResourceTableNameMap(Map<String,String> commitMarkableResourceTableNameMap)
Set the name of the table to use for storing commit markable resources
commit state notifiers in.
|
void |
setDefaultCommitMarkableResourceTableName(String commitMarkableResourceTableName)
Set the name of the table to use for storing commit markable resources
commit state notifiers in.
|
void |
setLastResourceOptimisationInterface(Class clazz)
Sets a Class to use as the marker interface for LastResource
|
void |
setLastResourceOptimisationInterfaceClassName(String lastResourceOptimisationInterfaceClassName)
Sets the class name of the marker interface used to indicate a LastResource.
|
void |
setNotifyCommitMarkableResourceRecoveryModuleOfCompleteBranches(boolean notifyCommitMarkableResourceRecoveryModuleOfCompleteBranches)
Allow the default policy of whether to use a synchronization to remove
the branch should be overriden.
|
void |
setOrphanSafetyInterval(int orphanSafetyInterval)
Set the amount of time to wait before deciding if the Xid is orphaned.
|
void |
setPerformImmediateCleanupOfCommitMarkableResourceBranches(boolean performImmediateCleanupOfCommitMarkableResourceBranches)
Notify the transaction manager to delete resource records immediately
after a transaction commits.
|
void |
setPerformImmediateCleanupOfCommitMarkableResourceBranchesMap(Map<String,Boolean> performImmediateCleanupOfCommitMarkableResourceBranchesMap)
Allow the default policy of whether to use a synchronization to remove
the branch should be overriden.
|
void |
setStrictJTA12DuplicateXAENDPROTOErr(boolean strictJTA12DuplicateXAENDPROTOErr)
Sets if to not allow non-JTA 1.2 XAR to return XAER_PROTO out of duplicate XAR xa_end calls
|
void |
setSupportSubtransactions(boolean supportSubtransactions)
Sets if subtransactions should be allowed.
|
void |
setTransactionManager(TransactionManager instance)
Sets the instance of javax.transaction.TransactionManager
|
void |
setTransactionManagerClassName(String transactionManagerClassName)
Sets the class name of the javax.transaction.TransactionManager implementation.
|
void |
setTransactionManagerJNDIContext(String transactionManagerJNDIContext)
Sets the JNDI bind name for the implementation of TransactionManager.
|
void |
setTransactionSynchronizationRegistry(TransactionSynchronizationRegistry instance)
Sets the instance of javax.transaction.TransactionSynchronizationRegistry
|
void |
setTransactionSynchronizationRegistryClassName(String transactionSynchronizationRegistryClassName)
Sets the class name of the javax.transaction.TransactionSynchronizationRegistry implementation.
|
void |
setTransactionSynchronizationRegistryJNDIContext(String transactionSynchronizationRegistryJNDIContext)
Sets tje JNDI bind name for the implementation of TransactionSynchronizationRegistry.
|
void |
setTransactionToThreadListenersEnabled(boolean transactionToThreadListenersEnabled)
Define if transaction to thread associtaion listeners should be enabled.
|
void |
setUserTransaction(UserTransaction instance)
Sets the instance of javax.transaction.UserTransaction
|
void |
setUserTransactionClassName(String userTransactionClassName)
Sets the class name of the javax.transaction.UserTransaction implementation.
|
void |
setUserTransactionJNDIContext(String userTransactionJNDIContext)
Sets the JNDI bind name for the implementation of UserTransaction.
|
void |
setUserTransactionOperationsProviderClassName(String providerClassName)
Setting of class name that defines
UserTransactionOperationsProvider. |
void |
setXaAssumeRecoveryComplete(boolean xaAssumeRecoveryComplete)
Sets if XAResources that can't be recovered should be assumed to have completed.
|
void |
setXaRecoveryNodes(List<String> xaRecoveryNodes)
Sets the node identifiers for which recovery will be performed.
|
void |
setXaResourceIsSameRMClassNames(List<String> xaResourceIsSameRMClassNames)
Sets the class names of the XAResource types whose isSameRM method is overridden to return false.
|
void |
setXaResourceMapClassNames(List<String> xaResourceMapClassNames)
Sets the names of the XAResourceMap classes used for XAException handling.
|
void |
setXaResourceMaps(List<XAResourceMap> xaResourceMaps)
Sets the instances of XAResourceMap.
|
void |
setXaResourceOrphanFilterClassNames(List<String> xaResourceOrphanFilterClassNames)
Sets the class names of XAResourceOrphanFilter implementations.
|
void |
setXaResourceOrphanFilters(List<XAResourceOrphanFilter> xaResourceOrphanFilters)
Sets the instances of XAResourceOrphanFilter.
|
void |
setXAResourceRecordWrappingPlugin(com.arjuna.ats.internal.jta.resources.arjunacore.XAResourceRecordWrappingPlugin instance)
Sets the instance of XAResourceRecordWrappingPlugin
|
void |
setXaResourceRecordWrappingPluginClassName(String xaResourceRecordWrappingPluginClassName)
Sets the class name of the XAResourceRecordWrappingPlugin implementation.
|
void |
setXaResourceRecoveries(List<XAResourceRecovery> xaResourceRecoveries)
Sets the instances of XAResourceRecovery.
|
void |
setXaResourceRecoveryClassNames(List<String> xaResourceRecoveryClassNames)
Sets the class names of the XAResourceRecovery implementations that will be used,
each optionally including trailing configuration data.
|
void |
setXaRollbackOptimization(boolean xaRollbackOptimization)
Sets if failed resources should be cleaned up during prepare or during phase two.
|
void |
setXaTransactionTimeoutEnabled(boolean xaTransactionTimeoutEnabled)
Sets if the transaction timeout should be passed to the enlisted XAResource or not.
|
public boolean isSupportSubtransactions()
isSupportSubtransactions in interface JTAEnvironmentBeanMBeanpublic void setSupportSubtransactions(boolean supportSubtransactions)
supportSubtransactions - true to enable subtransactions, false to disable.public String getTransactionManagerClassName()
getTransactionManagerClassName in interface JTAEnvironmentBeanMBeanpublic void setTransactionManagerClassName(String transactionManagerClassName)
transactionManagerClassName - the name of a class which implements TransactionManager.public TransactionManager getTransactionManager()
public void setTransactionManager(TransactionManager instance)
instance - an Object that implements javax.transaction.TransactionManager, or null.public String getUserTransactionClassName()
getUserTransactionClassName in interface JTAEnvironmentBeanMBeanpublic void setUserTransactionClassName(String userTransactionClassName)
userTransactionClassName - the name of a class which implements javax.transaction.UserTransaction.public UserTransaction getUserTransaction()
public void setUserTransaction(UserTransaction instance)
instance - an Object that implements javax.transaction.UserTransaction, or null.public String getTransactionSynchronizationRegistryClassName()
getTransactionSynchronizationRegistryClassName in interface JTAEnvironmentBeanMBeanpublic void setTransactionSynchronizationRegistryClassName(String transactionSynchronizationRegistryClassName)
transactionSynchronizationRegistryClassName - the name of a class which implements TransactionSynchronizationRegistry.public TransactionSynchronizationRegistry getTransactionSynchronizationRegistry()
public void setTransactionSynchronizationRegistry(TransactionSynchronizationRegistry instance)
instance - an Object that implements javax.transaction.TransactionSynchronizationRegistry, or null.public List<String> getXaRecoveryNodes()
getXaRecoveryNodes in interface JTAEnvironmentBeanMBeanpublic void setXaRecoveryNodes(List<String> xaRecoveryNodes)
xaRecoveryNodes - the set of node identifiers for which to perform recovery.public List<String> getXaResourceRecoveryClassNames()
getXaResourceRecoveryClassNames in interface JTAEnvironmentBeanMBeanpublic void setXaResourceRecoveryClassNames(List<String> xaResourceRecoveryClassNames)
xaResourceRecoveryClassNames - the XAResourceRecovery implementation class names and configuration.public List<XAResourceRecovery> getXaResourceRecoveries()
public void setXaResourceRecoveries(List<XAResourceRecovery> xaResourceRecoveries)
xaResourceRecoveries - the set of XAResourceRecovery instances.public List<String> getXaResourceOrphanFilterClassNames()
getXaResourceOrphanFilterClassNames in interface JTAEnvironmentBeanMBeanpublic void setXaResourceOrphanFilterClassNames(List<String> xaResourceOrphanFilterClassNames)
xaResourceOrphanFilterClassNames - a list of XAResourceOrphanFilter implementation classes.public List<XAResourceOrphanFilter> getXaResourceOrphanFilters()
public void setXaResourceOrphanFilters(List<XAResourceOrphanFilter> xaResourceOrphanFilters)
xaResourceOrphanFilters - the set of XAResourceOrphanFilter instances.public boolean isXaRollbackOptimization()
isXaRollbackOptimization in interface JTAEnvironmentBeanMBeanpublic void setXaRollbackOptimization(boolean xaRollbackOptimization)
xaRollbackOptimization - true for immediate cleanup, false for phase two cleanup.public boolean isXaAssumeRecoveryComplete()
isXaAssumeRecoveryComplete in interface JTAEnvironmentBeanMBeanpublic void setXaAssumeRecoveryComplete(boolean xaAssumeRecoveryComplete)
xaAssumeRecoveryComplete - true to enable completion assumption, false to disable.public String getUserTransactionJNDIContext()
getUserTransactionJNDIContext in interface JTAEnvironmentBeanMBeanpublic void setUserTransactionJNDIContext(String userTransactionJNDIContext)
userTransactionJNDIContext - the JNDI bind location for the UserTransaction interface.public String getTransactionManagerJNDIContext()
getTransactionManagerJNDIContext in interface JTAEnvironmentBeanMBeanpublic void setTransactionManagerJNDIContext(String transactionManagerJNDIContext)
transactionManagerJNDIContext - the JNDI bind location for the TransactionManager interface.public String getTransactionSynchronizationRegistryJNDIContext()
getTransactionSynchronizationRegistryJNDIContext in interface JTAEnvironmentBeanMBeanpublic void setTransactionSynchronizationRegistryJNDIContext(String transactionSynchronizationRegistryJNDIContext)
transactionSynchronizationRegistryJNDIContext - the JNDI bind location for the TransactionSynchronizationRegistry implementation.public List<String> getXaResourceMapClassNames()
getXaResourceMapClassNames in interface JTAEnvironmentBeanMBeanpublic void setXaResourceMapClassNames(List<String> xaResourceMapClassNames)
xaResourceMapClassNames - a set of names of classes, each implementing XAResourceMap.public List<XAResourceMap> getXaResourceMaps()
public void setXaResourceMaps(List<XAResourceMap> xaResourceMaps)
xaResourceMaps - the set of XAResourceMap instances.public boolean isXaTransactionTimeoutEnabled()
isXaTransactionTimeoutEnabled in interface JTAEnvironmentBeanMBeanpublic void setXaTransactionTimeoutEnabled(boolean xaTransactionTimeoutEnabled)
xaTransactionTimeoutEnabled - true to enable setting XAResource timeouts, false to disable.public String getLastResourceOptimisationInterfaceClassName()
getLastResourceOptimisationInterfaceClassName in interface JTAEnvironmentBeanMBeanpublic void setLastResourceOptimisationInterfaceClassName(String lastResourceOptimisationInterfaceClassName)
lastResourceOptimisationInterfaceClassName - the class name of the marker interface.public Class getLastResourceOptimisationInterface()
public void setLastResourceOptimisationInterface(Class clazz)
clazz - a marker interface Class, or null.public String getXaResourceRecordWrappingPluginClassName()
public void setXaResourceRecordWrappingPluginClassName(String xaResourceRecordWrappingPluginClassName)
xaResourceRecordWrappingPluginClassName - the name of a class which implements XAResourceRecordWrappingPlugin.public com.arjuna.ats.internal.jta.resources.arjunacore.XAResourceRecordWrappingPlugin getXAResourceRecordWrappingPlugin()
public void setXAResourceRecordWrappingPlugin(com.arjuna.ats.internal.jta.resources.arjunacore.XAResourceRecordWrappingPlugin instance)
instance - an Object that implements XAResourceRecordWrappingPlugin, or null.public int getAsyncCommitPoolSize()
public void setAsyncCommitPoolSize(int asyncCommitPoolSize)
asyncCommitPoolSize - maximum size of a thread pool, used to execute asynchronous commits.public int getOrphanSafetyInterval()
public void setOrphanSafetyInterval(int orphanSafetyInterval)
orphanSafetyInterval - public String getDefaultCommitMarkableTableName()
public void setDefaultCommitMarkableResourceTableName(String commitMarkableResourceTableName)
commitMarkableResourceTableName - The name of the table.public Map<String,String> getCommitMarkableResourceTableNameMap()
public void setCommitMarkableResourceTableNameMap(Map<String,String> commitMarkableResourceTableNameMap)
commitMarkableResourceTableNameMap - The name of the table.public List<String> getCommitMarkableResourceJNDINames()
public void setCommitMarkableResourceJNDINames(List<String> commitMarkableResourceJNDINames)
commitMarkableResourceJNDINames - The list of JNDI namespublic boolean isPerformImmediateCleanupOfCommitMarkableResourceBranches()
public void setPerformImmediateCleanupOfCommitMarkableResourceBranches(boolean performImmediateCleanupOfCommitMarkableResourceBranches)
performImmediateCleanupOfCommitMarkableResourceBranches - public Map<String,Boolean> getPerformImmediateCleanupOfCommitMarkableResourceBranchesMap()
public void setPerformImmediateCleanupOfCommitMarkableResourceBranchesMap(Map<String,Boolean> performImmediateCleanupOfCommitMarkableResourceBranchesMap)
performImmediateCleanupOfCommitMarkableResourceBranchesMap - The name of the table.public int getCommitMarkableResourceRecordDeleteBatchSize()
public void setCommitMarkableResourceRecordDeleteBatchSize(int batchSize)
batchSize - -1 to prevent batching.public Map<String,Integer> getCommitMarkableResourceRecordDeleteBatchSizeMap()
public void setCommitMarkableResourceRecordDeleteBatchSizeMap(Map<String,Integer> commitMarkableResourceRecordDeleteBatchSizeMap)
commitMarkableResourceRecordDeleteBatchSizeMap - sizepublic boolean isNotifyCommitMarkableResourceRecoveryModuleOfCompleteBranches()
public void setNotifyCommitMarkableResourceRecoveryModuleOfCompleteBranches(boolean notifyCommitMarkableResourceRecoveryModuleOfCompleteBranches)
public void setUserTransactionOperationsProviderClassName(String providerClassName)
Setting of class name that defines UserTransactionOperationsProvider.
The provider is later used to get more info about UserTransaction.
When null is set then default provider implementation is used which is
#defaultTransactionOperationsProviderClassName.
providerClassName - class name implementing UserTransactionOperationsProviderpublic String getUserTransactionOperationsProviderClassName()
UserTransactionOperationsProviderUserTransactionOperationsProviderpublic org.jboss.tm.usertx.UserTransactionOperationsProvider getUserTransactionOperationsProvider()
UserTransactionOperationsProvider instantiated based
based on name specified by setUserTransactionOperationsProviderClassName(String).UserTransactionOperationsProviderpublic boolean isStrictJTA12DuplicateXAENDPROTOErr()
public void setStrictJTA12DuplicateXAENDPROTOErr(boolean strictJTA12DuplicateXAENDPROTOErr)
strictJTA12DuplicateXAENDPROTOErr - true to enable, false to disable.public boolean isTransactionToThreadListenersEnabled()
public void setTransactionToThreadListenersEnabled(boolean transactionToThreadListenersEnabled)
transactionToThreadListenersEnabled - true to enable listeners handling, false to disablepublic List<String> getXaResourceIsSameRMClassNames()
public void setXaResourceIsSameRMClassNames(List<String> xaResourceIsSameRMClassNames)
xaResourceIsSameRMClassNames - the class names of XAResource types that should be overriden.Copyright © 2021 JBoss by Red Hat. All rights reserved.