Package com.linkedin.venice.controller
Class UserSystemStoreLifeCycleHelper
java.lang.Object
com.linkedin.venice.controller.UserSystemStoreLifeCycleHelper
This class is responsible for automatically create and delete per user store system store resources when the
corresponding user store is created or deleted.
-
Constructor Summary
ConstructorsConstructorDescriptionUserSystemStoreLifeCycleHelper(VeniceParentHelixAdmin parentAdmin, Optional<AuthorizerService> authorizerService, VeniceControllerMultiClusterConfig multiClusterConfig) -
Method Summary
Modifier and TypeMethodDescriptionstatic voiddeleteSystemStore(VeniceHelixAdmin admin, ReadWriteStoreRepository storeRepository, PushMonitorDelegator pushMonitor, String clusterName, String systemStoreName, boolean isStoreMigrating, MetaStoreWriter metaStoreWriter, org.apache.logging.log4j.Logger LOGGER) static booleanisSystemStoreTypeEnabledInUserStore(Store userStore, VeniceSystemStoreType systemStoreType) This method checks if a specific system store type is enabled in a given user store.static VersionmaterializeSystemStore(VeniceParentHelixAdmin parentAdmin, String clusterName, String systemStoreName, String pushJobId) materializeSystemStoresForUserStore(String clusterName, String userStoreName) voidmaybeCreateSystemStoreWildcardAcl(String storeName) static voidmaybeDeleteSystemStoresForUserStore(VeniceHelixAdmin admin, ReadWriteStoreRepository storeRepository, PushMonitorDelegator pushMonitor, String clusterName, Store userStore, MetaStoreWriter metaStoreWriter, org.apache.logging.log4j.Logger LOGGER)
-
Constructor Details
-
UserSystemStoreLifeCycleHelper
public UserSystemStoreLifeCycleHelper(VeniceParentHelixAdmin parentAdmin, Optional<AuthorizerService> authorizerService, VeniceControllerMultiClusterConfig multiClusterConfig)
-
-
Method Details
-
materializeSystemStoresForUserStore
public List<VeniceSystemStoreType> materializeSystemStoresForUserStore(String clusterName, String userStoreName) -
materializeSystemStore
public static Version materializeSystemStore(VeniceParentHelixAdmin parentAdmin, String clusterName, String systemStoreName, String pushJobId) -
maybeCreateSystemStoreWildcardAcl
-
deleteSystemStore
public static void deleteSystemStore(VeniceHelixAdmin admin, ReadWriteStoreRepository storeRepository, PushMonitorDelegator pushMonitor, String clusterName, String systemStoreName, boolean isStoreMigrating, MetaStoreWriter metaStoreWriter, org.apache.logging.log4j.Logger LOGGER) -
maybeDeleteSystemStoresForUserStore
public static void maybeDeleteSystemStoresForUserStore(VeniceHelixAdmin admin, ReadWriteStoreRepository storeRepository, PushMonitorDelegator pushMonitor, String clusterName, Store userStore, MetaStoreWriter metaStoreWriter, org.apache.logging.log4j.Logger LOGGER) -
isSystemStoreTypeEnabledInUserStore
public static boolean isSystemStoreTypeEnabledInUserStore(Store userStore, VeniceSystemStoreType systemStoreType) This method checks if a specific system store type is enabled in a given user store.
-