org.opends.server.tools
Class DBTest

java.lang.Object
  extended by org.opends.server.tools.DBTest

public class DBTest
extends java.lang.Object

This program provides a utility that may be used to debug a JE backend. This tool provides the ability list various containers in the backend as well as dump the contents of database containers. This will be a process that is intended to run separate from Directory Server and not internally within the server process (e.g., via the tasks interface).


Constructor Summary
DBTest(java.io.OutputStream out, java.io.OutputStream err)
          Creates a new dsconfig application instance.
 
Method Summary
static void main(java.lang.String[] args)
          Provides the command-line arguments to the main application for processing.
static int main(java.lang.String[] args, boolean initializeServer, java.io.OutputStream outStream, java.io.OutputStream errStream)
          Provides the command-line arguments to the main application for processing and returns the exit code as an integer.
 void printMessage(Message msg)
          Displays a message to the error stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DBTest

public DBTest(java.io.OutputStream out,
              java.io.OutputStream err)
Creates a new dsconfig application instance.

Parameters:
out - The application output stream.
err - The application error stream.
Method Detail

main

public static void main(java.lang.String[] args)
Provides the command-line arguments to the main application for processing.

Parameters:
args - The set of command-line arguments provided to this program.

main

public static int main(java.lang.String[] args,
                       boolean initializeServer,
                       java.io.OutputStream outStream,
                       java.io.OutputStream errStream)
Provides the command-line arguments to the main application for processing and returns the exit code as an integer.

Parameters:
args - The set of command-line arguments provided to this program.
initializeServer - Indicates whether to perform basic initialization (which should not be done if the tool is running in the same JVM as the server).
outStream - The output stream for standard output.
errStream - The output stream for standard error.
Returns:
Zero to indicate that the program completed successfully, or non-zero to indicate that an error occurred.

printMessage

public final void printMessage(Message msg)
Displays a message to the error stream.

Parameters:
msg - The message.