com.sleepycat.je.recovery
Class DirtyINMap

java.lang.Object
  extended by com.sleepycat.je.recovery.DirtyINMap

 class DirtyINMap
extends java.lang.Object

Map of Integer->Set level->Set of checkpoint references


Constructor Summary
DirtyINMap(EnvironmentImpl envImpl)
           
 
Method Summary
(package private)  void addCostToMemoryBudget()
           
(package private)  void addDirtyIN(IN in)
          Add a node to the dirty map.
(package private)  int getHighestLevel()
           
(package private)  java.lang.Integer getLowestLevelSet()
          Get the lowest level currently stored in the map.
(package private)  int getNumLevels()
           
(package private)  java.util.Set getSet(java.lang.Integer level)
          Get the set corresponding to this level.
(package private)  void removeCostFromMemoryBudget()
           
(package private)  void removeSet(java.lang.Integer level)
          Get the set corresponding to this level.
(package private)  void selectDirtyINsForCheckpoint(java.util.Set mustSyncSet)
          Scan the INList for all dirty INs, excluding deferred write INs that are not in the must-sync set.
(package private)  void selectDirtyINsForDb(DatabaseImpl dbImpl)
          Scan the INList for all dirty INs for a given database.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DirtyINMap

DirtyINMap(EnvironmentImpl envImpl)
Method Detail

selectDirtyINsForCheckpoint

void selectDirtyINsForCheckpoint(java.util.Set mustSyncSet)
                           throws DatabaseException
Scan the INList for all dirty INs, excluding deferred write INs that are not in the must-sync set. Save them in a tree-level ordered map for level ordered flushing. Take this opportunity to reset the memory budget tree value.

Throws:
DatabaseException

selectDirtyINsForDb

void selectDirtyINsForDb(DatabaseImpl dbImpl)
                   throws DatabaseException
Scan the INList for all dirty INs for a given database. Arrange them in level sorted map for level ordered flushing.

Throws:
DatabaseException

getNumLevels

int getNumLevels()

getHighestLevel

int getHighestLevel()

addCostToMemoryBudget

void addCostToMemoryBudget()

removeCostFromMemoryBudget

void removeCostFromMemoryBudget()

addDirtyIN

void addDirtyIN(IN in)
Add a node to the dirty map. The dirty map is keyed by level (Integers) and holds sets of IN references.


getLowestLevelSet

java.lang.Integer getLowestLevelSet()
Get the lowest level currently stored in the map.


getSet

java.util.Set getSet(java.lang.Integer level)
Get the set corresponding to this level.


removeSet

void removeSet(java.lang.Integer level)
Get the set corresponding to this level.



Copyright 2004-2006 Sleepycat, Inc. All Rights Reserved.