Examples of DbConfigManager


Examples of com.sleepycat.je.dbi.DbConfigManager

        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

Examples of com.sleepycat.je.dbi.DbConfigManager

        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

Examples of com.sleepycat.je.dbi.DbConfigManager

     */
    public RecoveryManager(EnvironmentImpl env)
        throws DatabaseException {

        this.env = env;
        DbConfigManager cm = env.getConfigManager();
        readBufferSize =
            cm.getInt(EnvironmentParams.LOG_ITERATOR_READ_SIZE);
        committedTxnIds = new HashSet();
        abortedTxnIds = new HashSet();
  preparedTxns = new HashMap();
        inListRebuildDbIds = new HashSet();
        fileSummaryLsns = new HashMap();
View Full Code Here

Examples of com.sleepycat.je.dbi.DbConfigManager

        info = new RecoveryInfo();

        try {
            FileManager fileManager = env.getFileManager();
      DbConfigManager configManager = env.getConfigManager();
      boolean forceCheckpoint =
    configManager.getBoolean
    (EnvironmentParams.ENV_RECOVERY_FORCE_CHECKPOINT);
            if (fileManager.filesExist()) {

                /*
                 * Establish the location of the end of the log. After this, we
View Full Code Here

Examples of com.sleepycat.je.dbi.DbConfigManager

        this.envImpl = envImpl;
        this.dbEnvHome = dbEnvHome;
        this.readOnly = readOnly;

        /* Read configurations. */
        DbConfigManager configManager = envImpl.getConfigManager();
        maxFileSize = configManager.getLong(EnvironmentParams.LOG_FILE_MAX);

        useNIO =
      configManager.getBoolean(EnvironmentParams.LOG_USE_NIO);
        chunkedNIOSize =
      configManager.getLong(EnvironmentParams.LOG_CHUNKED_NIO);
        boolean directNIO =
            configManager.getBoolean(EnvironmentParams.LOG_DIRECT_NIO);

        if (!useNIO && (chunkedNIOSize > 0 || directNIO)) {
            throw new IllegalArgumentException
                (EnvironmentParams.LOG_USE_NIO.getName() +
                 " is false and therefore " +
View Full Code Here

Examples of com.sleepycat.je.dbi.DbConfigManager

  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

Examples of com.sleepycat.je.dbi.DbConfigManager

    private static boolean lockTableDump = false;

    public LockManager(EnvironmentImpl envImpl)
      throws DatabaseException {
       
  DbConfigManager configMgr = envImpl.getConfigManager();
  nLockTables = configMgr.getInt(EnvironmentParams.N_LOCK_TABLES);
  lockTables = new Map[nLockTables];
  lockTableLatches = new Latch[nLockTables];
  for (int i = 0; i < nLockTables; i++) {
      lockTables[i] = new HashMap();
      lockTableLatches[i] =
View Full Code Here

Examples of com.sleepycat.je.dbi.DbConfigManager

        throws DatabaseException {

        this.database = database;
        maxMainTreeEntriesPerNode = database.getNodeMaxEntries();
  maxDupTreeEntriesPerNode = database.getNodeMaxDupTreeEntries();
        DbConfigManager configManager =
            database.getDbEnvironment().getConfigManager();
        purgeRoot = configManager.getBoolean
            (EnvironmentParams.COMPRESSOR_PURGE_ROOT);
    }
View Full Code Here

Examples of com.sleepycat.je.dbi.DbConfigManager

     */
    private void verifyMembership()
        throws IOException {

        final RepImpl repImpl = repNode.getRepImpl();
        DbConfigManager configManager = repImpl.getConfigManager();
        String groupName = configManager.get(GROUP_NAME);
        NodeType nodeType =
            NODE_TYPE.getEnumerator(configManager.get(NODE_TYPE));

        Message message = protocol.new
            NodeGroupInfo(groupName,
                          repNode.getGroup().getUUID(),
                          replicaNameIdPair,
View Full Code Here

Examples of com.sleepycat.je.dbi.DbConfigManager

        /* Number of reads since the last time getAndResetNReads was called. */
        private int nReadOperations;

        protected ReadWindow(int readBufferSize, EnvironmentImpl envImpl) {
            DbConfigManager configManager = envImpl.getConfigManager();
            maxReadBufferSize =
                configManager.getInt(EnvironmentParams.LOG_ITERATOR_MAX_SIZE);
            this.envImpl = envImpl;
            fileManager = envImpl.getFileManager();

            readBuffer = ByteBuffer.allocate(readBufferSize);
            threadSafeBufferFlip(readBuffer);
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.