|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.atomikos.icatch.config.imp.AbstractUserTransactionService
public abstract class AbstractUserTransactionService
Copyright © 2001, Atomikos. All rights reserved. The user's (client program) view of the transaction manager's configuration, a compact facade with all the information the client program needs. This base class should be overridden for each module (CORBA, trmi,...).
| Constructor Summary | |
|---|---|
AbstractUserTransactionService()
|
|
| Method Summary | |
|---|---|
protected static String |
findOrCreateFolder(String path)
Utility method to find or create a given folder |
CompositeTransactionManager |
getCompositeTransactionManager()
Get the composite transaction manager for the config. |
protected static String |
getDefaultName()
Utility method to get a default TM name. |
ExportingTransactionManager |
getExportingTransactionManager()
Get the ExportingTransactionManager instance |
protected static String |
getHostAddress()
Utility method to get the local host address. |
ImportingTransactionManager |
getImportingTransactionManager()
Get the ImportingTransactionManager instance. |
Enumeration |
getLogAdministrators()
Get the log administrators. |
Enumeration |
getResources()
Get the resources registered. |
static String |
getTrimmedProperty(String name,
Properties p)
Utility method to get and trim properties. |
void |
init(TSInitInfo info)
Initializes the intra-VM transaction manager. |
void |
registerLogAdministrator(LogAdministrator admin)
Register a LogAdministrator instance for administration. |
void |
registerResource(RecoverableResource res)
Register a new resource for recovery. |
void |
registerTSListener(TSListener listener)
Registers a listener with the transaction service. |
void |
removeLogAdministrator(LogAdministrator admin)
Removes the given log administrator. |
void |
removeResource(RecoverableResource res)
Removes the given resource. |
void |
removeTSListener(TSListener listener)
Removes a listener from the transaction service. |
void |
setLogAdministrators(List administrators)
Sets a list of administrators to add. |
void |
setRecoverableResources(List resources)
Sets a list of resources to add for recovery. |
void |
setTSListeners(List listeners)
Sets the list of listeners to add. |
void |
shutdown(boolean force)
Shuts down the TM. |
void |
shutdownForce()
Convenience method for calling shutdown with force option |
void |
shutdownWait()
Convenience method for calling shutdown with the wait option. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.atomikos.icatch.config.UserTransactionService |
|---|
createTSInitInfo, getTransactionManager, getTSMetaData, getUserTransaction |
| Constructor Detail |
|---|
public AbstractUserTransactionService()
| Method Detail |
|---|
public static String getTrimmedProperty(String name,
Properties p)
name - The name of the property to get.p - The properties to look in.
protected static String getDefaultName()
protected static String getHostAddress()
protected static String findOrCreateFolder(String path)
path - The folder path.
public void shutdown(boolean force)
throws IllegalStateException
UserTransactionService
shutdown in interface UserTransactionServiceforce - If true, then shutdown will succeed even if
some transactions are still active. If false, then the calling thread
will block until any active transactions are terminated. A heuristic
transaction is also considered to be active.
IllegalStateExceptionUserTransactionService
public void init(TSInitInfo info)
throws SysException
UserTransactionService
init in interface UserTransactionServiceinfo - The TSInitInfo with details for initialization.
SysExceptionUserTransactionServicepublic CompositeTransactionManager getCompositeTransactionManager()
UserTransactionService
getCompositeTransactionManager in interface UserTransactionServiceUserTransactionServicepublic ImportingTransactionManager getImportingTransactionManager()
UserTransactionService
getImportingTransactionManager in interface UserTransactionServiceUserTransactionServicepublic ExportingTransactionManager getExportingTransactionManager()
UserTransactionService
getExportingTransactionManager in interface UserTransactionServiceUserTransactionServicepublic void registerResource(RecoverableResource res)
UserTransactionService
registerResource in interface UserTransactionServiceres - The resource to be added.public void registerLogAdministrator(LogAdministrator admin)
UserTransactionService
registerLogAdministrator in interface UserTransactionServiceadmin - The instance.public Enumeration getResources()
UserTransactionService
getResources in interface UserTransactionServicepublic Enumeration getLogAdministrators()
UserTransactionService
getLogAdministrators in interface UserTransactionServicepublic void removeResource(RecoverableResource res)
UserTransactionService
removeResource in interface UserTransactionServicepublic void removeLogAdministrator(LogAdministrator admin)
UserTransactionService
removeLogAdministrator in interface UserTransactionServicepublic void registerTSListener(TSListener listener)
UserTransactionService
registerTSListener in interface UserTransactionServicepublic void removeTSListener(TSListener listener)
UserTransactionService
removeTSListener in interface UserTransactionServicepublic void shutdownForce()
UserTransactionService
shutdownForce in interface UserTransactionServicepublic void shutdownWait()
UserTransactionService
shutdownWait in interface UserTransactionServicepublic void setRecoverableResources(List resources)
UserTransactionService
setRecoverableResources in interface UserTransactionServicepublic void setLogAdministrators(List administrators)
UserTransactionService
setLogAdministrators in interface UserTransactionServicepublic void setTSListeners(List listeners)
UserTransactionService
setTSListeners in interface UserTransactionService
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||