voldemort.store.bdb
Class BdbStorageConfiguration

java.lang.Object
  extended by voldemort.store.bdb.BdbStorageConfiguration
All Implemented Interfaces:
StorageConfiguration

public class BdbStorageConfiguration
extends java.lang.Object
implements StorageConfiguration

The configuration that is shared between berkeley db instances. This includes the db environment and the configuration


Field Summary
static java.lang.String TYPE_NAME
           
 
Constructor Summary
BdbStorageConfiguration(VoldemortConfig config)
           
 
Method Summary
 void cleanLogs()
          Forceful cleanup the logs
 void close()
          Close the storage configuration
 java.lang.String getEnvStatsAsString(java.lang.String storeName)
           
 com.sleepycat.je.EnvironmentStats getStats(java.lang.String storeName)
           
 StorageEngine<ByteArray,byte[],byte[]> getStore(java.lang.String storeName)
          Get an initialized storage implementation
 java.lang.String getType()
          Get the type of stores returned by this configuration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TYPE_NAME

public static final java.lang.String TYPE_NAME
See Also:
Constant Field Values
Constructor Detail

BdbStorageConfiguration

public BdbStorageConfiguration(VoldemortConfig config)
Method Detail

getStore

public StorageEngine<ByteArray,byte[],byte[]> getStore(java.lang.String storeName)
Description copied from interface: StorageConfiguration
Get an initialized storage implementation

Specified by:
getStore in interface StorageConfiguration
Parameters:
storeName - The name of the storage
Returns:
The storage engine

getType

public java.lang.String getType()
Description copied from interface: StorageConfiguration
Get the type of stores returned by this configuration

Specified by:
getType in interface StorageConfiguration

getStats

public com.sleepycat.je.EnvironmentStats getStats(java.lang.String storeName)

getEnvStatsAsString

public java.lang.String getEnvStatsAsString(java.lang.String storeName)
                                     throws java.lang.Exception
Throws:
java.lang.Exception

cleanLogs

public void cleanLogs()
Forceful cleanup the logs


close

public void close()
Description copied from interface: StorageConfiguration
Close the storage configuration

Specified by:
close in interface StorageConfiguration


Jay Kreps, Roshan Sumbaly, Alex Feinberg, Bhupesh Bansal, Lei Gao