public class DbVerify
extends java.lang.Object
To verify a database and write the errors to stream:
DbVerify verifier = new DbVerify(env, dbName, quiet);
verifier.verify();
| Modifier and Type | Field and Description |
|---|---|
(package private) boolean |
checkLsns |
(package private) java.lang.String |
dbName |
(package private) Environment |
env |
(package private) java.io.File |
envHome |
(package private) boolean |
openReadOnly |
(package private) boolean |
quiet |
| Constructor and Description |
|---|
DbVerify() |
DbVerify(Environment env,
java.lang.String dbName,
boolean quiet)
Creates a DbVerify object for a specific environment and database.
|
| Modifier and Type | Method and Description |
|---|---|
(package private) void |
closeEnv() |
static void |
main(java.lang.String[] argv)
The main used by the DbVerify utility.
|
(package private) void |
openEnv() |
(package private) void |
parseArgs(java.lang.String[] argv) |
(package private) void |
printUsage(java.lang.String msg) |
boolean |
verify(java.io.PrintStream out)
Verifies a database and write errors found to a stream.
|
java.io.File envHome
Environment env
java.lang.String dbName
boolean quiet
boolean checkLsns
boolean openReadOnly
DbVerify()
public DbVerify(Environment env, java.lang.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(java.lang.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.DatabaseExceptionvoid printUsage(java.lang.String msg)
void parseArgs(java.lang.String[] argv)
void openEnv()
throws java.lang.Exception
java.lang.Exceptionvoid closeEnv()
public boolean verify(java.io.PrintStream out)
throws DatabaseException
out - The stream to write errors to.DatabaseExceptionCopyright (c) 2004-2012 Oracle. All rights reserved.