com.sleepycat.je.cleaner
Class CleanerLogSummary

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

public class CleanerLogSummary
extends Object
implements Loggable

Persistent form of log summary information, which currently is only the utilization correction info maintained by UtilizationCalculator, and is logged as part of the CheckpointEnd log entry.


Constructor Summary
CleanerLogSummary()
           
CleanerLogSummary(List<UtilizationCalculator.AverageSize> recentAvgLNSizes, long endFileNumAtLastAdjustment, int initialAdjustments)
           
 
Method Summary
 void dumpLog(StringBuilder sb, boolean verbose)
          Write the object into the string buffer for log dumping.
 boolean equals(Object other)
           
(package private)  long getEndFileNumAtLastAdjustment()
           
(package private)  int getInitialAdjustments()
           
 int getLogSize()
           
(package private)  List<UtilizationCalculator.AverageSize> getRecentAvgLNSizes()
           
 long getTransactionId()
          Not used.
 int hashCode()
           
 boolean logicalEquals(Loggable other)
          Not used.
 void readFromLog(ByteBuffer logBuffer, int entryVersion)
          Initialize this object from the data in itemBuf.
 String toString()
           
 void writeToLog(ByteBuffer logBuffer)
          Serialize this object into the buffer.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CleanerLogSummary

public CleanerLogSummary(List<UtilizationCalculator.AverageSize> recentAvgLNSizes,
                         long endFileNumAtLastAdjustment,
                         int initialAdjustments)

CleanerLogSummary

public CleanerLogSummary()
Method Detail

getRecentAvgLNSizes

List<UtilizationCalculator.AverageSize> getRecentAvgLNSizes()

getEndFileNumAtLastAdjustment

long getEndFileNumAtLastAdjustment()

getInitialAdjustments

int getInitialAdjustments()

getLogSize

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

writeToLog

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

Specified by:
writeToLog in interface Loggable
Parameters:
logBuffer - is the destination buffer

readFromLog

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

Specified by:
readFromLog in interface Loggable

getTransactionId

public long getTransactionId()
Not used.

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

logicalEquals

public boolean logicalEquals(Loggable other)
Not used.

Specified by:
logicalEquals in interface Loggable
Returns:
true if these two loggable items are logically the same. Used for replication testing.

equals

public boolean equals(Object other)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

dumpLog

public void dumpLog(StringBuilder sb,
                    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:
sb - destination string buffer
verbose - if true, dump the full, verbose version

toString

public String toString()
Overrides:
toString in class Object


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