public class ReservedFilesAutoRepair extends StoppableThread
Thread.State, Thread.UncaughtExceptionHandler| Modifier and Type | Field and Description |
|---|---|
static int |
START_DELAY_S |
envImplMAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Constructor and Description |
|---|
ReservedFilesAutoRepair(EnvironmentImpl envImpl) |
| Modifier and Type | Method and Description |
|---|---|
Logger |
getLogger() |
protected int |
initiateSoftShutdown()
Threads that use shutdownThread() must define this method.
|
boolean |
isCompleted() |
boolean |
isRunning() |
void |
requestShutdown() |
void |
run() |
boolean |
startOrCheck(DbConfigManager configMgr)
Returns true if this thread will perform auto-repair, or false if the
background DataVerifier should be configured as usual.
|
cleanup, getSavedShutdownException, getTotalCpuTime, getTotalUserTime, handleUncaughtException, isShutdown, saveShutdownException, shutdownDone, shutdownThreadactiveCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yieldpublic ReservedFilesAutoRepair(EnvironmentImpl envImpl)
public boolean startOrCheck(DbConfigManager configMgr)
If true is returned, the background DataVerifier will be configured as usual by this thread after the auto-repair is complete.
This method's implementation is fairly simple due to the following:
EnvironmentImpl.doSetMutableConfig(com.sleepycat.je.EnvironmentMutableConfig), is
synchronized.IllegalArgumentException - if the repair param is invalid.public boolean isCompleted()
public boolean isRunning()
public Logger getLogger()
getLogger in class StoppableThreadpublic void requestShutdown()
protected int initiateSoftShutdown()
StoppableThreadinitiateSoftShutdown in class StoppableThreadCopyright © 2024. All rights reserved.