Class InMemoryStorageEngineFactory
- java.lang.Object
-
- com.linkedin.davinci.store.StorageEngineFactory
-
- com.linkedin.davinci.store.memory.InMemoryStorageEngineFactory
-
public class InMemoryStorageEngineFactory extends StorageEngineFactory
-
-
Constructor Summary
Constructors Constructor Description InMemoryStorageEngineFactory(VeniceServerConfig serverConfig)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Close the storage configurationvoid
closeStorageEngine(AbstractStorageEngine engine)
Close the storage engine from the underlying storage configurationjava.util.Set<java.lang.String>
getPersistedStoreNames()
Retrieve all the stores persisted previouslyPersistenceType
getPersistenceType()
Return the persistence type current factory supports.AbstractStorageEngine
getStorageEngine(VeniceStoreVersionConfig storeConfig)
Get an initialized storage implementationvoid
removeStorageEngine(AbstractStorageEngine engine)
Remove the storage engine from the underlying storage configurationvoid
removeStorageEngine(java.lang.String storeName)
Remove the storage engine without opening it.void
removeStorageEnginePartition(java.lang.String storeName, int partition)
-
Methods inherited from class com.linkedin.davinci.store.StorageEngineFactory
getStorageEngine, verifyPersistenceType, verifyPersistenceType
-
-
-
-
Constructor Detail
-
InMemoryStorageEngineFactory
public InMemoryStorageEngineFactory(VeniceServerConfig serverConfig)
-
-
Method Detail
-
getStorageEngine
public AbstractStorageEngine getStorageEngine(VeniceStoreVersionConfig storeConfig) throws StorageInitializationException
Description copied from class:StorageEngineFactory
Get an initialized storage implementation- Specified by:
getStorageEngine
in classStorageEngineFactory
- Parameters:
storeConfig
- store definition- Returns:
- The storage engine
- Throws:
StorageInitializationException
-
getPersistedStoreNames
public java.util.Set<java.lang.String> getPersistedStoreNames()
Description copied from class:StorageEngineFactory
Retrieve all the stores persisted previously- Specified by:
getPersistedStoreNames
in classStorageEngineFactory
- Returns:
- All the store names
-
close
public void close()
Description copied from class:StorageEngineFactory
Close the storage configuration- Specified by:
close
in classStorageEngineFactory
-
removeStorageEngine
public void removeStorageEngine(AbstractStorageEngine engine)
Description copied from class:StorageEngineFactory
Remove the storage engine from the underlying storage configuration- Specified by:
removeStorageEngine
in classStorageEngineFactory
- Parameters:
engine
- Specifies the storage engine to be removed
-
removeStorageEngine
public void removeStorageEngine(java.lang.String storeName)
Description copied from class:StorageEngineFactory
Remove the storage engine without opening it.- Specified by:
removeStorageEngine
in classStorageEngineFactory
-
removeStorageEnginePartition
public void removeStorageEnginePartition(java.lang.String storeName, int partition)
- Specified by:
removeStorageEnginePartition
in classStorageEngineFactory
-
closeStorageEngine
public void closeStorageEngine(AbstractStorageEngine engine)
Description copied from class:StorageEngineFactory
Close the storage engine from the underlying storage configuration- Specified by:
closeStorageEngine
in classStorageEngineFactory
- Parameters:
engine
- Specifies the storage engine to be removed
-
getPersistenceType
public PersistenceType getPersistenceType()
Description copied from class:StorageEngineFactory
Return the persistence type current factory supports.- Specified by:
getPersistenceType
in classStorageEngineFactory
- Returns:
-
-