Package com.sleepycat.je

Examples of com.sleepycat.je.CheckpointConfig


        } finally {
            cursor.close();
        }

        /* Checkpoint to reset the memory budget. */
        env.checkpoint(new CheckpointConfig().setForce(true));
    }
View Full Code Here


        } catch (InterruptedException e) {
            e.printStackTrace(out);
        }

        /* Checkpoint to reset the memory budget. */
        db.getEnvironment().checkpoint(new CheckpointConfig().setForce(true));

        return stats.getStatus();
    }
View Full Code Here

                return new Integer(numFiles);
            } else if (actionName.equals(OP_EVICT)) {
                env.evictMemory();
                return null;
            } else if (actionName.equals(OP_CHECKPOINT)) {
                CheckpointConfig ckptConfig = new CheckpointConfig();
                if ((params != null) && (params.length > 0)) {
                    Boolean force = (Boolean) params[0];
                    ckptConfig.setForce(force.booleanValue());
                }
                env.checkpoint(ckptConfig);
                return null;
            } else if (actionName.equals(OP_SYNC)) {
                env.sync();
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

            /*
             * Do a checkpointer to flush dirty datbaseImpls that are converted
             * to replicated and write the current VLSNRange to the log.
             */
            CheckpointConfig ckptConfig = new CheckpointConfig();
            ckptConfig.setForce(true);
            invokeCheckpoint(ckptConfig, true, "Environment conversion");
        }
    }
View Full Code Here

            for (DatabasePlusConfig dbc: databases.values()) {
                dbc.database.sync();
            }
       
            // Do a force checkpoint.  Thats what a sync does (i.e. doSync).
            CheckpointConfig chkptConfig = new CheckpointConfig();
            chkptConfig.setForce(true);
           
            // Mark Hayes of sleepycat says:
            // "The default for this property is false, which gives the current
            // behavior (allow deltas).  If this property is true, deltas are
            // prohibited -- full versions of internal nodes are always logged
View Full Code Here

            }
            if (cleaned)
            {
                LOGGER.debug("Cleaned log");

                CheckpointConfig force = new CheckpointConfig();
                force.setForce(true);
                environment.checkpoint(force);

                LOGGER.debug("Checkpoint force complete");
            }
        }
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

             */
            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

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.