Package com.sleepycat.je

Examples of com.sleepycat.je.CheckpointConfig


        throws Exception {

        long a, c, d, e, f;

        Transaction txn = null;
        CheckpointConfig force = new CheckpointConfig();
        force.setForce(true);

        a = System.currentTimeMillis();
        env.removeDatabase(txn, name);
        c = System.currentTimeMillis();
View Full Code Here


         * Start using new log files. The file ensures that we can safely
         * truncate the past VLSNs.
         */
        repImpl.forceLogFileFlip();

        CheckpointConfig ckptConfig = new CheckpointConfig();
        ckptConfig.setForce(true);

        /*
         * The checkpoint ensures that we do not have to replay VLSNs from the
         * prior group and that we have a complete VLSN index on disk.
         */
 
View Full Code Here

    @JmxOperation(description = "Forcefully checkpoint all the environments")
    public void checkPointAllEnvironments() {
        synchronized(lock) {
            try {
                for(Environment environment: environments.values()) {
                    CheckpointConfig checkPointConfig = new CheckpointConfig();
                    checkPointConfig.setForce(true);
                    environment.checkpoint(checkPointConfig);
                }
            } catch(DatabaseException e) {
                throw new VoldemortException(e);
            }
View Full Code Here

        {
            cleaned = true;
        }
        if (cleaned)
        {
            CheckpointConfig force = new CheckpointConfig();
            force.setForce(true);
            _environment.checkpoint(force);
        }


        _environment.getConfig().setConfigParam(EnvironmentConfig.ENV_RUN_CLEANER, "true");
View Full Code Here

                 * recovering BINDeltas causes extra random I/O in order to
                 * reconstitute BINS, which can greatly increase recovery time,
                 * and (2) logging deltas during close causes redundant logging
                 * by the full checkpoint after recovery.
                 */
                CheckpointConfig ckptConfig = new CheckpointConfig();
                ckptConfig.setForce(true);
                ckptConfig.setMinimizeRecoveryTime(true);
                try {
                    invokeCheckpoint
                        (ckptConfig,
                         false, // flushAll
                         "close");
View Full Code Here

    private void init() {
        envHome = new File(System.getProperty(TestUtils.DEST_DIR));
        Key.DUMP_BINARY = true;
        envConfig = TestUtils.initEnvConfig();
        forceConfig = new CheckpointConfig();
        forceConfig.setForce(true);
    }
View Full Code Here

             */
            if (!readOnly &&
    (env.getLogManager().getLastLsnAtRecovery() !=
     info.checkpointEndLsn ||
     forceCheckpoint)) {
              CheckpointConfig config = new CheckpointConfig();
              config.setForce(true);
              config.setMinimizeRecoveryTime(true);
                env.invokeCheckpoint
                    (config,
                     false, // flushAll
                     "recovery");
            }
View Full Code Here

                    return new Integer(numFiles);
                } else if (actionName.equals(OP_EVICT)) {
                    targetEnv.evictMemory();
                    return null;
                } else if (actionName.equals(OP_CHECKPOINT)) {
                    CheckpointConfig config = new CheckpointConfig();
                    if ((params != null) && (params.length > 0)) {
                        Boolean force = (Boolean) params[0];
                        config.setForce(force.booleanValue());
                    }
                    targetEnv.checkpoint(config);
                    return null;
                } else if (actionName.equals(OP_SYNC)) {
                    targetEnv.sync();
View Full Code Here

  try {
      createDatabase(200000);
 
      final int N_RECS = 25;

      CheckpointConfig chkConf = new CheckpointConfig();
      chkConf.setForce(true);
      Transaction txn = env.beginTransaction(null, null);
      int keyInt = 0;
      FileManager.IO_EXCEPTION_TESTING = true;
      for (int i = 0; i < N_RECS; i++) {
    String keyStr = Integer.toString(keyInt);
View Full Code Here

            recoveryStart = System.currentTimeMillis();

            Environment env =
    new Environment(new File(envHome), envConfig);

            CheckpointConfig forceConfig = new CheckpointConfig();
            forceConfig.setForce(true);
           
            actionStart = System.currentTimeMillis();
            switch(doAction) {
            case CLEAN:
                /* Since this is batch cleaning, repeat until no progress. */
 
View Full Code Here

TOP

Related Classes of com.sleepycat.je.CheckpointConfig

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.