|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sleepycat.je.cleaner.FileSummary
public class FileSummary
Per-file utilization counters. The UtilizationProfile stores a persistent map of file number to FileSummary.
Field Summary | |
---|---|
int |
obsoleteINCount
|
int |
obsoleteLNCount
|
int |
obsoleteLNSize
|
int |
obsoleteLNSizeCounted
|
int |
totalCount
|
int |
totalINCount
|
int |
totalINSize
|
int |
totalLNCount
|
int |
totalLNSize
|
int |
totalSize
|
Constructor Summary | |
---|---|
FileSummary()
Creates an empty summary. |
Method Summary | |
---|---|
void |
add(FileSummary o)
Add the totals of the given summary object to the totals of this object. |
void |
dumpLog(java.lang.StringBuffer buf,
boolean verbose)
Write the object into the string buffer for log dumping. |
int |
getEntriesCounted()
Returns the total number of entries counted. |
int |
getLogSize()
|
int |
getNonObsoleteCount()
Returns the number of non-obsolete LN and IN entries. |
int |
getObsoleteINSize()
Returns the approximate byte size of all obsolete IN entries. |
int |
getObsoleteLNSize()
Returns the approximate byte size of all obsolete LN entries. |
int |
getObsoleteSize()
Returns an estimate of the total bytes that are obsolete. |
long |
getTransactionId()
Never called. |
boolean |
isEmpty()
Returns whether this summary contains any non-zero totals. |
boolean |
logicalEquals(Loggable other)
|
void |
readFromLog(java.nio.ByteBuffer buf,
byte entryVersion)
Initialize this object from the data in itemBuf. |
void |
reset()
Reset all totals to zero. |
java.lang.String |
toString()
|
void |
writeToLog(java.nio.ByteBuffer buf)
Serialize this object into the buffer. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public int totalCount
public int totalSize
public int totalINCount
public int totalINSize
public int totalLNCount
public int totalLNSize
public int obsoleteINCount
public int obsoleteLNCount
public int obsoleteLNSize
public int obsoleteLNSizeCounted
Constructor Detail |
---|
public FileSummary()
Method Detail |
---|
public boolean isEmpty()
public int getObsoleteLNSize()
public int getObsoleteINSize()
public int getObsoleteSize() throws DatabaseException
DatabaseException
public int getEntriesCounted()
public int getNonObsoleteCount()
public void reset()
public void add(FileSummary o)
public int getLogSize()
getLogSize
in interface Loggable
Loggable.getLogSize()
public void writeToLog(java.nio.ByteBuffer buf)
Loggable
writeToLog
in interface Loggable
buf
- is the destination bufferLoggable.writeToLog(java.nio.ByteBuffer)
public void readFromLog(java.nio.ByteBuffer buf, byte entryVersion)
Loggable
readFromLog
in interface Loggable
Loggable.readFromLog(java.nio.ByteBuffer, byte)
public void dumpLog(java.lang.StringBuffer buf, boolean verbose)
Loggable
dumpLog
in interface Loggable
buf
- destination string bufferverbose
- if true, dump the full, verbose versionLoggable.dumpLog(java.lang.StringBuffer, boolean)
public long getTransactionId()
getTransactionId
in interface Loggable
Loggable.getTransactionId()
public boolean logicalEquals(Loggable other)
logicalEquals
in interface Loggable
Always return false, this item should never be compared.
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |