/** * Terminate and cleanup the recovery manager. There is no going back from this. This is a * synchronous operation so return means that the recovery has completed. * * @throws IllegalStateException if the recovery manager has been shutdown. */ public final void terminate () { terminate(false); }
public ScanThread (RecoveryManagerImple theImple, RecoveryScan callback) { super("RecoveryManagerScanThread"); _theImple = theImple; _callback = callback; setDaemon(true); }
/** * Stop the periodic recovery manager waiting for any recovery scan in progress to complete. * * @throws IllegalStateException if the recovery manager has been shutdown. * * @deprecated use terminate instead. */ public final void stop () { stop(false); }
public final boolean asynchronousScan () throws java.net.UnknownHostException, java.net.SocketException, java.io.IOException { /* * For async the timeout is the socket timeout and number of attempts on call is 1. */ return scan(ASYNC_SCAN, _timeout, 1); }
/** * Re-creates/activates an AtomicAction for the specified * transaction Uid. */ public RecoverAtomicAction ( Uid rcvUid, int theStatus ) { super( rcvUid ) ; _theStatus = theStatus ; _activated = activate() ; }
/** * Suspend the recovery manager. If the recovery manager is in the process of * doing recovery scans then it will be suspended afterwards, in order to * preserve data integrity. * * @param async false means wait for the recovery manager to finish any scans before returning. * @throws IllegalStateException if the recovery manager has been shutdown. */ public void suspend (boolean async) { trySuspend(async); }
/** * @throws IllegalStateException if the recovery manager has been shutdown. * @deprecated use resume */ public void resumeScan () { resume(); }
/** * Terminate and cleanup the recovery manager. There is no going back from this. This is a * synchronous operation so return means that the recovery has completed. * * @throws IllegalStateException if the recovery manager has been shutdown. */ public final void terminate () { terminate(false); }
public ScanThread (RecoveryManagerImple theImple, RecoveryScan callback) { super("RecoveryManagerScanThread"); _theImple = theImple; _callback = callback; setDaemon(true); }
public final boolean asynchronousScan () throws java.net.UnknownHostException, java.net.SocketException, java.io.IOException { /* * For async the timeout is the socket timeout and number of attempts on call is 1. */ return scan(ASYNC_SCAN, _timeout, 1); }
/** * Re-creates/activates an AtomicAction for the specified * transaction Uid. */ public RecoverAtomicAction ( Uid rcvUid, int theStatus ) { super( rcvUid ) ; _theStatus = theStatus ; _activated = activate() ; }
/** * Suspend the recovery manager. If the recovery manager is in the process of * doing recovery scans then it will be suspended afterwards, in order to * preserve data integrity. * * @param async false means wait for the recovery manager to finish any scans before returning. * @throws IllegalStateException if the recovery manager has been shutdown. */ public void suspend (boolean async) { trySuspend(async); }
/** * @see org.teiid.dqp.internal.transaction.TransactionProvider#shutdown() */ public void shutdown() { if (this.recoveryManager != null) { this.recoveryManager.stop(); } }
/** * Terminate and cleanup the recovery manager. There is no going back from this. This is a * synchronous operation so return means that the recovery has completed. * * @throws IllegalStateException if the recovery manager has been shutdown. */ public final void terminate () { terminate(false); }
public ScanThread (RecoveryManagerImple theImple, RecoveryScan callback) { super("RecoveryManagerScanThread"); _theImple = theImple; _callback = callback; setDaemon(true); }
public final boolean asynchronousScan () throws java.net.UnknownHostException, java.net.SocketException, java.io.IOException { /* * For async the timeout is the socket timeout and number of attempts on call is 1. */ return scan(ASYNC_SCAN, _timeout, 1); }
/** * Re-creates/activates an AtomicAction for the specified * transaction Uid. */ public RecoverAtomicAction ( Uid rcvUid, int theStatus ) { super( rcvUid ) ; _theStatus = theStatus ; _activated = activate() ; }
public ScanThread (RecoveryManagerImple theImple, RecoveryScan callback) { super("RecoveryManagerScanThread"); _theImple = theImple; _callback = callback; setDaemon(true); }
public final boolean asynchronousScan () throws java.net.UnknownHostException, java.net.SocketException, java.io.IOException { /* * For async the timeout is the socket timeout and number of attempts on call is 1. */ return scan(ASYNC_SCAN, _timeout, 1); }
public ScanThread (RecoveryManagerImple theImple, RecoveryScan callback) { super("RecoveryManagerScanThread"); _theImple = theImple; _callback = callback; setDaemon(true); }