Method Summary |
|
synchronized void | addCleanedFile(Long fileNum, Set deferredWriteDbs) When cleaning is complete, move the file from the being-cleaned set to
the cleaned set. |
synchronized boolean | addPendingDB(DatabaseId dbId) Adds the given DatabaseId to the pending DB set. |
synchronized boolean | addPendingLN(LN ln, DatabaseId dbId, byte[] key, byte[] dupKey) Adds the given LN info to the pending LN set. |
synchronized Set | copySafeToDeleteFiles() Returns a copy of the safe-to-delete files. |
synchronized int | getBacklog() Returns the number of files waiting to-be-cleaned. |
synchronized CheckpointStartCleanerState | getFilesAtCheckpointStart() Returns a copy of the cleaned and fully-processed files at the time a
checkpoint starts. |
Set | getLowUtilizationFiles() Returns a read-only set of low utilization files that can be accessed
without synchronization. |
synchronized Set | getMustBeCleanedFiles() Returns a read-only copy of to-be-cleaned and being-cleaned files that
can be accessed without synchronization. |
synchronized DatabaseId[] | getPendingDBs() Returns an array of DatabaseIds for DBs that were pending deletion in a
prior cleaning attempt, or null if no DBs are pending. |
synchronized LNInfo[] | getPendingLNs() Returns an array of LNInfo for LNs that could not be migrated in a
prior cleaning attempt, or null if no LNs are pending. |
synchronized boolean | isFileCleaningInProgress(Long file) Returns whether the file is in any stage of the cleaning process. |
synchronized void | putBackFileForCleaning(Long fileNum) When file cleaning is aborted, move the file back from the being-cleaned
set to the to-be-cleaned set. |
synchronized void | removeAllFileReferences(Long file) Removes all references to a file. |
synchronized void | removeDeletedFile(Long fileNum) Removes file from the safe-to-delete set after the file itself has
finally been deleted. |
synchronized void | removePendingDB(DatabaseId dbId) Removes the DatabaseId from the pending DB set. |
synchronized void | removePendingLN(long nodeId) Removes the LN for the given node ID from the pending LN set. |
Long | selectFileForCleaning(UtilizationProfile profile, boolean forceCleaning, boolean calcLowUtilizationFiles, int maxBatchFiles) Returns the best file that qualifies for cleaning, or null if no file
qualifies. |
synchronized void | updateFilesAtCheckpointEnd(CheckpointStartCleanerState info) When a checkpoint is complete, move the previously cleaned and
fully-processed files to the checkpointed and safe-to-delete sets. |