class SharedSelector extends TargetSelector
TargetSelector.EvictProfile, TargetSelector.ScanInfo, TargetSelector.SetupInfostats| Constructor and Description |
|---|
SharedSelector(EnvironmentImpl envImpl) |
| 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 |
checkEnv(EnvironmentImpl targetEnvImpl)
Returns true if the given environment is present in the set of subject
environments.
|
(package private) StatGroup |
getINListStats(StatsConfig config)
Return stats for the multiple INLists covered by this evictor.
|
(package private) IN |
getNextIN()
Returns the next IN, wrapping if necessary.
|
(package private) java.util.Iterator<IN> |
getScanIterator() |
StatGroup |
loadStats(StatsConfig config) |
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) TargetSelector.SetupInfo |
startBatch(boolean doSpecialEviction)
Initializes the sizes if needed, and performs special eviction for one
environment in rotatation.
|
normalizeLevel, selectINpublic SharedSelector(EnvironmentImpl envImpl) throws DatabaseException
DatabaseExceptionStatGroup getINListStats(StatsConfig config)
getINListStats in class TargetSelectorpublic StatGroup loadStats(StatsConfig config)
loadStats in class TargetSelectorpublic void noteINListChange(int nINs)
noteINListChange in class TargetSelectorpublic void addEnvironment(EnvironmentImpl env)
addEnvironment in class TargetSelectorpublic void removeEnvironment(EnvironmentImpl env)
removeEnvironment in class TargetSelectorpublic boolean checkEnv(EnvironmentImpl targetEnvImpl)
checkEnv in class TargetSelectorTargetSelector.SetupInfo startBatch(boolean doSpecialEviction) throws DatabaseException
startBatch in class TargetSelectordoSpecialEviction - Do non-tree eviction, such as flushing the
UtilizationProfile. Since special eviction is serialized, and does
require I/O, some callers may not want to be blocked doing thisDatabaseExceptionIN getNextIN()
getNextIN in class TargetSelectorjava.util.Iterator<IN> getScanIterator()
getScanIterator in class TargetSelectorvoid setScanIterator(java.util.Iterator<IN> iter)
setScanIterator in class TargetSelectorCopyright (c) 2004-2012 Oracle. All rights reserved.