|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atomikos.icatch.system.Configuration
public final class Configuration
Configuration is a facade for the icatch transaction management facilities. Allows the application server code to find the transaction manager, even if the actual implementation varies over time.
Method Summary | |
---|---|
static void |
addConsole(Console console)
Add a console for the configuration. |
static void |
addLogAdministrator(LogAdministrator admin)
Add a log administrator. |
static void |
addResource(RecoverableResource resource)
Add a resource to the transaction manager domain. |
static void |
addShutdownHook(Thread hook)
Adds a shutdown hook to the configuration. |
static void |
addTSListener(TSListener l)
Add a transaction service listener. |
static CompositeTransactionManager |
getCompositeTransactionManager()
Get the composite transaction manager. |
static Console |
getConsole()
Get the console for the configuration. |
static ExportingTransactionManager |
getExportingTransactionManager()
Get the exporting transaction manager. |
static ImportingTransactionManager |
getImportingTransactionManager()
Get the importing transaction manager. |
static Enumeration |
getLogAdministrators()
Get all registered logadministrators. |
static RecoverableResource |
getResource(String name)
Get the resource with the given name. |
static Enumeration |
getResources()
Get all resources added so far, in the order that they were added. |
static TransactionService |
getTransactionService()
Retrieves the transaction service being used. |
static String |
getVersion()
|
static void |
installCompositeTransactionManager(CompositeTransactionManager compositeTransactionManager)
Installs a composite transaction manager as a Singleton. |
static void |
installExportingTransactionManager(ExportingTransactionManager exportingTransactionManager)
Installs an exporting transaction manager as a Singleton. |
static void |
installImportingTransactionManager(ImportingTransactionManager importingTransactionManager)
Installs an importing transaction manager as a Singleton. |
static void |
installLogControl(LogControl control)
Installs the log control interface to use. |
static void |
installRecoveryService(RecoveryService service)
Installs a recovery service as a Singleton. |
static void |
installTransactionService(TransactionService service)
Installs the transaction service in use. |
static boolean |
isDebugLoggingEnabled()
Tests if DEBUG logging is enabled. |
static boolean |
isInfoLoggingEnabled()
Tests if INFO logging is enabled. |
static void |
logDebug(String msg)
Write a debug message to the log. |
static void |
logDebug(String msg,
Throwable error)
Write a debug msg and error to the log. |
static void |
logInfo(String msg)
Write a log entry for the INFO level. |
static void |
logInfo(String msg,
Throwable error)
Write an info message and error to the log. |
static void |
logWarning(String msg)
Write a message to the installed console. |
static void |
logWarning(String msg,
Throwable error)
Write a message and associated exception to the console. |
static void |
removeConsoles()
Remove all consoles added so far. |
static void |
removeLogAdministrator(LogAdministrator admin)
Remove a log administrator. |
static RecoverableResource |
removeResource(String name)
Removes a resource from the config. |
static void |
removeShutdownHooks()
Removes all shutdown hooks from the system. |
static void |
removeTSListener(TSListener l)
Remove a transaction service listener. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static String getVersion()
public static void installTransactionService(TransactionService service)
service
- The service.public static void addShutdownHook(Thread hook)
hook
- public static void removeShutdownHooks()
public static TransactionService getTransactionService()
public static void addTSListener(TSListener l)
l
- The listener.public static void removeTSListener(TSListener l)
l
- The listener.public static void installCompositeTransactionManager(CompositeTransactionManager compositeTransactionManager)
compositeTransactionManager
- The instance to install.public static void installRecoveryService(RecoveryService service)
service
- The recovery service.public static void installLogControl(LogControl control)
control
- public static void installImportingTransactionManager(ImportingTransactionManager importingTransactionManager)
importingTransactionManager
- The instance to install.public static void installExportingTransactionManager(ExportingTransactionManager exportingTransactionManager)
exportingTransactionManager
- The instance to install.public static CompositeTransactionManager getCompositeTransactionManager()
public static ImportingTransactionManager getImportingTransactionManager()
public static ExportingTransactionManager getExportingTransactionManager()
public static void addResource(RecoverableResource resource) throws IllegalStateException
resource
- The resource to add.
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 Enumeration getLogAdministrators()
public static RecoverableResource removeResource(String name)
name
- The resource's name.
public static RecoverableResource getResource(String name)
name
- The name to find.
public static Enumeration getResources()
public static void addConsole(Console console)
console
- The console to add.public static Console getConsole()
public static void removeConsoles()
public static void logWarning(String msg)
msg
- The message to write.public static void logWarning(String msg, Throwable error)
msg
- error
- public static void logInfo(String msg)
msg
- public static void logInfo(String msg, Throwable error)
msg
- error
- public static void logDebug(String msg)
msg
- public static void logDebug(String msg, Throwable error)
msg
- error
- public static boolean isDebugLoggingEnabled()
public static boolean isInfoLoggingEnabled()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |