com.sleepycat.je.cleaner
Class FileSummary

java.lang.Object
  extended bycom.sleepycat.je.cleaner.FileSummary
Direct Known Subclasses:
TrackedFileSummary

public class FileSummary
extends Object


Field Summary
 int obsoleteINCount
           
 int obsoleteLNCount
           
 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.
 int getLogSize()
           
 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(int fileIndex, UtilizationProfile profile)
          Returns an estimate of the total bytes that are obsolete.
 boolean isEmpty()
          Returns whether this summary contains any non-zero totals.
 void readFromLog(ByteBuffer buf)
           
 void reset()
          Reset all totals to zero.
 String toString()
           
 void writeToLog(ByteBuffer buf)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

totalCount

public int totalCount

totalSize

public int totalSize

totalINCount

public int totalINCount

totalINSize

public int totalINSize

totalLNCount

public int totalLNCount

totalLNSize

public int totalLNSize

obsoleteINCount

public int obsoleteINCount

obsoleteLNCount

public int obsoleteLNCount
Constructor Detail

FileSummary

public FileSummary()
Creates an empty summary.

Method Detail

isEmpty

public boolean isEmpty()
Returns whether this summary contains any non-zero totals.


getObsoleteLNSize

public int getObsoleteLNSize()
Returns the approximate byte size of all obsolete LN entries.


getObsoleteINSize

public int getObsoleteINSize()
Returns the approximate byte size of all obsolete IN entries.


getObsoleteSize

public int getObsoleteSize(int fileIndex,
                           UtilizationProfile profile)
                    throws DatabaseException
Returns an estimate of the total bytes that are obsolete.

Parameters:
fileIndex - file number from 0 to (nFiles - 1).
Throws:
DatabaseException

reset

public void reset()
Reset all totals to zero.


add

public void add(FileSummary o)
Add the totals of the given summary object to the totals of this object.


getLogSize

public int getLogSize()

writeToLog

public void writeToLog(ByteBuffer buf)

readFromLog

public void readFromLog(ByteBuffer buf)

toString

public String toString()


Copyright 2004 Sleepycat, Inc. All Rights Reserved.