Package com.linkedin.venice.controller
Class HelixVeniceClusterResources
- java.lang.Object
-
- com.linkedin.venice.controller.HelixVeniceClusterResources
-
- All Implemented Interfaces:
VeniceResource
public class HelixVeniceClusterResources extends java.lang.Object implements 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
Constructors Constructor Description HelixVeniceClusterResources(java.lang.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, java.util.Optional<DynamicAccessController> accessController, HelixAdminClient helixAdminClient)
-
Method Summary
-
-
-
Constructor Detail
-
HelixVeniceClusterResources
public HelixVeniceClusterResources(java.lang.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, java.util.Optional<DynamicAccessController> accessController, HelixAdminClient helixAdminClient)
-
-
Method Detail
-
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
public ReadWriteStoreRepository getStoreMetadataRepository()
-
getSchemaRepository
public ReadWriteSchemaRepository getSchemaRepository()
-
getRoutingDataRepository
public HelixExternalViewRepository getRoutingDataRepository()
-
getCustomizedViewRepository
public HelixCustomizedViewOfflinePushRepository getCustomizedViewRepository()
-
getMessageChannel
public HelixStatusMessageChannel getMessageChannel()
-
getHelixManager
public SafeHelixManager getHelixManager()
-
getConfig
public VeniceControllerClusterConfig getConfig()
-
getPushMonitor
public PushMonitorDelegator getPushMonitor()
-
getRoutersClusterManager
public ZkRoutersClusterManager getRoutersClusterManager()
-
getMetaStoreWriter
public java.util.Optional<MetaStoreWriter> getMetaStoreWriter()
-
getStoreConfigAccessor
public ZkStoreConfigAccessor getStoreConfigAccessor()
-
getClusterLockManager
public ClusterLockManager getClusterLockManager()
-
getVeniceAdminStats
public VeniceAdminStats getVeniceAdminStats()
-
getStoragePersonaRepository
public StoragePersonaRepository getStoragePersonaRepository()
-
lockForShutdown
public AutoCloseableLock 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.
-
-