|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectvoldemort.store.bdb.BdbStorageConfiguration
public class BdbStorageConfiguration
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 |
com.sleepycat.je.Environment |
getEnvironment(StoreDefinition storeDef)
|
java.lang.String |
getEnvStatsAsString(java.lang.String storeName)
|
java.lang.String |
getEnvStatsAsString(java.lang.String storeName,
boolean fast)
|
long |
getReservedCacheSize()
|
java.lang.String |
getStats(java.lang.String storeName,
boolean fast)
|
StorageEngine<ByteArray,byte[],byte[]> |
getStore(StoreDefinition storeDef,
RoutingStrategy strategy)
Get an initialized storage implementation |
java.lang.String |
getType()
Get the type of stores returned by this configuration |
void |
update(StoreDefinition storeDef)
Detect what has changed in the store definition and rewire BDB environments accordingly. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String TYPE_NAME
| Constructor Detail |
|---|
public BdbStorageConfiguration(VoldemortConfig config)
| Method Detail |
|---|
public StorageEngine<ByteArray,byte[],byte[]> getStore(StoreDefinition storeDef,
RoutingStrategy strategy)
StorageConfiguration
getStore in interface StorageConfigurationstoreDef - store definitionstrategy - routing strategy used for the store
public com.sleepycat.je.Environment getEnvironment(StoreDefinition storeDef)
throws com.sleepycat.je.DatabaseException
com.sleepycat.je.DatabaseExceptionpublic java.lang.String getType()
StorageConfiguration
getType in interface StorageConfiguration
public java.lang.String getStats(java.lang.String storeName,
boolean fast)
public java.lang.String getEnvStatsAsString(java.lang.String storeName)
throws java.lang.Exception
java.lang.Exception
public java.lang.String getEnvStatsAsString(java.lang.String storeName,
boolean fast)
throws java.lang.Exception
java.lang.Exceptionpublic void cleanLogs()
public void close()
StorageConfiguration
close in interface StorageConfigurationpublic void update(StoreDefinition storeDef)
update in interface StorageConfigurationstoreDef - updated store definitionpublic long getReservedCacheSize()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||