class DirtyINMap
extends java.lang.Object
| Constructor and Description |
|---|
DirtyINMap(EnvironmentImpl envImpl) |
| Modifier and Type | Method and Description |
|---|---|
(package private) void |
addCostToMemoryBudget() |
(package private) java.lang.Integer |
addIN(IN in,
boolean updateMemoryBudget)
Add a node unconditionally to the dirty map.
|
(package private) boolean |
containsNode(java.lang.Integer level,
java.lang.Long nodeId) |
(package private) void |
flushMapLNs(long checkpointStart)
Flushes all saved dirty/temp MapLNs and clears the saved set.
|
(package private) void |
flushRoot(long checkpointStart)
Flushes the DB mapping tree root at the end of the checkpoint, if either
mapping DB is dirty and the root was not flushed previously during the
checkpoint.
|
(package private) java.util.Iterator<Checkpointer.CheckpointReference> |
getIterator(java.lang.Integer level)
Get an iterator over the references corresponding to the given level.
|
(package private) java.lang.Integer |
getLowestLevelSet()
Get the lowest level currently stored in the map.
|
(package private) int |
getNumLevels() |
(package private) void |
removeCostFromMemoryBudget() |
(package private) void |
removeLevel(java.lang.Integer level)
Removes the set corresponding to the given level.
|
(package private) Checkpointer.CheckpointReference |
removeNextNode(java.lang.Integer level) |
(package private) Checkpointer.CheckpointReference |
removeNode(java.lang.Integer level,
java.lang.Long nodeId) |
(package private) java.util.Map<DatabaseImpl,java.lang.Integer> |
selectDirtyINsForCheckpoint(boolean flushAll,
boolean flushExtraLevel)
Scan the INList for all dirty INs, excluding temp DB INs.
|
(package private) java.util.Map<DatabaseImpl,java.lang.Integer> |
selectDirtyINsForDbSync(DatabaseImpl dbImpl)
Scan the INList for all dirty INs for a given database.
|
DirtyINMap(EnvironmentImpl envImpl)
java.util.Map<DatabaseImpl,java.lang.Integer> selectDirtyINsForCheckpoint(boolean flushAll, boolean flushExtraLevel) throws DatabaseException
DatabaseExceptionjava.util.Map<DatabaseImpl,java.lang.Integer> selectDirtyINsForDbSync(DatabaseImpl dbImpl) throws DatabaseException
DatabaseExceptionint getNumLevels()
void addCostToMemoryBudget()
void removeCostFromMemoryBudget()
java.lang.Integer addIN(IN in, boolean updateMemoryBudget)
updateMemoryBudget - if true then update the memory budget as the
map is changed; if false then addCostToMemoryBudget must be called
later.java.lang.Integer getLowestLevelSet()
java.util.Iterator<Checkpointer.CheckpointReference> getIterator(java.lang.Integer level)
void removeLevel(java.lang.Integer level)
boolean containsNode(java.lang.Integer level,
java.lang.Long nodeId)
Checkpointer.CheckpointReference removeNode(java.lang.Integer level, java.lang.Long nodeId)
Checkpointer.CheckpointReference removeNextNode(java.lang.Integer level)
void flushMapLNs(long checkpointStart)
throws DatabaseException
If dirty, a MapLN must be flushed at each checkpoint to record updated utilization info in the checkpoint interval. If it is a temporary DB, the MapLN must be flushed because all temp DBs must be encountered by recovery so they can be removed if they were not closed (and removed) by the user.
checkpointStart - start LSN of the checkpoint in progress. To
reduce unnecessary logging, the MapLN is only flushed if it has not been
written since that LSN.DatabaseExceptionvoid flushRoot(long checkpointStart)
throws DatabaseException
checkpointStart - start LSN of the checkpoint in progress. To
reduce unnecessary logging, the Root is only flushed if it has not been
written since that LSN.DatabaseExceptionCopyright (c) 2004,2008 Oracle. All rights reserved.