|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sleepycat.je.utilint.DaemonThread
com.sleepycat.je.evictor.Evictor
public abstract class Evictor
The Evictor looks through the INList for IN's and BIN's that are worthy of eviction. Once the nodes are selected, it removes all references to them so that they can be GC'd by the JVM.
Field Summary | |
---|---|
static java.lang.String |
SOURCE_CRITICAL
|
static java.lang.String |
SOURCE_DAEMON
|
static java.lang.String |
SOURCE_MANUAL
|
Fields inherited from class com.sleepycat.je.utilint.DaemonThread |
---|
name, nWakeupRequests, stifleExceptionChatter |
Method Summary | |
---|---|
abstract void |
addEnvironment(EnvironmentImpl envImpl)
Only supported by SharedEvictor. |
void |
alert()
Wakeup the evictor only if it's not already active. |
abstract boolean |
checkEnvs(java.util.Set<EnvironmentImpl> envs)
Only supported by SharedEvictor. |
abstract void |
clearEnv()
Standard daemon method to set envImpl to null. |
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 long |
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. |
abstract void |
noteINListChange(int nINs)
Called whenever INs are added to, or removed from, the INList. |
void |
onWakeup()
Called whenever the daemon thread wakes up from a sleep. |
abstract void |
removeEnvironment(EnvironmentImpl envImpl)
Only supported by SharedEvictor. |
void |
setRunnableHook(TestHook hook)
|
Methods inherited from class com.sleepycat.je.utilint.DaemonThread |
---|
checkErrorListener, getExceptionListener, getNWakeupRequests, getThread, isPaused, isRunning, isShutdownRequested, requestShutdown, run, runOrPause, setExceptionListener, shutdown, toString, wakeup |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String SOURCE_DAEMON
public static final java.lang.String SOURCE_MANUAL
public static final java.lang.String SOURCE_CRITICAL
Method Detail |
---|
public void loadStats(StatsConfig config, EnvironmentStats stat) throws DatabaseException
DatabaseException
protected long nDeadlockRetries() throws DatabaseException
nDeadlockRetries
in class DaemonThread
DatabaseException
public void alert()
public void onWakeup() throws DatabaseException
onWakeup
in class DaemonThread
DatabaseException
public void doEvict(java.lang.String source) throws DatabaseException
DatabaseException
public void doCriticalEviction(boolean backgroundIO) throws DatabaseException
DatabaseException
public int normalizeLevel(IN in, int evictType)
public void setRunnableHook(TestHook hook)
public abstract void clearEnv()
public abstract void noteINListChange(int nINs)
public abstract void addEnvironment(EnvironmentImpl envImpl)
public abstract void removeEnvironment(EnvironmentImpl envImpl)
public abstract boolean checkEnvs(java.util.Set<EnvironmentImpl> envs)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |