|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sleepycat.je.cleaner.FileSummary
com.sleepycat.je.cleaner.TrackedFileSummary
public class TrackedFileSummary
Delta file summary info for a tracked file. Tracked files are managed by the UtilizationTracker.
The methods in this class for reading obsolete offsets may be used by multiple threads without synchronization even while another thread is adding offsets. This is possible because elements are never deleted from the lists. The thread adding obsolete offsets does so under the log write latch to prevent multiple threads from adding concurrently.
Field Summary |
---|
Fields inherited from class com.sleepycat.je.cleaner.FileSummary |
---|
obsoleteINCount, obsoleteLNCount, obsoleteLNSize, obsoleteLNSizeCounted, totalCount, totalINCount, totalINSize, totalLNCount, totalLNSize, totalSize |
Method Summary | |
---|---|
boolean |
getAllowFlush()
Returns whether this summary is allowed or prohibited from being flushed or evicted during cleaning. |
long |
getFileNumber()
Returns the file number being tracked. |
long[] |
getObsoleteOffsets()
Returns obsolete offsets as an array of longs, or null if none. |
void |
reset()
Overrides reset for a tracked file, and is called when a FileSummaryLN is written to the log. |
Methods inherited from class com.sleepycat.je.cleaner.FileSummary |
---|
add, dumpLog, getEntriesCounted, getLogSize, getNonObsoleteCount, getObsoleteINSize, getObsoleteLNSize, getObsoleteSize, getTransactionId, isEmpty, logicalEquals, readFromLog, toString, writeToLog |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public boolean getAllowFlush()
public long getFileNumber()
public void reset()
Must be called under the log write latch.
reset
in class FileSummary
public long[] getObsoleteOffsets()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |