voldemort.store.readonly
Class ReadOnlyStorageConfiguration
java.lang.Object
voldemort.store.readonly.ReadOnlyStorageConfiguration
- All Implemented Interfaces:
- StorageConfiguration
public class ReadOnlyStorageConfiguration
- extends java.lang.Object
- implements StorageConfiguration
|
Field Summary |
static java.lang.String |
TYPE_NAME
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TYPE_NAME
public static final java.lang.String TYPE_NAME
- See Also:
- Constant Field Values
ReadOnlyStorageConfiguration
public ReadOnlyStorageConfiguration(VoldemortConfig config)
close
public void close()
- Description copied from interface:
StorageConfiguration
- Close the storage configuration
- Specified by:
close in interface StorageConfiguration
setRoutingStrategy
public void setRoutingStrategy(RoutingStrategy routingStrategy)
getStore
public StorageEngine<ByteArray,byte[],byte[]> getStore(StoreDefinition storeDef,
RoutingStrategy strategy)
- Description copied from interface:
StorageConfiguration
- Get an initialized storage implementation
- Specified by:
getStore in interface StorageConfiguration
- Parameters:
storeDef - store definitionstrategy - routing strategy used for the store
- 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
update
public void update(StoreDefinition storeDef)
- Description copied from interface:
StorageConfiguration
- Update the storage configuration at runtime
- Specified by:
update in interface StorageConfiguration
- Parameters:
storeDef - new store definition object
Jay Kreps, Roshan Sumbaly, Alex Feinberg, Bhupesh Bansal, Lei Gao, Chinmay Soman, Vinoth Chandar, Zhongjie Wu