public class SharedEvictor extends Evictor
Evictor.EvictProfileevictProfile, SOURCE_CRITICAL, SOURCE_DAEMON, SOURCE_MANUALname, 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.
|
(package private) java.util.logging.Logger |
getLogger()
Currently returns null to disable logging in the SharedEvictor.
|
(package private) int |
getMaxINsPerBatch()
Returns the total of all INList sizes, as of the last time sizes were
initialized.
|
(package private) IN |
getNextIN()
Returns the next IN, wrapping if necessary.
|
(package private) java.util.Iterator<IN> |
getScanIterator() |
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).
|
(package private) void |
setScanIterator(java.util.Iterator<IN> iter) |
(package private) long |
startBatch()
Initializes the sizes if needed, and performs UtilizationTracker
eviction for one environment in rotatation.
|
alert, doCriticalEviction, doEvict, evictBatch, nDeadlockRetries, normalizeLevel, onWakeup, setRunnableHookcheckErrorListener, getExceptionListener, getNWakeupRequests, getThread, isPaused, isRunning, isShutdownRequested, requestShutdown, run, runOrPause, setExceptionListener, shutdown, toString, wakeuppublic SharedEvictor(EnvironmentImpl env, java.lang.String name) throws DatabaseException
DatabaseExceptionpublic void loadStats(StatsConfig config, EnvironmentStats stat) throws DatabaseException
EvictorloadStats in class EvictorDatabaseExceptionpublic void clearEnv()
public void noteINListChange(int nINs)
noteINListChange in class Evictorpublic void addEnvironment(EnvironmentImpl env)
addEnvironment in class Evictorpublic void removeEnvironment(EnvironmentImpl env)
removeEnvironment in class Evictorpublic boolean checkEnvs(java.util.Set<EnvironmentImpl> envs)
java.util.logging.Logger getLogger()
long startBatch()
throws DatabaseException
startBatch in class EvictorDatabaseExceptionint getMaxINsPerBatch()
getMaxINsPerBatch in class EvictorIN getNextIN()
java.util.Iterator<IN> getScanIterator()
getScanIterator in class Evictorvoid setScanIterator(java.util.Iterator<IN> iter)
setScanIterator in class EvictorCopyright (c) 2004,2008 Oracle. All rights reserved.