Examples of DbEnv


Examples of com.sleepycat.db.DbEnv

        File dir = DbTestUtil.getNewDir();
        ByteArrayFormat dataFormat = new ByteArrayFormat();
        ByteArrayBinding dataBinding = new ByteArrayBinding(dataFormat);

        int envFlags = Db.DB_INIT_MPOOL | Db.DB_CREATE;
        env = new DbEnv(0);
        env.open(dir.getAbsolutePath(), envFlags, 0);
        Db db = new Db(env, 0);
        db.open(null, "test.db", null, Db.DB_BTREE, Db.DB_CREATE, 0);
        store = new DataStore(db, dataFormat, dataFormat, null);
        view = new DataView(store, null, dataBinding, dataBinding, null, true);
View Full Code Here

Examples of com.sleepycat.db.DbEnv

    public DbEnv open(String testName)
        throws IOException, DbException {

        File dir = getDirectory(testName);
        DbEnv dbEnv = new DbEnv(0);
        dbEnv.open(dir.getAbsolutePath(), flags, 0);
        return dbEnv;
    }
View Full Code Here

Examples of com.sleepycat.db.DbEnv

        // Open the Berkeley DB environment in transactional mode.
        //
        int envFlags = Db.DB_INIT_TXN | Db.DB_INIT_LOCK | Db.DB_INIT_MPOOL |
                       Db.DB_CREATE;
        if (runRecovery) envFlags |= Db.DB_RECOVER;
        env = new DbEnv(0);
        System.out.println("Opening environment in: " + homeDirectory);
        env.open(homeDirectory, envFlags, 0);

        // Set the flags for opening all stores and indices.
        //
View Full Code Here

Examples of com.sleepycat.db.DbEnv

        // Open the Berkeley DB environment in transactional mode.
        //
        int envFlags = Db.DB_INIT_TXN | Db.DB_INIT_LOCK | Db.DB_INIT_MPOOL |
                       Db.DB_CREATE;
        if (runRecovery) envFlags |= Db.DB_RECOVER;
        env = new DbEnv(0);
        System.out.println("Opening environment in: " + homeDirectory);
        env.open(homeDirectory, envFlags, 0);

        // Set the flags for opening all stores and indices.
        //
View Full Code Here

Examples of com.sleepycat.db.DbEnv

        // environment is transactional
        int envFlags = Db.DB_INIT_TXN | Db.DB_INIT_LOCK | Db.DB_INIT_MPOOL;
        if (create)
            envFlags |= Db.DB_CREATE;
        DbEnv env = new DbEnv(0);
        env.open(dir, envFlags, 0);

        // create the application and run a transaction
        HelloDatabaseWorld worker = new HelloDatabaseWorld(env);
        TransactionRunner runner = new TransactionRunner(env);
        try {
View Full Code Here

Examples of com.sleepycat.db.DbEnv

        // Open the Berkeley DB environment in transactional mode.
        //
        int envFlags = Db.DB_INIT_TXN | Db.DB_INIT_LOCK | Db.DB_INIT_MPOOL |
                       Db.DB_CREATE;
        if (runRecovery) envFlags |= Db.DB_RECOVER;
        env = new DbEnv(0);
        System.out.println("Opening environment in: " + homeDirectory);
        env.open(homeDirectory, envFlags, 0);

        // Set the Berkeley DB flags for opening all stores and indices.
        //
View Full Code Here

Examples of com.sleepycat.db.DbEnv

        // Open the Berkeley DB environment in transactional mode.
        //
        int envFlags = Db.DB_INIT_TXN | Db.DB_INIT_LOCK | Db.DB_INIT_MPOOL |
                       Db.DB_CREATE;
        if (runRecovery) envFlags |= Db.DB_RECOVER;
        env = new DbEnv(0);
        System.out.println("Opening environment in: " + homeDirectory);
        env.open(homeDirectory, envFlags, 0);

        // Set the flags for opening all stores and indices.
        //
View Full Code Here

Examples of com.sleepycat.db.DbEnv

        // Open the Berkeley DB environment in transactional mode.
        //
        int envFlags = Db.DB_INIT_TXN | Db.DB_INIT_LOCK | Db.DB_INIT_MPOOL |
                       Db.DB_CREATE;
        if (runRecovery) envFlags |= Db.DB_RECOVER;
        env = new DbEnv(0);
        System.out.println("Opening environment in: " + homeDirectory);
        env.open(homeDirectory, envFlags, 0);

        // Set the Berkeley DB flags for opening all stores and indices.
        //
View Full Code Here

Examples of com.sleepycat.db.DbEnv

        // Open the Berkeley DB environment in transactional mode.
        //
        int envFlags = Db.DB_INIT_TXN | Db.DB_INIT_LOCK | Db.DB_INIT_MPOOL |
                       Db.DB_CREATE;
        if (runRecovery) envFlags |= Db.DB_RECOVER;
        env = new DbEnv(0);
        System.out.println("Opening environment in: " + homeDirectory);
        env.open(homeDirectory, envFlags, 0);

        // Set the flags for opening all stores and indices.
        //
View Full Code Here

Examples of com.sleepycat.db.DbEnv

        // Open the Berkeley DB environment in transactional mode.
        //
        int envFlags = Db.DB_INIT_TXN | Db.DB_INIT_LOCK | Db.DB_INIT_MPOOL |
                       Db.DB_CREATE;
        if (runRecovery) envFlags |= Db.DB_RECOVER;
        env = new DbEnv(0);
        System.out.println("Opening environment in: " + homeDirectory);
        env.open(homeDirectory, envFlags, 0);

        // Set the flags for opening all stores and indices.
        //
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.