|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sleepycat.je.cleaner.BaseUtilizationTracker
com.sleepycat.je.cleaner.BaseLocalUtilizationTracker
abstract class BaseLocalUtilizationTracker
Shared implementation for all local utilization trackers. Per-database utilization info is tracked in a local map rather than in the live DatabaseImpl objects. The transferToUtilizationTracker method is called to transfer per-file and per-database info to the (global) UtilizationTracker.
Field Summary |
---|
Fields inherited from class com.sleepycat.je.cleaner.BaseUtilizationTracker |
---|
bytesSinceActivate, cleaner, env |
Constructor Summary | |
---|---|
BaseLocalUtilizationTracker(EnvironmentImpl env,
Map<Object,DbFileSummaryMap> dbMap)
Creates a local tracker with a map keyed by DatabaseId or DatabaseImpl. |
Method Summary | |
---|---|
(package private) abstract DatabaseImpl |
databaseKeyToDatabaseImpl(Object databaseKey)
Returns the DatabaseImpl from the database key, which is either the DatabaseId or DatabaseImpl. |
(package private) Map<Object,DbFileSummaryMap> |
getDatabaseMap()
Returns the map of databases; for use by subclasses. |
(package private) DbFileSummary |
getDbFileSummary(Object databaseKey,
long fileNum)
Allocates DbFileSummary information locally in this object rather than in the DatabaseImpl. |
(package private) abstract void |
releaseDatabaseImpl(DatabaseImpl db)
Must be called after calling databaseKeyToDatabaseImpl. |
(package private) void |
removeDbFileSummaries(Object databaseKey)
Deallocates all DbFileSummary objects for the given database key. |
void |
transferToUtilizationTracker(UtilizationTracker tracker)
Transfers counts and offsets from this local tracker to the given (global) UtilizationTracker and to the live DatabaseImpl objects. |
Methods inherited from class com.sleepycat.je.cleaner.BaseUtilizationTracker |
---|
close, countNew, countObsolete, countObsoleteDb, getEnvironment, getFileSummary, getTrackedFile, getTrackedFiles, isFileUncounted, isLNType, isNodeType, resetFile |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
BaseLocalUtilizationTracker(EnvironmentImpl env, Map<Object,DbFileSummaryMap> dbMap)
Method Detail |
---|
Map<Object,DbFileSummaryMap> getDatabaseMap()
public void transferToUtilizationTracker(UtilizationTracker tracker) throws DatabaseException
When called after recovery has finished, must be called under the log write latch.
DatabaseException
abstract DatabaseImpl databaseKeyToDatabaseImpl(Object databaseKey) throws DatabaseException
DatabaseException
abstract void releaseDatabaseImpl(DatabaseImpl db)
DbFileSummary getDbFileSummary(Object databaseKey, long fileNum)
getDbFileSummary
in class BaseUtilizationTracker
databaseKey
- is either a DatabaseId or DatabaseImpl depending on
whether called from the RecoveryUtilizationTracker or
LocalUtilizationTracker, respectively.
void removeDbFileSummaries(Object databaseKey)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |