public class Evictor extends DaemonThread
| Modifier and Type | Class and Description |
|---|---|
static class |
Evictor.EvictProfile |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
SOURCE_CRITICAL |
static java.lang.String |
SOURCE_DAEMON |
static java.lang.String |
SOURCE_MANUAL |
name, nWakeupRequests, stifleExceptionChatter, workQueue, workQueueLatch| Constructor and Description |
|---|
Evictor(EnvironmentImpl envImpl,
java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
addToQueue(java.lang.Object o)
Evictor doesn't have a work queue so just throw an exception if it's
ever called.
|
void |
alert()
Wakeup the evictor only if it's not already active.
|
void |
clearEnv() |
void |
doCriticalEviction(boolean backgroundIO)
Do a check on whether synchronous eviction is needed.
|
void |
doEvict(java.lang.String source)
May be called by the evictor thread on wakeup or programatically.
|
void |
loadStats(StatsConfig config,
EnvironmentStats stat)
Load stats.
|
protected int |
nDeadlockRetries()
Return the number of retries when a deadlock exception occurs.
|
int |
normalizeLevel(IN in,
int evictType)
Normalize the tree level of the given IN.
|
void |
onWakeup()
Called whenever the daemon thread wakes up from a sleep.
|
void |
setRunnableHook(TestHook hook) |
addToQueueAlreadyLatched, getNWakeupRequests, getQueueSize, getThread, isPaused, isRunning, isShutdownRequested, requestShutdown, run, runOrPause, shutdown, toString, wakeuppublic static final java.lang.String SOURCE_DAEMON
public static final java.lang.String SOURCE_MANUAL
public static final java.lang.String SOURCE_CRITICAL
public Evictor(EnvironmentImpl envImpl, java.lang.String name) throws DatabaseException
DatabaseExceptionpublic void addToQueue(java.lang.Object o)
throws DatabaseException
addToQueue in class DaemonThreadDatabaseExceptionpublic void loadStats(StatsConfig config, EnvironmentStats stat) throws DatabaseException
DatabaseExceptionpublic void clearEnv()
protected int nDeadlockRetries()
throws DatabaseException
nDeadlockRetries in class DaemonThreadDatabaseExceptionpublic void alert()
public void onWakeup()
throws DatabaseException
onWakeup in class DaemonThreadDatabaseExceptionpublic void doEvict(java.lang.String source)
throws DatabaseException
DatabaseExceptionpublic void doCriticalEviction(boolean backgroundIO)
throws DatabaseException
DatabaseExceptionpublic int normalizeLevel(IN in, int evictType)
public void setRunnableHook(TestHook hook)