com.sleepycat.je.util
Class DbDump

java.lang.Object
  extended by com.sleepycat.je.util.DbDump
Direct Known Subclasses:
DbScavenger

public class DbDump
extends Object


Field Summary
protected  String dbName
           
protected  boolean doAggressiveScavengerRun
           
protected  boolean doScavengerRun
           
protected  Environment env
           
protected  File envHome
           
protected  boolean formatUsingPrintable
           
protected  PrintStream outputFile
           
protected  boolean verbose
           
 
Constructor Summary
DbDump(Environment env, String dbName, PrintStream outputFile, boolean formatUsingPrintable)
           
 
Method Summary
 void dump()
           
protected  void dumpOne(PrintStream o, byte[] ba, boolean formatUsingPrintable)
           
static void main(String[] argv)
           
protected  void openEnv(boolean doRecovery)
           
protected  boolean parseArgs(String[] argv)
           
protected  void printHeader(PrintStream o, boolean dupSort, boolean formatUsingPrintable)
           
protected  void printUsage(String msg)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

envHome

protected File envHome

env

protected Environment env

dbName

protected String dbName

formatUsingPrintable

protected boolean formatUsingPrintable

outputFile

protected PrintStream outputFile

doScavengerRun

protected boolean doScavengerRun

doAggressiveScavengerRun

protected boolean doAggressiveScavengerRun

verbose

protected boolean verbose
Constructor Detail

DbDump

public DbDump(Environment env,
              String dbName,
              PrintStream outputFile,
              boolean formatUsingPrintable)
Method Detail

main

public static void main(String[] argv)
                 throws DatabaseException,
                        IOException
Throws:
DatabaseException
IOException

printUsage

protected void printUsage(String msg)

parseArgs

protected boolean parseArgs(String[] argv)
                     throws IOException
Throws:
IOException

openEnv

protected void openEnv(boolean doRecovery)
                throws DatabaseException
Throws:
DatabaseException

dump

public void dump()
          throws IOException,
                 DatabaseException
Throws:
IOException
DatabaseException

printHeader

protected void printHeader(PrintStream o,
                           boolean dupSort,
                           boolean formatUsingPrintable)

dumpOne

protected void dumpOne(PrintStream o,
                       byte[] ba,
                       boolean formatUsingPrintable)


Copyright 2004-2005 Sleepycat, Inc. All Rights Reserved.