public final class Configuration
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static void |
addLogAdministrator(LogAdministrator admin)
Add a log administrator.
|
static void |
addResource(RecoverableResource resource)
Add a resource to the transaction manager domain.
|
protected static Assembler |
getAssembler() |
static CompositeTransactionManager |
getCompositeTransactionManager()
Get the composite transaction manager.
|
static ConfigProperties |
getConfigProperties() |
static RecoveryLog |
getRecoveryLog() |
static RecoverableResource |
getResource(java.lang.String name)
Get the resource with the given name.
|
static java.util.Enumeration<RecoverableResource> |
getResources()
Get all resources added so far, in the order that they were added.
|
static TransactionService |
getTransactionService()
Retrieves the transaction service being used.
|
static boolean |
init() |
static void |
installCompositeTransactionManager(CompositeTransactionManager compositeTransactionManager)
Installs a composite transaction manager as a Singleton.
|
static void |
registerTransactionServicePlugin(TransactionServicePlugin l)
Add a transaction service listener.
|
static void |
removeLogAdministrator(LogAdministrator admin)
Remove a log administrator.
|
static RecoverableResource |
removeResource(java.lang.String name)
Removes a resource from the config.
|
static void |
shutdown(boolean force) |
static void |
shutdown(long maxWaitTime) |
static void |
unregisterTransactionServicePlugin(TransactionServicePlugin l)
Remove a transaction service listener.
|
public static TransactionService getTransactionService()
public static void registerTransactionServicePlugin(TransactionServicePlugin l)
l - The listener.public static void unregisterTransactionServicePlugin(TransactionServicePlugin l)
l - The listener.public static void installCompositeTransactionManager(CompositeTransactionManager compositeTransactionManager)
compositeTransactionManager - The instance to install.public static CompositeTransactionManager getCompositeTransactionManager()
public static void addResource(RecoverableResource resource) throws java.lang.IllegalStateException
resource - The resource to add.java.lang.IllegalStateException - If the name of the resource is already in use.public static void addLogAdministrator(LogAdministrator admin)
admin - public static void removeLogAdministrator(LogAdministrator admin)
admin - public static RecoverableResource removeResource(java.lang.String name)
name - The resource's name.public static RecoverableResource getResource(java.lang.String name)
name - The name to find.public static java.util.Enumeration<RecoverableResource> getResources()
protected static Assembler getAssembler()
public static ConfigProperties getConfigProperties()
public static void shutdown(boolean force)
public static void shutdown(long maxWaitTime)
public static boolean init()
public static RecoveryLog getRecoveryLog()
Copyright © 2018. All Rights Reserved.