com.voidsearch.voidbase.storage.bdb
Class BDBStore

java.lang.Object
  extended by com.voidsearch.voidbase.storage.bdb.BDBStore

public class BDBStore
extends java.lang.Object


Field Summary
protected  com.sleepycat.je.Environment env
           
protected  com.sleepycat.je.EnvironmentConfig envConfig
           
protected static org.slf4j.Logger logger
           
protected  com.sleepycat.persist.PrimaryIndex<java.lang.String,BDBRecord> pIdx
           
protected  com.sleepycat.persist.EntityStore store
           
protected  com.sleepycat.persist.StoreConfig storeConfig
           
 
Constructor Summary
BDBStore(java.lang.String name, java.lang.String path)
           
 
Method Summary
 void close()
           
protected  void createPath(java.lang.String path)
           
 void delete(java.lang.String key)
           
 void flush()
           
 java.lang.String get(java.lang.String key)
           
 void put(java.lang.String key, java.lang.String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

env

protected com.sleepycat.je.Environment env

store

protected com.sleepycat.persist.EntityStore store

storeConfig

protected com.sleepycat.persist.StoreConfig storeConfig

envConfig

protected com.sleepycat.je.EnvironmentConfig envConfig

pIdx

protected com.sleepycat.persist.PrimaryIndex<java.lang.String,BDBRecord> pIdx

logger

protected static final org.slf4j.Logger logger
Constructor Detail

BDBStore

public BDBStore(java.lang.String name,
                java.lang.String path)
         throws StorageException
Throws:
StorageException
Method Detail

close

public void close()
           throws StorageException
Throws:
StorageException

put

public void put(java.lang.String key,
                java.lang.String value)
         throws StorageException
Throws:
StorageException

get

public java.lang.String get(java.lang.String key)
                     throws StorageException
Throws:
StorageException

delete

public void delete(java.lang.String key)
            throws StorageException
Throws:
StorageException

flush

public void flush()
           throws StorageException
Throws:
StorageException

createPath

protected void createPath(java.lang.String path)
                   throws StorageException
Throws:
StorageException


Copyright © 2009. All Rights Reserved.