public class TrackedFileSummary extends FileSummary
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.
maxLNSize, obsoleteINCount, obsoleteLNCount, obsoleteLNSize, obsoleteLNSizeCounted, totalCount, totalINCount, totalINSize, totalLNCount, totalLNSize, totalSize
Constructor and Description |
---|
TrackedFileSummary(BaseUtilizationTracker tracker,
long fileNum,
boolean trackDetail)
Creates an empty tracked summary.
|
Modifier and Type | Method and Description |
---|---|
(package private) void |
addTrackedSummary(TrackedFileSummary other)
Adds the obsolete offsets as well as the totals of the given object.
|
(package private) void |
close()
Update memory budgets when this tracker is closed and will never be
accessed again.
|
(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,
boolean checkDupOffsets)
Tracks the given offset as obsolete or non-obsolete.
|
add, clone, dumpLog, getAvgObsoleteLNSizeNotCounted, getEntriesCounted, getLogSize, getMaxObsoleteLNSize, getMaxObsoleteSize, getNonObsoleteCount, getObsoleteINSize, getObsoleteLNSize, getObsoleteLNSize, getObsoleteSize, getObsoleteSize, getTransactionId, isEmpty, logicalEquals, readFromLog, toString, utilization, utilization, utilization, writeToLog
TrackedFileSummary(BaseUtilizationTracker tracker, long fileNum, boolean trackDetail)
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, boolean checkDupOffsets)
Must be called under the log write latch.
void addTrackedSummary(TrackedFileSummary other)
public long[] getObsoleteOffsets()
boolean containsObsoleteOffset(long offset)
void close()
Copyright (c) 2004-2012 Oracle. All rights reserved.