Package com.sleepycat.je.dbi

Examples of com.sleepycat.je.dbi.DbConfigManager


        this.fileManager = fileManager;
        this.envImpl = envImpl;
        bufferPoolLatch = new Latch(DEBUG_NAME + "_FullLatch");

        /* Configure the pool. */
        DbConfigManager configManager = envImpl.getConfigManager();
        runInMemory = envImpl.isMemOnly();
        reset(configManager);

        /* Current buffer is the active buffer that writes go into. */
        currentWriteBuffer = bufferPool.getFirst();
View Full Code Here


                 "Last valid entry is at " + DbLsn.toString
                 (DbLsn.makeLsn(window.currentFileNum(), lastValidOffset)) +
                 " Bad entry is at " +
                 DbLsn.makeLsn(window.currentFileNum(), nextUnprovenOffset));
                
            DbConfigManager configManager = envImpl.getConfigManager();
            boolean findCommitTxn =
                configManager.getBoolean
                (EnvironmentParams.HALT_ON_COMMIT_AFTER_CHECKSUMEXCEPTION);
               
            /* Find the committed transactions at the rest the log file. */
            if (findCommitTxn) {
                boolean committedTxnFound = findCommittedTxn()
View Full Code Here

    private final boolean evictByLruOnly;

    final StatGroup stats;

    TargetSelector(EnvironmentImpl envImpl) {
        DbConfigManager configManager = envImpl.getConfigManager();
        nodesPerScan = configManager.getInt
            (EnvironmentParams.EVICTOR_NODES_PER_SCAN);
        evictByLruOnly = configManager.getBoolean
            (EnvironmentParams.EVICTOR_LRU_ONLY);
        stats = new StatGroup(GROUP_NAME, GROUP_DESC);
        nNodesSelected = new LongStat(stats, EVICTOR_NODES_SELECTED);
    }
View Full Code Here

        super(waitTime, name, env);
        this.env = env;
        profile = env.getUtilizationProfile();

        DbConfigManager cm = env.getConfigManager();

        lockTimeout = PropUtil.microsToMillis(cm.getLong
                (EnvironmentParams.CLEANER_LOCK_TIMEOUT));

        readBufferSize = cm.getInt(EnvironmentParams.CLEANER_READ_SIZE);
        if (readBufferSize <= 0) {
            readBufferSize = cm.getInt
                (EnvironmentParams.LOG_ITERATOR_READ_SIZE);
        }

  expunge = cm.getBoolean(EnvironmentParams.CLEANER_REMOVE);

  clusterResident = cm.getBoolean(EnvironmentParams.CLEANER_CLUSTER);

  clusterAll = cm.getBoolean(EnvironmentParams.CLEANER_CLUSTER_ALL);

        maxBatchFiles = cm.getInt(EnvironmentParams.CLEANER_MAX_BATCH_FILES);

        if (clusterResident && clusterAll) {
            throw new IllegalArgumentException
                ("Both " + EnvironmentParams.CLEANER_CLUSTER +
                 " and " + EnvironmentParams.CLEANER_CLUSTER_ALL +
View Full Code Here

        readBuffer = ByteBuffer.allocate(readBufferSize);
        threadSafeBufferFlip(readBuffer);
        saveBuffer = ByteBuffer.allocate(readBufferSize);

        DbConfigManager configManager = env.getConfigManager();
        maxReadBufferSize =
      configManager.getInt(EnvironmentParams. LOG_ITERATOR_MAX_SIZE);

        /* Determine the starting position. */
        this.startLsn = startLsn;
        this.finishLsn = finishLsn;
        initStartingPosition(endOfFileLsn, singleFileNumber);
View Full Code Here

             */
            rootLatch.acquire();
            try {
                IN rootIN = (IN) root.fetchTarget(database, null);
               
    DbConfigManager configManager =
        database.getDbEnvironment().getConfigManager();
    boolean purgeRoot = configManager.getBoolean
        (EnvironmentParams.COMPRESSOR_PURGE_ROOT);

    /**
     * We've encountered the last empty subtree of the tree.  In
     * general, there's no reason to delete this last
View Full Code Here

     * Run with defaults, read whole log
     */
    public void testBasic()
  throws IOException, DatabaseException {

        DbConfigManager cm = envImpl.getConfigManager();
        doTest(50,
               cm.getInt(EnvironmentParams.LOG_ITERATOR_READ_SIZE),
               0,
               false);
    }
View Full Code Here

  throws IOException, DatabaseException {

  openEnv(false);

  envImpl = DbInternal.envGetEnvironmentImpl(env);
  DbConfigManager cm = envImpl.getConfigManager();
  try {
      readBufferSize =
    cm.getInt(EnvironmentParams.LOG_ITERATOR_READ_SIZE);
  } catch (DatabaseException DBE) {
      readBufferSize = 8192;
  }

  /*
 
View Full Code Here

        super(0, name, envImpl);
        this.envImpl = envImpl;
        logManager = envImpl.getLogManager();
        nextNode = null;

        DbConfigManager configManager = envImpl.getConfigManager();
        nodesPerScan = configManager.getInt
            (EnvironmentParams.EVICTOR_NODES_PER_SCAN);
        evictBytesSetting = configManager.getLong
            (EnvironmentParams.EVICTOR_EVICT_BYTES);
        evictByLruOnly = configManager.getBoolean
            (EnvironmentParams.EVICTOR_LRU_ONLY);
        detailedTraceLevel = Tracer.parseLevel
            (envImpl, EnvironmentParams.JE_LOGGING_LEVEL_EVICTOR);

        evictProfile = new EvictProfile();
View Full Code Here

     */
    public void testBasicRedo()
        throws Throwable {

        try {
            DbConfigManager cm =  envImpl.getConfigManager();
            doTest(50,
                   cm.getInt(EnvironmentParams.LOG_ITERATOR_READ_SIZE),
                   0,
                   false,
                   true);
        } catch (Throwable t) {
            t.printStackTrace();
View Full Code Here

TOP

Related Classes of com.sleepycat.je.dbi.DbConfigManager

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.