|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sleepycat.je.util.DbVerify
public class DbVerify
Verifies the internal structures of a database.
To verify a database and write the errors to stream:
DbVerify verifier = new DbVerify(env, dbName, quiet); verifier.verify();
Constructor Summary | |
---|---|
DbVerify(Environment env,
java.lang.String dbName,
boolean quiet)
Creates a DbVerify object for a specific environment and database. |
Method Summary | |
---|---|
static void |
main(java.lang.String[] argv)
The main used by the DbVerify utility. |
boolean |
verify(java.io.PrintStream out)
Verifies a database and write errors found to a stream. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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 streamMethod Detail |
---|
public 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
DatabaseException
- if a failure occurs.public boolean verify(java.io.PrintStream out) throws DatabaseException
out
- The stream to write errors to.
DatabaseException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |