Package com.sleepycat.je

Examples of com.sleepycat.je.DatabaseStats


             * return.
             */
            if (verifyConfig.getPrintInfo()) {
                out.println("Checking tree for " + name);
            }
            DatabaseStats stats = dbImpl.getEmptyStats();
            status = dbImpl.verify(verifyConfig, stats);
            if (verifyConfig.getPrintInfo()) {

                /*
                 * Intentionally use print, not println, because
View Full Code Here


            if (progressInterval > 0) {
                statsConfig.setShowProgressInterval(progressInterval);
                statsConfig.setShowProgressStream(out);
            }

            DatabaseStats stats = db.getStats(statsConfig);
            out.println(stats);

            db.close();
            LoggerUtils.envLogMsg(Level.INFO, DbInternal.getEnvironmentImpl(env),
                               "DbStat.stats of " + dbName + " ending");
View Full Code Here

                    return targetEnv.getTransactionStats
                        (getStatsConfig(params)).toString();
                } else if (actionName.equals(OP_DB_NAMES)) {
                    return targetEnv.getDatabaseNames();
                } else if (actionName.equals(OP_DB_STAT)) {
                    DatabaseStats stats = getDatabaseStats(targetEnv, params);
                    return stats != null ? stats.toString() : null;
                }
            }

            return new IllegalArgumentException
                ("actionName: " + actionName + " is not valid");
View Full Code Here

                return env.getTransactionStats
                    (getStatsConfig(params)).toString();
            } else if (actionName.equals(OP_DB_NAMES)) {
                return env.getDatabaseNames();
            } else if (actionName.equals(OP_DB_STAT)) {
                DatabaseStats stats = getDatabaseStats(params);
                return stats != null ? stats.toString() : null;
            } else if (actionName.equals(OP_GET_TIPS)) {
                return env.getStats
                    (getStatsConfig(new Object[] {false, true})).getTips();
            } else if (actionName.equals(OP_ENV_CONFIG)) {
                return env.getConfig().toString();
View Full Code Here

            Database db = env.openDatabase(null, dbName, dbConfig);

            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 {
View Full Code Here

      if (progressInterval > 0) {
    statsConfig.setShowProgressInterval(progressInterval);
    statsConfig.setShowProgressStream(out);
      }

      DatabaseStats stats = db.getStats(statsConfig);
      out.println(stats);

      db.close();
      Tracer.trace(Level.INFO, DbInternal.envGetEnvironmentImpl(env),
       "DbStat.stats of " + dbName + " ending");
View Full Code Here

        /*
         * Note that verify will attempt to continue past errors, so
         * assertTrue on the status return.
         */
        assertTrue(env.verify(new VerifyConfig(), System.err));
  DatabaseStats stats = db.verify(new VerifyConfig());
  BtreeStats btStats = (BtreeStats) stats;

  assertTrue(btStats.getInternalNodeCount() <
       btStats.getBottomInternalNodeCount());
  assertTrue(btStats.getBottomInternalNodeCount() <
View Full Code Here

                    VerifyUtils.checkLsns(db);
                } 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);
                    }
                }
View Full Code Here

      if (progressInterval > 0) {
    statsConfig.setShowProgressInterval(progressInterval);
    statsConfig.setShowProgressStream(out);
      }

      DatabaseStats stats = db.getStats(statsConfig);
      out.println(stats);

      db.close();
      Tracer.trace(Level.INFO, DbInternal.envGetEnvironmentImpl(env),
       "DbStat.stats of " + dbName + " ending");
View Full Code Here

             * return.
             */
            if (verifyConfig.getPrintInfo()) {
                out.println("Checking tree for " + name);
            }
            DatabaseStats stats = dbImpl.getEmptyStats();
            status = dbImpl.verify(verifyConfig, stats);
            if (verifyConfig.getPrintInfo()) {

                /*
                 * Intentionally use print, not println, because
View Full Code Here

TOP

Related Classes of com.sleepycat.je.DatabaseStats

Copyright © 2018 www.massapicom. 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.