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 Summary
ConstructorsConstructorDescriptionHelixVeniceClusterResources
(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) -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
Lock the resource for shutdown operation(leadership handle over and controller shutdown).void
refresh()
void
CauseErrorPartitionResetTask
service to begin executing.void
CauseLeakedPushStatusCleanUpService
service to begin executing.void
CauseErrorPartitionResetTask
service to stop executing.void
CauseLeakedPushStatusCleanUpService
service to stop executing.
-
Constructor Details
-
HelixVeniceClusterResources
public 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)
-
-
Method Details
-
refresh
public void refresh()- Specified by:
refresh
in interfaceVeniceResource
-
clear
public void clear()- Specified by:
clear
in interfaceVeniceResource
-
startErrorPartitionResetTask
public void startErrorPartitionResetTask()CauseErrorPartitionResetTask
service to begin executing. -
stopErrorPartitionResetTask
public void stopErrorPartitionResetTask()CauseErrorPartitionResetTask
service to stop executing. -
startLeakedPushStatusCleanUpService
public void startLeakedPushStatusCleanUpService()CauseLeakedPushStatusCleanUpService
service to begin executing. -
stopLeakedPushStatusCleanUpService
public void stopLeakedPushStatusCleanUpService()CauseLeakedPushStatusCleanUpService
service to stop executing. -
getStoreMetadataRepository
-
getSchemaRepository
-
getRoutingDataRepository
-
getCustomizedViewRepository
-
getMessageChannel
-
getHelixManager
-
getConfig
-
getPushMonitor
-
getRoutersClusterManager
-
getMetaStoreWriter
-
getStoreConfigAccessor
-
getClusterLockManager
-
getVeniceAdminStats
-
getStoragePersonaRepository
-
lockForShutdown
Lock the resource for shutdown operation(leadership handle over and controller shutdown). Once acquired the lock, no other thread could operate for this cluster.
-