|
||||||||||
| 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
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()
Gets the composite transaction manager for the config. |
protected static String |
getDefaultName()
Utility method to get a default TM name. |
ExportingTransactionManager |
getExportingTransactionManager()
Gets the ExportingTransactionManager instance |
protected static String |
getHostAddress()
Utility method to get the local host address. |
ImportingTransactionManager |
getImportingTransactionManager()
Gets the ImportingTransactionManager instance. |
Enumeration |
getLogAdministrators()
Gets the log administrators. |
Enumeration |
getResources()
Gets the resources registered. |
static String |
getTrimmedProperty(String name,
Properties p)
Utility method to get and trim properties. |
void |
init(Properties properties)
|
void |
init(TSInitInfo info)
Initializes the intra-VM transaction manager. |
void |
registerLogAdministrator(LogAdministrator admin)
Registers a LogAdministrator instance for administration. |
void |
registerResource(RecoverableResource res)
Registers 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 |
shutdown(boolean force)
Shuts down the core. |
| 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 |
| 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 UserTransactionService
public void init(Properties properties)
throws SysException
init in interface UserTransactionServiceSysException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||