|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectvoldemort.store.memory.InMemoryStorageConfiguration
public class InMemoryStorageConfiguration
A storage engine that uses a java.util.ConcurrentHashMap to hold the entries
Field Summary | |
---|---|
static java.lang.String |
TYPE_NAME
|
Constructor Summary | |
---|---|
InMemoryStorageConfiguration()
|
|
InMemoryStorageConfiguration(VoldemortConfig config)
|
Method Summary | |
---|---|
void |
close()
Close the storage configuration |
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 |
removeStorageEngine(StorageEngine<ByteArray,byte[],byte[]> engine)
Remove the storage engine from the underlying storage configuration |
void |
update(StoreDefinition storeDef)
Update the storage configuration at runtime |
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 InMemoryStorageConfiguration()
public InMemoryStorageConfiguration(VoldemortConfig config)
Method Detail |
---|
public StorageEngine<ByteArray,byte[],byte[]> getStore(StoreDefinition storeDef, RoutingStrategy strategy)
StorageConfiguration
getStore
in interface StorageConfiguration
storeDef
- store definitionstrategy
- routing strategy used for the store
public java.lang.String getType()
StorageConfiguration
getType
in interface StorageConfiguration
public void close()
StorageConfiguration
close
in interface StorageConfiguration
public void update(StoreDefinition storeDef)
StorageConfiguration
update
in interface StorageConfiguration
storeDef
- new store definition objectpublic void removeStorageEngine(StorageEngine<ByteArray,byte[],byte[]> engine)
StorageConfiguration
removeStorageEngine
in interface StorageConfiguration
engine
- Specifies the storage engine to be removed
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |