|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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()
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(Properties 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 |
shutdown(boolean force)
Shuts down the TM. |
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 UserTransactionService
force
- 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.
IllegalStateException
UserTransactionService
public void init(TSInitInfo info) throws SysException
UserTransactionService
init
in interface UserTransactionService
info
- The TSInitInfo with details for initialization.
SysException
UserTransactionService
public CompositeTransactionManager getCompositeTransactionManager()
UserTransactionService
getCompositeTransactionManager
in interface UserTransactionService
UserTransactionService
public ImportingTransactionManager getImportingTransactionManager()
UserTransactionService
getImportingTransactionManager
in interface UserTransactionService
UserTransactionService
public ExportingTransactionManager getExportingTransactionManager()
UserTransactionService
getExportingTransactionManager
in interface UserTransactionService
UserTransactionService
public void registerResource(RecoverableResource res)
UserTransactionService
registerResource
in interface UserTransactionService
res
- The resource to be added.public void registerLogAdministrator(LogAdministrator admin)
UserTransactionService
registerLogAdministrator
in interface UserTransactionService
admin
- The instance.public Enumeration getResources()
UserTransactionService
getResources
in interface UserTransactionService
public Enumeration getLogAdministrators()
UserTransactionService
getLogAdministrators
in interface UserTransactionService
public void removeResource(RecoverableResource res)
UserTransactionService
removeResource
in interface UserTransactionService
public void removeLogAdministrator(LogAdministrator admin)
UserTransactionService
removeLogAdministrator
in interface UserTransactionService
public void registerTSListener(TSListener listener)
UserTransactionService
registerTSListener
in interface UserTransactionService
public void removeTSListener(TSListener listener)
UserTransactionService
removeTSListener
in interface UserTransactionService
public void init(Properties properties) throws SysException
init
in interface UserTransactionService
SysException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |