com.sun.enterprise.transaction.api
Interface ResourceRecoveryManager


@Contract
public interface ResourceRecoveryManager

ResourceRecoveryManager interface to be implemented by the resource manager that supports XA recovery.

Author:
Marina Vatkina

Method Summary
 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 with before and after event notifications
 void recoverXAResources()
          to recover xa resources
 void recoverXAResources(boolean force)
          recover the xa-resources
 void setLazyRecovery(boolean lazy)
          to enable lazy recovery, setting lazy to "true" will
 

Method Detail

recoverIncompleteTx

boolean recoverIncompleteTx(boolean delegated,
                            java.lang.String logPath)
                            throws java.lang.Exception
recover incomplete transactions

Parameters:
delegated - indicates whether delegated recovery is needed
logPath - transaction log directory path
Returns:
boolean indicating the status of transaction recovery
Throws:
java.lang.Exception - when unable to recover

recoverIncompleteTx

boolean recoverIncompleteTx(boolean delegated,
                            java.lang.String logPath,
                            java.lang.String instance,
                            boolean notifyRecoveryListeners)
                            throws java.lang.Exception
recover incomplete transactions with before and after event notifications

Parameters:
delegated - indicates whether delegated recovery is needed
logPath - transaction log directory path
instance - the name opf the instance for which delegated recovery is requested, null if unknown
notifyRecoveryListeners - specifies whether recovery listeners are to be notified
Returns:
boolean indicating the status of transaction recovery
Throws:
java.lang.Exception - when unable to recover

recoverXAResources

void recoverXAResources(boolean force)
recover the xa-resources

Parameters:
force - boolean to indicate if it has to be forced.

recoverXAResources

void recoverXAResources()
to recover xa resources


setLazyRecovery

void setLazyRecovery(boolean lazy)
to enable lazy recovery, setting lazy to "true" will

Parameters:
lazy - boolean


Copyright © 2012 GlassFish Community. All Rights Reserved.