|
|||||||||
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, totalCount, totalINCount, totalINSize, totalLNCount, totalLNSize, totalSize |
Constructor Summary | |
---|---|
TrackedFileSummary(UtilizationTracker tracker,
long fileNum,
boolean trackDetail)
Creates an empty tracked summary. |
Method Summary | |
---|---|
(package private) void |
addTrackedSummary(TrackedFileSummary other)
Adds the obsolete offsets as well as the totals of the given object. |
(package private) boolean |
containsObsoleteOffset(long offset)
Returns whether the given offset is present in the tracked offsets. |
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. |
(package private) int |
getMemorySize()
Return the total memory size for this object. |
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. |
(package private) void |
setAllowFlush(boolean allowFlush)
Allows or prohibits this summary from being flushed or evicted during cleaning. |
(package private) void |
trackObsolete(long offset)
Tracks the given offset as obsolete or non-obsolete. |
Methods inherited from class com.sleepycat.je.cleaner.FileSummary |
---|
add, dumpLog, getEntriesCounted, getLogSize, getNonObsoleteCount, getObsoleteINSize, getObsoleteLNSize, getObsoleteSize, getTransactionId, isEmpty, logEntryIsTransactional, readFromLog, toString, writeToLog |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
TrackedFileSummary(UtilizationTracker tracker, long fileNum, boolean trackDetail)
Method Detail |
---|
public boolean getAllowFlush()
void setAllowFlush(boolean allowFlush)
public long getFileNumber()
int getMemorySize()
public void reset()
Must be called under the log write latch.
reset
in class FileSummary
void trackObsolete(long offset)
Must be called under the log write latch.
void addTrackedSummary(TrackedFileSummary other)
public long[] getObsoleteOffsets()
boolean containsObsoleteOffset(long offset)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |