org.sourceforge.bdbadapter
Class AdapterEnv

java.lang.Object
  |
  +--com.sleepycat.db.DbEnv
        |
        +--org.sourceforge.bdbadapter.AdapterEnv

public class AdapterEnv
extends com.sleepycat.db.DbEnv


Inner classes inherited from class com.sleepycat.db.DbEnv
com.sleepycat.db.DbEnv.RepProcessMessage
 
Field Summary
private static java.util.Map databases
           
private static org.sourceforge.jcalogger.Logger logger
           
private static AdapterEnv theInstance
           
 
Fields inherited from class com.sleepycat.db.DbEnv
app_dispatch_, constructor_flags_, dblist_, errcall_, errpfx_, errstream_, feedback_, private_dbobj_, private_info_, rep_transport_
 
Constructor Summary
private AdapterEnv(int flags, java.lang.String dbEnvPath, int cacheSizeGigabytes, int cacheSizeBytes, int cachePieces)
           
 
Method Summary
 void closeDatabase(java.lang.String databasePath)
           
static AdapterEnv getInstance(org.sourceforge.jcalogger.Logger logger, int flags, java.lang.String dbEnvPath, int cacheSizeGigabytes, int cacheSizeBytes, int cachePieces)
           
private static void init(int flags, java.lang.String dbEnvPath, int cacheSizeGigabytes, int cacheSizeBytes, int cachePieces, org.sourceforge.jcalogger.Logger logger)
           
 boolean isClosed()
           
private static void log(java.lang.String message)
           
 com.sleepycat.db.Db openDatabase(java.lang.String databasePath)
           
 
Methods inherited from class com.sleepycat.db.DbEnv
_add_db, _close, _finalize, _init_using_db, _init, _notify_db_close, _notify_dbs, _remove_db, _set_errcall, _set_errpfx, _set_tx_timestamp, , app_dispatch_changed, close, dbremove, dbrename, err, errx, feedback_changed, finalize, get_version_major, get_version_minor, get_version_patch, get_version_string, lock_detect, lock_get, lock_id_free, lock_id, lock_put, lock_stat, lock_vec, log_archive, log_compare, log_cursor, log_file, log_flush, log_put, log_stat, memp_fstat, memp_stat, memp_trickle, open, remove, rep_elect, rep_process_message, rep_start, rep_stat, rep_transport_changed, set_app_dispatch, set_cachesize, set_data_dir, set_encrypt, set_errcall, set_error_stream, set_errpfx, set_feedback, set_flags, set_lg_bsize, set_lg_dir, set_lg_max, set_lg_regionmax, set_lk_conflicts, set_lk_detect, set_lk_max_lockers, set_lk_max_locks, set_lk_max_objects, set_lk_max, set_mp_mmapsize, set_rep_limit, set_rep_transport, set_rpc_server, set_shm_key, set_tas_spins, set_timeout, set_tmp_dir, set_tx_max, set_tx_timestamp, set_verbose, strerror, txn_begin, txn_checkpoint, txn_recover, txn_stat
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

theInstance

private static AdapterEnv theInstance

databases

private static java.util.Map databases

logger

private static org.sourceforge.jcalogger.Logger logger
Constructor Detail

AdapterEnv

private AdapterEnv(int flags,
                   java.lang.String dbEnvPath,
                   int cacheSizeGigabytes,
                   int cacheSizeBytes,
                   int cachePieces)
            throws com.sleepycat.db.DbException,
                   java.io.FileNotFoundException
Method Detail

getInstance

public static AdapterEnv getInstance(org.sourceforge.jcalogger.Logger logger,
                                     int flags,
                                     java.lang.String dbEnvPath,
                                     int cacheSizeGigabytes,
                                     int cacheSizeBytes,
                                     int cachePieces)
                              throws com.sleepycat.db.DbException,
                                     java.io.FileNotFoundException

init

private static void init(int flags,
                         java.lang.String dbEnvPath,
                         int cacheSizeGigabytes,
                         int cacheSizeBytes,
                         int cachePieces,
                         org.sourceforge.jcalogger.Logger logger)
                  throws com.sleepycat.db.DbException,
                         java.io.FileNotFoundException

openDatabase

public com.sleepycat.db.Db openDatabase(java.lang.String databasePath)
                                 throws com.sleepycat.db.DbException,
                                        java.io.FileNotFoundException

closeDatabase

public void closeDatabase(java.lang.String databasePath)
                   throws com.sleepycat.db.DbException

isClosed

public boolean isClosed()

log

private static void log(java.lang.String message)