public class SharedEvictor extends Evictor
SOURCE_CRITICAL, SOURCE_DAEMON, SOURCE_MANUAL
name, nWakeupRequests, stifleExceptionChatter
Constructor and Description |
---|
SharedEvictor(EnvironmentImpl env,
java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
void |
addEnvironment(EnvironmentImpl env)
Synchronized so that the set of environments cannot be changed in the
middle of an eviction (which is also synchronized).
|
boolean |
checkEnvs(java.util.Set<EnvironmentImpl> envs)
Returns true if the given set of environments matches the set of subject
environments.
|
void |
clearEnv()
Only supported by PrivateEvictor.
|
void |
loadStats(StatsConfig config,
EnvironmentStats stat)
Load stats.
|
void |
noteINListChange(int nINs)
After 1/INIT_SIZE_THRESHOLD of all INs have been changed, reinitialize
the sizes.
|
void |
removeEnvironment(EnvironmentImpl env)
Synchronized so that the set of environments cannot be changed in the
middle of an eviction (which is also synchronized).
|
alert, doCriticalEviction, doEvict, nDeadlockRetries, normalizeLevel, onWakeup, setRunnableHook
checkErrorListener, getExceptionListener, getNWakeupRequests, getThread, isPaused, isRunning, isShutdownRequested, requestShutdown, run, runOrPause, setExceptionListener, shutdown, toString, wakeup
public SharedEvictor(EnvironmentImpl env, java.lang.String name) throws DatabaseException
DatabaseException
public void loadStats(StatsConfig config, EnvironmentStats stat) throws DatabaseException
Evictor
loadStats
in class Evictor
DatabaseException
public void clearEnv()
public void noteINListChange(int nINs)
noteINListChange
in class Evictor
public void addEnvironment(EnvironmentImpl env)
addEnvironment
in class Evictor
public void removeEnvironment(EnvironmentImpl env)
removeEnvironment
in class Evictor
public boolean checkEnvs(java.util.Set<EnvironmentImpl> envs)