public class RecoveryManagerImple extends Object
Constructor and Description |
---|
RecoveryManagerImple(boolean threaded)
Does the work of setting up crash recovery.
|
Modifier and Type | Method and Description |
---|---|
void |
addModule(RecoveryModule module) |
Vector<RecoveryModule> |
getModules() |
void |
removeAllModules(boolean waitOnScan) |
void |
removeModule(RecoveryModule module,
boolean waitOnScan) |
void |
resumeScan() |
void |
scan() |
void |
start() |
void |
stop(boolean async)
stop the recovery manager
|
PeriodicRecovery.Mode |
trySuspendScan(boolean async)
Suspend the recovery manager.
|
void |
waitForTermination()
wait for the recovery implementation to be shut down.
|
public RecoveryManagerImple(boolean threaded)
threaded
- if true
then the manager will start a separate
thread to run recovery periodically.public final void scan()
public final void addModule(RecoveryModule module)
public final void removeModule(RecoveryModule module, boolean waitOnScan)
public final void removeAllModules(boolean waitOnScan)
public final Vector<RecoveryModule> getModules()
public void start()
public void stop(boolean async)
async
- false means wait for any recovery scan in progress to completepublic PeriodicRecovery.Mode trySuspendScan(boolean async)
async
- false means wait for the recovery manager to finish any scans before returning.public void resumeScan()
public void waitForTermination()
Copyright © 2021 JBoss by Red Hat. All rights reserved.