Package com.sleepycat.db

Examples of com.sleepycat.db.DbEnv.open()


    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;
    }

    public File getDirectory(String testName)
        throws IOException {
View Full Code Here


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

                Db.DB_CREATE;

        if (runRecovery) {
            envFlags |= Db.DB_RECOVER;
        }
        env.open(dir.getPath(), envFlags, 0);
        return env;
    }

    public static Db open(DbEnv environment, String name, boolean isQueue) throws FileNotFoundException, DbException, JMSException {
        int flags = Db.DB_CREATE; // | Db.DB_AUTO_COMMIT
View Full Code Here

                Db.DB_CREATE;

        if (runRecovery) {
            envFlags |= Db.DB_RECOVER;
        }
        env.open(dir.getPath(), envFlags, 0);
        return env;
    }

    public static Db open(DbEnv environment, String name, boolean isQueue) throws FileNotFoundException, DbException, JMSException {
        int flags = Db.DB_CREATE; // | Db.DB_AUTO_COMMIT
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.