public void waitForTermination () { checkState(); _theImple.waitForTermination(); _theImple = null; }
public final synchronized void terminate (boolean async) { checkState(); _theImple.stop(async); _theImple = null; }
public final void scan (RecoveryScan callback) { checkState(); ScanThread st = new ScanThread(_theImple, callback); st.start(); }
public RecoveryManagerStatus trySuspend(boolean async) { checkState(); PeriodicRecovery.Mode mode = _theImple.trySuspendScan(async); switch (mode) { case ENABLED: return RecoveryManagerStatus.ENABLED; case SUSPENDED: return RecoveryManagerStatus.SUSPENDED; case TERMINATED: return RecoveryManagerStatus.TERMINATED; default: throw new IllegalArgumentException("incompatible enum types"); } }
public final Vector<RecoveryModule> getModules () { checkState(); return _theImple.getModules(); }
public final void removeAllModules (boolean waitOnScan) { checkState(); _theImple.removeAllModules(waitOnScan); }
public final void removeModule (RecoveryModule module, boolean waitOnScan) { checkState(); _theImple.removeModule(module, waitOnScan); }
public final void addModule (RecoveryModule module) { checkState(); _theImple.addModule(module); }
/** * Start the recovery manager thread. * * @throws IllegalStateException if the recovery manager has been shutdown. */ public void startRecoveryManagerThread() { checkState(); _theImple.start() ; }
public void resume () { checkState(); _theImple.resumeScan(); }
public final void scan () { checkState(); _theImple.scan(); }