com.sleepycat.je.evictor
Class PrivateSelector

java.lang.Object
  extended by com.sleepycat.je.evictor.TargetSelector
      extended by com.sleepycat.je.evictor.PrivateSelector

 class PrivateSelector
extends TargetSelector

The standard eviction selector 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.TargetSelector
TargetSelector.EvictProfile, TargetSelector.ScanInfo, TargetSelector.SetupInfo
 
Field Summary
 
Fields inherited from class com.sleepycat.je.evictor.TargetSelector
stats
 
Constructor Summary
PrivateSelector(EnvironmentImpl envImpl)
           
 
Method Summary
 void addEnvironment(EnvironmentImpl unused)
          Only supported by SharedSelector.
 boolean checkEnv(EnvironmentImpl env)
          Only supported by SharedSelector.
(package private)  StatGroup getINListStats(StatsConfig config)
          Return stats for the single INList covered by this evictor.
(package private)  IN getNextIN()
          Returns the next IN, wrapping if necessary.
(package private)  Iterator<IN> getScanIterator()
           
 StatGroup loadStats(StatsConfig config)
           
 void noteINListChange(int nINs)
          Do nothing.
 void removeEnvironment(EnvironmentImpl unused)
          Only supported by SharedSelector.
(package private)  void setScanIterator(Iterator<IN> iter)
           
(package private)  TargetSelector.SetupInfo startBatch(boolean doSpecialEviction)
          Initializes the iterator, and performs special eviction once per batch.
 
Methods inherited from class com.sleepycat.je.evictor.TargetSelector
normalizeLevel, selectIN
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrivateSelector

public PrivateSelector(EnvironmentImpl envImpl)
                throws DatabaseException
Throws:
DatabaseException
Method Detail

loadStats

public StatGroup loadStats(StatsConfig config)
Overrides:
loadStats in class TargetSelector

noteINListChange

public void noteINListChange(int nINs)
Do nothing.

Specified by:
noteINListChange in class TargetSelector

startBatch

TargetSelector.SetupInfo startBatch(boolean doSpecialEviction)
                              throws DatabaseException
Initializes the iterator, and performs special eviction once per batch.

Specified by:
startBatch in class TargetSelector
Parameters:
doSpecialEviction - 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 this
Throws:
DatabaseException

getNextIN

IN getNextIN()
Returns the next IN, wrapping if necessary.

Specified by:
getNextIN in class TargetSelector

getINListStats

StatGroup getINListStats(StatsConfig config)
Return stats for the single INList covered by this evictor.

Specified by:
getINListStats in class TargetSelector

getScanIterator

Iterator<IN> getScanIterator()
Specified by:
getScanIterator in class TargetSelector

setScanIterator

void setScanIterator(Iterator<IN> iter)
Specified by:
setScanIterator in class TargetSelector

addEnvironment

public void addEnvironment(EnvironmentImpl unused)
Only supported by SharedSelector.

Specified by:
addEnvironment in class TargetSelector

removeEnvironment

public void removeEnvironment(EnvironmentImpl unused)
Only supported by SharedSelector.

Specified by:
removeEnvironment in class TargetSelector

checkEnv

public boolean checkEnv(EnvironmentImpl env)
Only supported by SharedSelector.

Specified by:
checkEnv in class TargetSelector


Copyright (c) 2004-2010 Oracle. All rights reserved.