Package com.linkedin.venice.controller
Class UserSystemStoreLifeCycleHelper
- java.lang.Object
-
- com.linkedin.venice.controller.UserSystemStoreLifeCycleHelper
-
public class UserSystemStoreLifeCycleHelper extends java.lang.Object
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
Constructors Constructor Description UserSystemStoreLifeCycleHelper(VeniceParentHelixAdmin parentAdmin, java.util.Optional<AuthorizerService> authorizerService, VeniceControllerMultiClusterConfig multiClusterConfig)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
deleteSystemStore(VeniceHelixAdmin admin, ReadWriteStoreRepository storeRepository, PushMonitorDelegator pushMonitor, java.lang.String clusterName, java.lang.String systemStoreName, boolean isStoreMigrating, MetaStoreWriter metaStoreWriter, org.apache.logging.log4j.Logger LOGGER)
static boolean
isSystemStoreTypeEnabledInUserStore(Store userStore, VeniceSystemStoreType systemStoreType)
This method checks if a specific system store type is enabled in a given user store.static Version
materializeSystemStore(VeniceParentHelixAdmin parentAdmin, java.lang.String clusterName, java.lang.String systemStoreName, java.lang.String pushJobId)
java.util.List<VeniceSystemStoreType>
materializeSystemStoresForUserStore(java.lang.String clusterName, java.lang.String userStoreName)
void
maybeCreateSystemStoreWildcardAcl(java.lang.String storeName)
static void
maybeDeleteSystemStoresForUserStore(VeniceHelixAdmin admin, ReadWriteStoreRepository storeRepository, PushMonitorDelegator pushMonitor, java.lang.String clusterName, Store userStore, MetaStoreWriter metaStoreWriter, org.apache.logging.log4j.Logger LOGGER)
-
-
-
Constructor Detail
-
UserSystemStoreLifeCycleHelper
public UserSystemStoreLifeCycleHelper(VeniceParentHelixAdmin parentAdmin, java.util.Optional<AuthorizerService> authorizerService, VeniceControllerMultiClusterConfig multiClusterConfig)
-
-
Method Detail
-
materializeSystemStoresForUserStore
public java.util.List<VeniceSystemStoreType> materializeSystemStoresForUserStore(java.lang.String clusterName, java.lang.String userStoreName)
-
materializeSystemStore
public static Version materializeSystemStore(VeniceParentHelixAdmin parentAdmin, java.lang.String clusterName, java.lang.String systemStoreName, java.lang.String pushJobId)
-
maybeCreateSystemStoreWildcardAcl
public void maybeCreateSystemStoreWildcardAcl(java.lang.String storeName)
-
deleteSystemStore
public static void deleteSystemStore(VeniceHelixAdmin admin, ReadWriteStoreRepository storeRepository, PushMonitorDelegator pushMonitor, java.lang.String clusterName, java.lang.String systemStoreName, boolean isStoreMigrating, MetaStoreWriter metaStoreWriter, org.apache.logging.log4j.Logger LOGGER)
-
maybeDeleteSystemStoresForUserStore
public static void maybeDeleteSystemStoresForUserStore(VeniceHelixAdmin admin, ReadWriteStoreRepository storeRepository, PushMonitorDelegator pushMonitor, java.lang.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.
-
-