com.sleepycat.je.cleaner
Class DbFileSummary

java.lang.Object
  extended by com.sleepycat.je.cleaner.DbFileSummary
All Implemented Interfaces:
Loggable

public class DbFileSummary
extends Object
implements Loggable

Per-DB-per-file utilization counters. The DatabaseImpl stores a persistent map of file number to DbFileSummary.


Field Summary
 int obsoleteINCount
           
 int obsoleteLNCount
           
 int obsoleteLNSize
           
 int obsoleteLNSizeCounted
           
 int totalINCount
           
 int totalINSize
           
 int totalLNCount
           
 int totalLNSize
           
 
Constructor Summary
DbFileSummary()
          Creates an empty summary.
 
Method Summary
 void add(DbFileSummary o)
          Add the totals of the given summary object to the totals of this object.
 void dumpLog(StringBuilder buf, boolean verbose)
          Write the object into the string buffer for log dumping.
 int getLogSize()
           
 long getTransactionId()
          Never called.
 boolean logicalEquals(Loggable other)
           
 void readFromLog(ByteBuffer buf, int entryTypeVersion)
          Initialize this object from the data in itemBuf.
 String toString()
           
 void writeToLog(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

totalINCount

public int totalINCount

totalINSize

public int totalINSize

totalLNCount

public int totalLNCount

totalLNSize

public int totalLNSize

obsoleteINCount

public int obsoleteINCount

obsoleteLNCount

public int obsoleteLNCount

obsoleteLNSize

public int obsoleteLNSize

obsoleteLNSizeCounted

public int obsoleteLNSizeCounted
Constructor Detail

DbFileSummary

public DbFileSummary()
Creates an empty summary.

Method Detail

add

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


getLogSize

public int getLogSize()
Specified by:
getLogSize in interface Loggable
Returns:
number of bytes used to store this object.
See Also:
Loggable.getLogSize()

writeToLog

public void writeToLog(ByteBuffer buf)
Description copied from interface: Loggable
Serialize this object into the buffer.

Specified by:
writeToLog in interface Loggable
Parameters:
buf - is the destination buffer
See Also:
Loggable.writeToLog(java.nio.ByteBuffer)

readFromLog

public void readFromLog(ByteBuffer buf,
                        int entryTypeVersion)
Description copied from interface: Loggable
Initialize this object from the data in itemBuf.

Specified by:
readFromLog in interface Loggable
See Also:
Loggable.readFromLog(java.nio.ByteBuffer, int)

dumpLog

public void dumpLog(StringBuilder buf,
                    boolean verbose)
Description copied from interface: Loggable
Write the object into the string buffer for log dumping. Each object should be dumped without indentation or new lines and should be valid XML.

Specified by:
dumpLog in interface Loggable
Parameters:
buf - destination string buffer
verbose - if true, dump the full, verbose version
See Also:
Loggable.dumpLog(java.lang.StringBuilder, boolean)

getTransactionId

public long getTransactionId()
Never called.

Specified by:
getTransactionId in interface Loggable
Returns:
the transaction id embedded within this loggable object. Objects that have no transaction id should return 0.
See Also:
Loggable.getTransactionId()

logicalEquals

public boolean logicalEquals(Loggable other)
Specified by:
logicalEquals in interface Loggable
Returns:
true if these two loggable items are logically the same. Used for replication testing.
See Also:
Always return false, this item should never be compared.

toString

public String toString()
Overrides:
toString in class Object


Copyright (c) 2004-2012 Oracle. All rights reserved.