|
|||||||||
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
com.sleepycat.je.evictor.PrivateEvictor
public class PrivateEvictor
The standard Evictor that operates on the INList for a single environment. A single iterator over the INList is used to implement getNextIN.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.sleepycat.je.evictor.Evictor |
---|
Evictor.EvictionSource, Evictor.EvictProfile |
Field Summary |
---|
Fields inherited from class com.sleepycat.je.evictor.Evictor |
---|
evictProfile, sharedCacheEnvs |
Fields inherited from class com.sleepycat.je.utilint.DaemonThread |
---|
logger, name, nWakeupRequests, stifleExceptionChatter |
Constructor Summary | |
---|---|
PrivateEvictor(EnvironmentImpl envImpl,
long wakeupInterval,
String name)
|
Method Summary | |
---|---|
void |
addEnvironment(EnvironmentImpl unused)
Only supported by SharedEvictor. |
boolean |
checkEnv(EnvironmentImpl env)
Only supported by SharedEvictor. |
void |
clearEnv()
Standard daemon method to set envImpl to null. |
(package private) StatGroup |
getINListStats(StatsConfig config)
Return stats for the single INList covered by this evictor. |
(package private) int |
getMaxINsPerBatch()
Returns the simple INList size. |
(package private) IN |
getNextIN()
Returns the next IN, wrapping if necessary. |
(package private) Iterator<IN> |
getScanIterator()
|
StatGroup |
loadStats(StatsConfig config)
Load stats. |
void |
noteINListChange(int nINs)
Do nothing. |
void |
onWakeup()
Called whenever the daemon thread wakes up from a sleep. |
void |
removeEnvironment(EnvironmentImpl unused)
Only supported by SharedEvictor. |
(package private) void |
setScanIterator(Iterator<IN> iter)
|
(package private) long |
startBatch()
Initializes the iterator, and performs special eviction once per batch. |
Methods inherited from class com.sleepycat.je.evictor.Evictor |
---|
alert, doCriticalEviction, doEvict, evictBatch, evictIN, incBINEvictStats, incBINFetchStats, incINEvictStats, incINFetchStats, incLNFetchStats, isCacheFull, nDeadlockRetries, normalizeLevel, setPreEvictINHook, setRunnableHook, wasCacheEverFull |
Methods inherited from class com.sleepycat.je.utilint.DaemonThread |
---|
checkErrorListener, createLogger, 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 |
Constructor Detail |
---|
public PrivateEvictor(EnvironmentImpl envImpl, long wakeupInterval, String name) throws DatabaseException
DatabaseException
Method Detail |
---|
public StatGroup loadStats(StatsConfig config)
Evictor
loadStats
in class Evictor
public void onWakeup() throws DatabaseException
Evictor
onWakeup
in class Evictor
DatabaseException
public void clearEnv()
clearEnv
in class Evictor
public void noteINListChange(int nINs)
noteINListChange
in class Evictor
public void addEnvironment(EnvironmentImpl unused)
addEnvironment
in class Evictor
public void removeEnvironment(EnvironmentImpl unused)
removeEnvironment
in class Evictor
public boolean checkEnv(EnvironmentImpl env)
checkEnv
in class Evictor
long startBatch() throws DatabaseException
startBatch
in class Evictor
DatabaseException
int getMaxINsPerBatch()
getMaxINsPerBatch
in class Evictor
IN getNextIN()
getNextIN
in class Evictor
StatGroup getINListStats(StatsConfig config)
getINListStats
in class Evictor
Iterator<IN> getScanIterator()
getScanIterator
in class Evictor
void setScanIterator(Iterator<IN> iter)
setScanIterator
in class Evictor
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |