Class BlackHoleStorageEngineFactory
- java.lang.Object
-
- com.linkedin.davinci.store.StorageEngineFactory
-
- com.linkedin.davinci.store.blackhole.BlackHoleStorageEngineFactory
-
public class BlackHoleStorageEngineFactory extends StorageEngineFactory
-
-
Constructor Summary
Constructors Constructor Description BlackHoleStorageEngineFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Close the storage configurationvoidcloseStorageEngine(AbstractStorageEngine engine)Close the storage engine from the underlying storage configurationjava.util.Set<java.lang.String>getPersistedStoreNames()Retrieve all the stores persisted previouslyPersistenceTypegetPersistenceType()Return the persistence type current factory supports.AbstractStorageEnginegetStorageEngine(VeniceStoreVersionConfig storeDef)Get an initialized storage implementationvoidremoveStorageEngine(AbstractStorageEngine engine)Remove the storage engine from the underlying storage configurationvoidremoveStorageEngine(java.lang.String storeName)Remove the storage engine without opening it.voidremoveStorageEnginePartition(java.lang.String storeName, int partition)-
Methods inherited from class com.linkedin.davinci.store.StorageEngineFactory
getStorageEngine, verifyPersistenceType, verifyPersistenceType
-
-
-
-
Method Detail
-
getStorageEngine
public AbstractStorageEngine getStorageEngine(VeniceStoreVersionConfig storeDef) throws StorageInitializationException
Description copied from class:StorageEngineFactoryGet an initialized storage implementation- Specified by:
getStorageEnginein classStorageEngineFactory- Parameters:
storeDef- store definition- Returns:
- The storage engine
- Throws:
StorageInitializationException
-
getPersistedStoreNames
public java.util.Set<java.lang.String> getPersistedStoreNames()
Description copied from class:StorageEngineFactoryRetrieve all the stores persisted previously- Specified by:
getPersistedStoreNamesin classStorageEngineFactory- Returns:
- All the store names
-
close
public void close()
Description copied from class:StorageEngineFactoryClose the storage configuration- Specified by:
closein classStorageEngineFactory
-
removeStorageEngine
public void removeStorageEngine(AbstractStorageEngine engine)
Description copied from class:StorageEngineFactoryRemove the storage engine from the underlying storage configuration- Specified by:
removeStorageEnginein classStorageEngineFactory- Parameters:
engine- Specifies the storage engine to be removed
-
removeStorageEngine
public void removeStorageEngine(java.lang.String storeName)
Description copied from class:StorageEngineFactoryRemove the storage engine without opening it.- Specified by:
removeStorageEnginein classStorageEngineFactory
-
removeStorageEnginePartition
public void removeStorageEnginePartition(java.lang.String storeName, int partition)- Specified by:
removeStorageEnginePartitionin classStorageEngineFactory
-
closeStorageEngine
public void closeStorageEngine(AbstractStorageEngine engine)
Description copied from class:StorageEngineFactoryClose the storage engine from the underlying storage configuration- Specified by:
closeStorageEnginein classStorageEngineFactory- Parameters:
engine- Specifies the storage engine to be removed
-
getPersistenceType
public PersistenceType getPersistenceType()
Description copied from class:StorageEngineFactoryReturn the persistence type current factory supports.- Specified by:
getPersistenceTypein classStorageEngineFactory- Returns:
-
-