Package bitronix.tm
Class TransactionManagerServices
java.lang.Object
bitronix.tm.TransactionManagerServices
Container for all BTM services.
The different services available are: BitronixTransactionManager, BitronixTransactionSynchronizationRegistry
Configuration, Journal, TaskScheduler, ResourceLoader, Recoverer and Executor.
They are used in all places of the TM so they must be globally reachable.
- Author:
- lorban
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static voidclear()Clear services references.static ConfigurationCreate the configuration of all the components of the transaction manager.static ExceptionAnalyzerCreate the exception analyzer.static ExecutorCreate the 2PC executor.static JournalCreate the transactions journal.static RecovererCreate the transaction recoverer.static ResourceLoaderCreate the resource loader.static TaskSchedulerCreate the task scheduler.static BitronixTransactionManagerCreate an initialized transaction manager.Create the JTA 1.1 TransactionSynchronizationRegistry.static booleanCheck if the task scheduler has started.static booleanCheck if the transaction manager has started.
-
Constructor Details
-
TransactionManagerServices
public TransactionManagerServices()
-
-
Method Details
-
getTransactionManager
Create an initialized transaction manager.- Returns:
- the transaction manager.
-
getTransactionSynchronizationRegistry
Create the JTA 1.1 TransactionSynchronizationRegistry.- Returns:
- the TransactionSynchronizationRegistry.
-
getConfiguration
Create the configuration of all the components of the transaction manager.- Returns:
- the global configuration.
-
getJournal
Create the transactions journal.- Returns:
- the transactions journal.
-
getTaskScheduler
Create the task scheduler.- Returns:
- the task scheduler.
-
getResourceLoader
Create the resource loader.- Returns:
- the resource loader.
-
getRecoverer
Create the transaction recoverer.- Returns:
- the transaction recoverer.
-
getExecutor
Create the 2PC executor.- Returns:
- the 2PC executor.
-
getExceptionAnalyzer
Create the exception analyzer.- Returns:
- the exception analyzer.
-
isTransactionManagerRunning
public static boolean isTransactionManagerRunning()Check if the transaction manager has started.- Returns:
- true if the transaction manager has started.
-
isTaskSchedulerRunning
public static boolean isTaskSchedulerRunning()Check if the task scheduler has started.- Returns:
- true if the task scheduler has started.
-
clear
protected static void clear()Clear services references. Called at the end of the shutdown procedure.
-