Package com.linkedin.venice.controller
Class HelixVeniceClusterResources
java.lang.Object
com.linkedin.venice.controller.HelixVeniceClusterResources
- All Implemented Interfaces:
- VeniceResource
Aggregate all essentials resources required by controller to manage a Venice cluster.
 
All resources in this class is dedicated for one Venice cluster.
- 
Constructor SummaryConstructorsConstructorDescriptionHelixVeniceClusterResources(String clusterName, org.apache.helix.zookeeper.impl.client.ZkClient zkClient, HelixAdapterSerializer adapterSerializer, SafeHelixManager helixManager, VeniceControllerClusterConfig config, VeniceHelixAdmin admin, io.tehuti.metrics.MetricsRepository metricsRepository, RealTimeTopicSwitcher realTimeTopicSwitcher, Optional<DynamicAccessController> accessController, HelixAdminClient helixAdminClient, VeniceVersionLifecycleEventManager veniceVersionLifecycleEventManager) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidclear()booleanisSourceCluster(String clusterName, String storeName) Lock the resource for shutdown operation(leadership handle over and controller shutdown).voidrefresh()voidCauseDeadStoreStatsPreFetchTaskservice to begin executing.voidCauseErrorPartitionResetTaskservice to begin executing.voidCauseLeakedPushStatusCleanUpServiceservice to begin executing.voidCauseLogCompactionServiceservice to begin executing.voidCauseMultiTaskSchedulerServiceservice to begin executing.voidCauseProtocolVersionAutoDetectionServiceservice to begin executing.voidCauseDeadStoreStatsPreFetchTaskservice to stop executing.voidCauseErrorPartitionResetTaskservice to stop executing.voidCauseLeakedPushStatusCleanUpServiceservice to stop executing.voidCauseLogCompactionServiceservice to stop executing.voidCauseMultiTaskSchedulerServiceservice to stop executing.voidCauseProtocolVersionAutoDetectionServiceservice to stop executing.
- 
Constructor Details- 
HelixVeniceClusterResourcespublic HelixVeniceClusterResources(String clusterName, org.apache.helix.zookeeper.impl.client.ZkClient zkClient, HelixAdapterSerializer adapterSerializer, SafeHelixManager helixManager, VeniceControllerClusterConfig config, VeniceHelixAdmin admin, io.tehuti.metrics.MetricsRepository metricsRepository, RealTimeTopicSwitcher realTimeTopicSwitcher, Optional<DynamicAccessController> accessController, HelixAdminClient helixAdminClient, VeniceVersionLifecycleEventManager veniceVersionLifecycleEventManager) 
 
- 
- 
Method Details- 
refreshpublic void refresh()- Specified by:
- refreshin interface- VeniceResource
 
- 
clearpublic void clear()- Specified by:
- clearin interface- VeniceResource
 
- 
startDeadStoreStatsPreFetchTaskpublic void startDeadStoreStatsPreFetchTask()CauseDeadStoreStatsPreFetchTaskservice to begin executing.
- 
stopDeadStoreStatsPreFetchTaskpublic void stopDeadStoreStatsPreFetchTask()CauseDeadStoreStatsPreFetchTaskservice to stop executing.
- 
startErrorPartitionResetTaskpublic void startErrorPartitionResetTask()CauseErrorPartitionResetTaskservice to begin executing.
- 
stopErrorPartitionResetTaskpublic void stopErrorPartitionResetTask()CauseErrorPartitionResetTaskservice to stop executing.
- 
startLeakedPushStatusCleanUpServicepublic void startLeakedPushStatusCleanUpService()CauseLeakedPushStatusCleanUpServiceservice to begin executing.
- 
startMultiTaskSchedulerServicepublic void startMultiTaskSchedulerService()CauseMultiTaskSchedulerServiceservice to begin executing.
- 
stopMultiTaskSchedulerServicepublic void stopMultiTaskSchedulerService()CauseMultiTaskSchedulerServiceservice to stop executing.
- 
stopLeakedPushStatusCleanUpServicepublic void stopLeakedPushStatusCleanUpService()CauseLeakedPushStatusCleanUpServiceservice to stop executing.
- 
startProtocolVersionAutoDetectionServicepublic void startProtocolVersionAutoDetectionService()CauseProtocolVersionAutoDetectionServiceservice to begin executing.
- 
stopProtocolVersionAutoDetectionServicepublic void stopProtocolVersionAutoDetectionService()CauseProtocolVersionAutoDetectionServiceservice to stop executing.
- 
startLogCompactionServicepublic void startLogCompactionService()CauseLogCompactionServiceservice to begin executing.
- 
stopLogCompactionServicepublic void stopLogCompactionService()CauseLogCompactionServiceservice to stop executing.
- 
getStoreMetadataRepository
- 
getSchemaRepository
- 
getRoutingDataRepository
- 
getCustomizedViewRepository
- 
getMessageChannel
- 
getHelixManager
- 
getConfig
- 
getPushMonitor
- 
getRoutersClusterManager
- 
getMetaStoreWriter
- 
getStoreConfigAccessor
- 
getClusterLockManager
- 
getVeniceAdminStats
- 
getStoragePersonaRepository
- 
getMultiTaskSchedulerService
- 
lockForShutdownLock the resource for shutdown operation(leadership handle over and controller shutdown). Once acquired the lock, no other thread could operate for this cluster.
- 
getVeniceVersionLifecycleEventManager
- 
isSourceCluster
 
-