voldemort.store.views
Class ViewStorageConfiguration

java.lang.Object
  extended by voldemort.store.views.ViewStorageConfiguration
All Implemented Interfaces:
StorageConfiguration

public class ViewStorageConfiguration
extends java.lang.Object
implements StorageConfiguration


Field Summary
static java.lang.String TYPE_NAME
           
 
Constructor Summary
ViewStorageConfiguration(VoldemortConfig config, java.util.List<StoreDefinition> stores, StoreRepository repo)
           
 
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
static SerializerFactory loadSerializerFactory(java.lang.String className)
           
static View<?,?,?,?> loadTransformation(java.lang.String className)
           
 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

TYPE_NAME

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

ViewStorageConfiguration

public ViewStorageConfiguration(VoldemortConfig config,
                                java.util.List<StoreDefinition> stores,
                                StoreRepository repo)
Method Detail

close

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

Specified by:
close in interface StorageConfiguration

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 definition
strategy - 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

loadSerializerFactory

public static SerializerFactory loadSerializerFactory(java.lang.String className)

loadTransformation

public static View<?,?,?,?> loadTransformation(java.lang.String className)

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

removeStorageEngine

public void removeStorageEngine(StorageEngine<ByteArray,byte[],byte[]> engine)
Description copied from interface: StorageConfiguration
Remove the storage engine from the underlying storage configuration

Specified by:
removeStorageEngine in interface StorageConfiguration
Parameters:
engine - Specifies the storage engine to be removed


Jay Kreps, Roshan Sumbaly, Alex Feinberg, Bhupesh Bansal, Lei Gao, Chinmay Soman, Vinoth Chandar, Zhongjie Wu