com.sleepycat.je.evictor
Class PrivateEvictor

java.lang.Object
  extended by com.sleepycat.je.utilint.DaemonThread
      extended by com.sleepycat.je.evictor.Evictor
          extended by com.sleepycat.je.evictor.PrivateEvictor
All Implemented Interfaces:
DaemonRunner, java.lang.Runnable

public class PrivateEvictor
extends Evictor

The standard Evictor that operates on the INList for a single environment. A single iterator over the INList is used to implement getNextIN.


Field Summary
 
Fields inherited from class com.sleepycat.je.evictor.Evictor
SOURCE_CRITICAL, SOURCE_DAEMON, SOURCE_MANUAL
 
Fields inherited from class com.sleepycat.je.utilint.DaemonThread
name, nWakeupRequests, stifleExceptionChatter
 
Constructor Summary
PrivateEvictor(EnvironmentImpl envImpl, java.lang.String name)
           
 
Method Summary
 void addEnvironment(EnvironmentImpl envImpl)
          Only supported by SharedEvictor.
 boolean checkEnvs(java.util.Set<EnvironmentImpl> envs)
          Only supported by SharedEvictor.
 void clearEnv()
          Standard daemon method to set envImpl to null.
 void loadStats(StatsConfig config, EnvironmentStats stat)
          Load stats.
 void noteINListChange(int nINs)
          Do nothing.
 void onWakeup()
          Called whenever the daemon thread wakes up from a sleep.
 void removeEnvironment(EnvironmentImpl envImpl)
          Only supported by SharedEvictor.
 
Methods inherited from class com.sleepycat.je.evictor.Evictor
alert, doCriticalEviction, doEvict, nDeadlockRetries, normalizeLevel, setRunnableHook
 
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
 

Constructor Detail

PrivateEvictor

public PrivateEvictor(EnvironmentImpl envImpl,
                      java.lang.String name)
               throws DatabaseException
Throws:
DatabaseException
Method Detail

loadStats

public void loadStats(StatsConfig config,
                      EnvironmentStats stat)
               throws DatabaseException
Description copied from class: Evictor
Load stats.

Overrides:
loadStats in class Evictor
Throws:
DatabaseException

onWakeup

public void onWakeup()
              throws DatabaseException
Description copied from class: Evictor
Called whenever the daemon thread wakes up from a sleep.

Overrides:
onWakeup in class Evictor
Throws:
DatabaseException

clearEnv

public void clearEnv()
Standard daemon method to set envImpl to null.

Specified by:
clearEnv in class Evictor

noteINListChange

public void noteINListChange(int nINs)
Do nothing.

Specified by:
noteINListChange in class Evictor

addEnvironment

public void addEnvironment(EnvironmentImpl envImpl)
Only supported by SharedEvictor.

Specified by:
addEnvironment in class Evictor

removeEnvironment

public void removeEnvironment(EnvironmentImpl envImpl)
Only supported by SharedEvictor.

Specified by:
removeEnvironment in class Evictor

checkEnvs

public boolean checkEnvs(java.util.Set<EnvironmentImpl> envs)
Only supported by SharedEvictor.

Specified by:
checkEnvs in class Evictor