com.sleepycat.je.cleaner
Class VerifyUtils

java.lang.Object
  extended by com.sleepycat.je.cleaner.VerifyUtils

public class VerifyUtils
extends Object

Verify cleaner data structures


Constructor Summary
VerifyUtils()
           
 
Method Summary
static void checkLsns(Database db)
          Compare the LSNs referenced by a given Database to the lsns held in the utilization profile.
static void checkLsns(DatabaseImpl dbImpl, PrintStream out)
          Compare the lsns referenced by a given Database to the lsns held in the utilization profile.
static void verifyUtilization(EnvironmentImpl envImpl, boolean expectAccurateObsoleteLNCount, boolean expectAccurateObsoleteLNSize, boolean expectAccurateDbUtilization)
          Compare utilization as calculated by UtilizationProfile to utilization as calculated by UtilizationFileReader.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VerifyUtils

public VerifyUtils()
Method Detail

checkLsns

public static void checkLsns(Database db)
                      throws DatabaseException
Compare the LSNs referenced by a given Database to the lsns held in the utilization profile. Assumes that the database and environment is quiescent, and that there is no current cleaner activity.

Throws:
DatabaseException

checkLsns

public static void checkLsns(DatabaseImpl dbImpl,
                             PrintStream out)
                      throws DatabaseException
Compare the lsns referenced by a given Database to the lsns held in the utilization profile. Assumes that the database and environment is quiescent, and that there is no current cleaner activity.

Throws:
DatabaseException

verifyUtilization

public static void verifyUtilization(EnvironmentImpl envImpl,
                                     boolean expectAccurateObsoleteLNCount,
                                     boolean expectAccurateObsoleteLNSize,
                                     boolean expectAccurateDbUtilization)
                              throws DatabaseException
Compare utilization as calculated by UtilizationProfile to utilization as calculated by UtilizationFileReader. Also check that per-database and per-file utilization match.

Throws:
EnvironmentFailureException - if there are mismatches
DatabaseException


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