|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.atomikos.icatch.ws.ApplicationClasspathResource
public abstract class ApplicationClasspathResource
Field Summary | |
---|---|
protected UniqueIdMgr |
idMgr
|
protected Map |
idToParticipantMap
|
protected String |
name
|
protected ObjectLog |
participantLog
|
Constructor Summary | |
---|---|
protected |
ApplicationClasspathResource(String name,
String logBaseDir,
String logBaseName,
long checkPointInterval)
|
Method Summary | |
---|---|
void |
close()
Closes the resource for shutdown. |
void |
endRecovery()
Notifies the resource that recovery is ended. |
String |
getName()
Gets the name of the resource. |
protected static ApplicationClasspathResource |
getResourceForClassLoader(ClassLoader cl)
|
boolean |
isClosed()
Tests if the resource is closed. |
boolean |
isSameRM(RecoverableResource res)
Tests if a resource is the same as another one. |
protected abstract void |
recoverAllIfNeeded()
|
static void |
registerResource(ApplicationClasspathResource resource,
ClassLoader cl)
Registers a resource. |
void |
removeParticipant(String id)
|
void |
setRecoveryService(RecoveryService recoveryService)
Initializes this resource with the recovery service. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.atomikos.datasource.RecoverableResource |
---|
recover |
Field Detail |
---|
protected String name
protected ObjectLog participantLog
protected Map idToParticipantMap
protected UniqueIdMgr idMgr
Constructor Detail |
---|
protected ApplicationClasspathResource(String name, String logBaseDir, String logBaseName, long checkPointInterval) throws ResourceException
ResourceException
Method Detail |
---|
public static void registerResource(ApplicationClasspathResource resource, ClassLoader cl)
resource
- cl
- protected static ApplicationClasspathResource getResourceForClassLoader(ClassLoader cl)
public void setRecoveryService(RecoveryService recoveryService) throws ResourceException
RecoverableResource
setRecoveryService
in interface RecoverableResource
recoveryService
- The recovery service. This instance
can be used by the resource to ask recovery from the
transaction engine.
ResourceException
- On errors.public void removeParticipant(String id)
public void endRecovery() throws ResourceException
RecoverableResource
endRecovery
in interface RecoverableResource
ResourceException
- On failure.public void close() throws ResourceException
RecoverableResource
close
in interface RecoverableResource
ResourceException
public String getName()
RecoverableResource
getName
in interface RecoverableResource
public boolean isSameRM(RecoverableResource res) throws ResourceException
RecoverableResource
isSameRM
in interface RecoverableResource
ResourceException
public boolean isClosed()
RecoverableResource
isClosed
in interface RecoverableResource
protected abstract void recoverAllIfNeeded()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |