Constructor and Description |
---|
DbVerify(Environment env,
String dbName,
boolean quiet)
Creates a DbVerify object for a specific environment and database.
|
Modifier and Type | Method and Description |
---|---|
static void |
main(String[] argv)
The main used by the DbVerify utility.
|
boolean |
verify(PrintStream out)
Verifies a database and write errors found to a stream.
|
public DbVerify(Environment env, String dbName, boolean quiet)
env
- The Environment containing the database to verify.dbName
- The name of the database to verify.quiet
- true if the verification should not produce errors to the
output streampublic static void main(String[] argv) throws DatabaseException
argv
- The arguments accepted by the DbVerify utility.
usage: java { com.sleepycat.je.util.DbVerify | -jar je-<version>.jar DbVerify } [-q] [-V] -s database -h dbEnvHome [-v progressInterval]
-V - show the version of the JE library.
-s - specify the database to verify
-h - specify the environment directory
-q - work quietly and don't display errors
-v - report intermediate statistics every progressInterval Leaf
Nodes
EnvironmentFailureException
- if an unexpected, internal or
environment-wide failure occurs.DatabaseException
public boolean verify(PrintStream out) throws DatabaseException
out
- The stream to write errors to.DatabaseException
Copyright (c) 2002, 2015 Oracle and/or its affiliates. All rights reserved.