@Service public class ResourceRecoveryManagerImpl extends Object implements org.glassfish.hk2.api.PostConstruct, ResourceRecoveryManager
| Constructor and Description |
|---|
ResourceRecoveryManagerImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
postConstruct() |
boolean |
recoverIncompleteTx(boolean delegated,
String logPath)
recover incomplete transactions
|
boolean |
recoverIncompleteTx(boolean delegated,
String logPath,
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
|
public void postConstruct()
postConstruct in interface org.glassfish.hk2.api.PostConstructpublic boolean recoverIncompleteTx(boolean delegated,
String logPath)
throws Exception
recoverIncompleteTx in interface ResourceRecoveryManagerdelegated - indicates whether delegated recovery is neededlogPath - transaction log directory pathException - when unable to recoverpublic boolean recoverIncompleteTx(boolean delegated,
String logPath,
String instance,
boolean notifyRecoveryListeners)
throws 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 notifiedException - 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)
Copyright © 2017. All rights reserved.