Package com.sleepycat.je.latch

Examples of com.sleepycat.je.latch.Latch


    /**
     * constructor helper
     */
    private void init(DatabaseImpl database) {
        rootLatch =
            new Latch("RootLatch",
                      (database != null) ? database.getDbEnvironment() : null);
        treeStats = new TreeStats();
        this.root = null;
        this.database = database;
    }
View Full Code Here


        throws DatabaseException {

        try {
            this.envHome = envHome;
            envState = DbEnvState.INIT;
            mapTreeRootLatch = new Latch("MapTreeRoot", this);

            /* Set up configuration parameters */
            configManager = new DbConfigManager(envConfig);
            configObservers = new ArrayList();
            addConfigObserver(this);
View Full Code Here

               String fileName,
               EnvironmentImpl env,
               boolean oldHeaderVersion) {
        this.file = file;
        this.oldHeaderVersion = oldHeaderVersion;
        fileLatch = new Latch(fileName + "_fileHandle", env);
    }
View Full Code Here

        throws DatabaseException {
        timeout = PropUtil.microsToMillis(envImpl.getConfigManager().getLong(
            EnvironmentParams.LOG_FSYNC_TIMEOUT));
        this.envImpl = envImpl;

        fsyncLatch = new Latch("fsyncLatch", envImpl);
        fsyncInProgress = false;
        nextFSyncWaiters = new FSyncGroup(timeout, envImpl);
    }
View Full Code Here

        if (env.useDirectNIO()) {
            buffer = ByteBuffer.allocateDirect(capacity);
        } else {
            buffer = ByteBuffer.allocate(capacity);
        }
        readLatch = new Latch(DEBUG_NAME, env);
        reinit();
    }
View Full Code Here

    public LockManager(EnvironmentImpl envImpl )
      throws DatabaseException {
       
        lockTable = new HashMap();
        lockTableLatch = new Latch("Lock Table", envImpl);
        this.envImpl = envImpl;
        memoryBudget = envImpl.getMemoryBudget();
        nRequests = 0;
        nWaits = 0;
  /*
 
View Full Code Here

                  EnvironmentImpl envImpl)
        throws DatabaseException {
       
        this.fileManager = fileManager;
        this.envImpl = envImpl;
        bufferPoolLatch = new Latch(DEBUG_NAME + "_FullLatch", envImpl);

        /* Configure the pool. */
        DbConfigManager configManager = envImpl.getConfigManager();
        runInMemory =
            configManager.getBoolean(EnvironmentParams.LOG_MEMORY_ONLY);
View Full Code Here

            lockManager = new SyncedLockManager(env);
        }

        this.env = env;
        allTxns = new HashSet();
        allTxnLatch = new Latch(DEBUG_NAME, env);
        allXATxns = Collections.synchronizedMap(new HashMap());
        thread2Txn = Collections.synchronizedMap(new HashMap());

        numCommits = 0;
        numAborts = 0;
View Full Code Here

    INList(EnvironmentImpl envImpl) {
        this.envImpl = envImpl;
        ins = new TreeSet();
  addedINs = new HashSet();
        majorLatch = new Latch(DEBUG_NAME + " Major Latch", envImpl);
        minorLatch = new Latch(DEBUG_NAME + " Minor Latch", envImpl);
        updateMemoryUsage = true;
    }
View Full Code Here

  throws DatabaseException {

  ins = new TreeSet(orig.getINs());
  addedINs = new HashSet()
        this.envImpl = envImpl;
        majorLatch = new Latch(DEBUG_NAME + " Major Latch", envImpl);
        minorLatch = new Latch(DEBUG_NAME + " Minor Latch", envImpl);
        updateMemoryUsage = false;
    }
View Full Code Here

TOP

Related Classes of com.sleepycat.je.latch.Latch

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.