Refine search
private RecoveryManager (int mode) { if ((mode == RecoveryManager.INDIRECT_MANAGEMENT) && !delayRecoveryManagerThread) _theImple = new RecoveryManagerImple(true); else _theImple = new RecoveryManagerImple(false); _mode = mode; }
/** * Force a recovery scan now. This is a blocking operation * and will only return once the recovery scan has completed. * * @throws IllegalStateException if the recovery manager has been shutdown. */ public final void scan () { checkState(); _theImple.scan(); }
/** * Add a recovery module to the system. * * @param module module The module to add. * @throws IllegalStateException if the recovery manager has been shutdown. */ public final void addModule (RecoveryModule module) { checkState(); _theImple.addModule(module); }
if (useListener && isRecoveryManagerEndPointInUse()) tsLogger.i18NLogger.fatal_recovery_fail(RecoveryManager.getRecoveryManagerHost().getHostAddress(), Integer.toString(RecoveryManager.getRecoveryManagerPort()));
/** * @throws IllegalStateException if the recovery manager has been shutdown. */ public void resume () { checkState(); _theImple.resumeScan(); }
/** * Remove a recovery module from the system. * * @param module The module to remove. * @param waitOnScan true if the remove operation should wait for any in-progress scan to complete * @throws IllegalStateException if the recovery manager has been shutdown. */ public final void removeModule (RecoveryModule module, boolean waitOnScan) { checkState(); _theImple.removeModule(module, waitOnScan); }
/** * Start the recovery manager thread. * * @throws IllegalStateException if the recovery manager has been shutdown. */ public void startRecoveryManagerThread() { checkState(); _theImple.start() ; }
/** * Obtain a snapshot list of available recovery modules. * * @return a snapshot list of the currently installed recovery modules * @throws IllegalStateException if the recovery manager has been shutdown. */ public final Vector<RecoveryModule> getModules () { checkState(); return _theImple.getModules(); }
/** * Remove all modules. * * WARNING: Use with extreme care as this will stop recovery from doing anything! */ public final void removeAllModules (boolean waitOnScan) { checkState(); _theImple.removeAllModules(waitOnScan); }
/** * Stop the periodic recovery manager. * @param async false means wait 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 (boolean async) { checkState(); _theImple.stop(async); }
public void run () { if (_theImple != null) { _theImple.scan(); if (_callback != null) _callback.completed(); } }
if (useListener && isRecoveryManagerEndPointInUse()) tsLogger.i18NLogger.fatal_recovery_fail(RecoveryManager.getRecoveryManagerHost().getHostAddress(), Integer.toString(RecoveryManager.getRecoveryManagerPort()));
/** * @throws IllegalStateException if the recovery manager has been shutdown. */ public void resume () { checkState(); _theImple.resumeScan(); }
/** * Remove a recovery module from the system. * * @param module The module to remove. * @param waitOnScan true if the remove operation should wait for any in-progress scan to complete * @throws IllegalStateException if the recovery manager has been shutdown. */ public final void removeModule (RecoveryModule module, boolean waitOnScan) { checkState(); _theImple.removeModule(module, waitOnScan); }
/** * Start the recovery manager thread. * * @throws IllegalStateException if the recovery manager has been shutdown. */ public void startRecoveryManagerThread() { checkState(); _theImple.start() ; }
/** * Obtain a snapshot list of available recovery modules. * * @return a snapshot list of the currently installed recovery modules * @throws IllegalStateException if the recovery manager has been shutdown. */ public final Vector<RecoveryModule> getModules () { checkState(); return _theImple.getModules(); }
/** * Remove all modules. * * WARNING: Use with extreme care as this will stop recovery from doing anything! */ public final void removeAllModules (boolean waitOnScan) { checkState(); _theImple.removeAllModules(waitOnScan); }
/** * Terminate and cleanup the recovery manager. There is no going back from this. Can be called * synchronous or asynchronously. If you have any intention of restarting the recovery manager * later then you MUST use the async=false option. * * @param async false means wait for any recovery scan in progress to complete. * @throws IllegalStateException if the recovery manager has been shutdown. */ public final synchronized void terminate (boolean async) { checkState(); _theImple.stop(async); _theImple = null; }
if (useListener && isRecoveryManagerEndPointInUse()) tsLogger.i18NLogger.fatal_recovery_fail(RecoveryManager.getRecoveryManagerHost().getHostAddress(), Integer.toString(RecoveryManager.getRecoveryManagerPort()));
/** * Force a recovery scan now. This is a blocking operation * and will only return once the recovery scan has completed. * * @throws IllegalStateException if the recovery manager has been shutdown. */ public final void scan () { checkState(); _theImple.scan(); }