|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.enterprise.transaction.jts.ResourceRecoveryManagerImpl
@Service public class ResourceRecoveryManagerImpl
Resource recovery manager to recover transactions.
| Constructor Summary | |
|---|---|
ResourceRecoveryManagerImpl()
|
|
| Method Summary | |
|---|---|
void |
postConstruct()
|
boolean |
recoverIncompleteTx(boolean delegated,
java.lang.String logPath)
recover incomplete transactions |
boolean |
recoverIncompleteTx(boolean delegated,
java.lang.String logPath,
java.lang.String instance,
boolean notifyRecoveryListeners)
recover incomplete transactions |
void |
recoverXAResources()
to recover xa resources |
void |
recoverXAResources(boolean force)
recover the xa-resources |
static void |
registerRecoveryResourceHandler(XAResource xaResource)
|
void |
setLazyRecovery(boolean lazy)
to enable lazy recovery, setting lazy to "true" will |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ResourceRecoveryManagerImpl()
| Method Detail |
|---|
public void postConstruct()
postConstruct in interface org.jvnet.hk2.component.PostConstruct
public boolean recoverIncompleteTx(boolean delegated,
java.lang.String logPath)
throws java.lang.Exception
recoverIncompleteTx in interface ResourceRecoveryManagerdelegated - indicates whether delegated recovery is neededlogPath - transaction log directory path
java.lang.Exception - when unable to recover
public boolean recoverIncompleteTx(boolean delegated,
java.lang.String logPath,
java.lang.String instance,
boolean notifyRecoveryListeners)
throws java.lang.Exception
recoverIncompleteTx in interface ResourceRecoveryManagerdelegated - indicates whether delegated recovery is neededlogPath - transaction log directory pathinstance - the name of the instance for which delegated recovery is performed, null if unknown.notifyRecoveryListeners - specifies whether recovery listeners are to be notified
java.lang.Exception - when unable to recoverpublic void recoverXAResources(boolean force)
recoverXAResources in interface ResourceRecoveryManagerforce - boolean to indicate if it has to be forced.public void setLazyRecovery(boolean lazy)
setLazyRecovery in interface ResourceRecoveryManagerlazy - booleanpublic void recoverXAResources()
recoverXAResources in interface ResourceRecoveryManagerpublic static void registerRecoveryResourceHandler(XAResource xaResource)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||