|
||||||||||
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
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.
Nested Class Summary | |
static class |
Evictor.EvictProfile
|
Field Summary |
Fields inherited from class com.sleepycat.je.utilint.DaemonThread |
name, nWakeupRequests, workQueue, workQueueLatch |
Constructor Summary | |
Evictor(EnvironmentImpl envImpl,
String name,
int nodeScanPercentage,
int evictionBatchPercentage)
|
Method Summary | |
void |
addToQueue(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 |
doEvict()
May be called by the evictor thread on wakeup or programatically. |
(package private) boolean |
isRunnable()
Return true if eviction should happen. |
void |
loadStats(StatsConfig config,
EnvironmentStats stat)
Load stats. |
protected int |
nDeadlockRetries()
Return the number of retries when a deadlock exception occurs. |
void |
onWakeup()
Called whenever the daemon thread wakes up from a sleep. |
SortedSet |
selectINSet(INList inList)
Select a set of nodes to evict. |
String |
toString()
|
Methods inherited from class com.sleepycat.je.utilint.DaemonThread |
addToQueueAlreadyLatched, getNWakeupRequests, getQueueSize, getThread, isShutdownRequested, requestShutdown, run, runOrPause, shutdown, wakeup |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Evictor(EnvironmentImpl envImpl, String name, int nodeScanPercentage, int evictionBatchPercentage) throws DatabaseException
Method Detail |
public String toString()
toString
in class DaemonThread
public void addToQueue(Object o) throws DatabaseException
addToQueue
in class DaemonThread
DatabaseException
public void loadStats(StatsConfig config, EnvironmentStats stat) throws DatabaseException
DatabaseException
public void clearEnv()
protected int nDeadlockRetries() throws DatabaseException
nDeadlockRetries
in class DaemonThread
DatabaseException
public void alert()
public void onWakeup() throws DatabaseException
onWakeup
in class DaemonThread
DatabaseException
public void doEvict() throws DatabaseException
DatabaseException
boolean isRunnable() throws DatabaseException
DatabaseException
public SortedSet selectINSet(INList inList) throws DatabaseException
DatabaseException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |