Package com.sleepycat.je.dbi

Examples of com.sleepycat.je.dbi.DatabaseImpl.verify()


            try {
                /* Use DatabaseImpl.verify so we can get a status return. */
                DatabaseImpl dbImpl = DbInternal.dbGetDatabaseImpl(db);
                DatabaseStats stats = dbImpl.getEmptyStats();
                ret = dbImpl.verify(verifyConfig, stats);
                if (verifyConfig.getPrintInfo()) {
                    out.println(stats);
                }
            } finally {
                if (db != null) {
View Full Code Here


        throws DatabaseException {

        for (int i = 0; i < NUM_DBS; i++) {
            /* Run verify */
            DatabaseImpl dbImpl = DbInternal.dbGetDatabaseImpl(dbs[i]);
            assertTrue(dbImpl.verify(new VerifyConfig(),
                                      dbImpl.getEmptyStats()));

            Cursor verifyCursor =
    dbs[i].openCursor(null, CursorConfig.READ_UNCOMMITTED);
            DatabaseEntry key = new DatabaseEntry();
View Full Code Here

                } else {
                    /* Use DatabaseImpl.verify so we can get a status
                    return. */
                    DatabaseImpl dbImpl = DbInternal.dbGetDatabaseImpl(db);
                    DatabaseStats stats = dbImpl.getEmptyStats();
                    ret = dbImpl.verify(verifyConfig, stats);
                    if (verifyConfig.getPrintInfo()) {
                        out.println(stats);
                    }
                }
            } finally {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.