public class DruidCoordinator extends Object
| Modifier and Type | Class and Description |
|---|---|
protected class |
DruidCoordinator.DutiesRunnable |
| Constructor and Description |
|---|
DruidCoordinator(DruidCoordinatorConfig config,
ZkPathsConfig zkPaths,
JacksonConfigManager configManager,
SegmentsMetadataManager segmentsMetadataManager,
ServerInventoryView serverInventoryView,
MetadataRuleManager metadataRuleManager,
com.google.inject.Provider<org.apache.curator.framework.CuratorFramework> curatorProvider,
ServiceEmitter emitter,
ScheduledExecutorFactory scheduledExecutorFactory,
IndexingServiceClient indexingServiceClient,
LoadQueueTaskMaster taskMaster,
ServiceAnnouncer serviceAnnouncer,
DruidNode self,
Set<CoordinatorDuty> metadataStoreManagementDuties,
Set<CoordinatorDuty> indexingServiceDuties,
CoordinatorCustomDutyGroups customDutyGroups,
BalancerStrategyFactory factory,
LookupCoordinatorManager lookupCoordinatorManager,
DruidLeaderSelector coordLeaderSelector,
CompactSegments compactSegments,
ZkEnablementConfig zkEnablementConfig) |
@Inject public DruidCoordinator(DruidCoordinatorConfig config, ZkPathsConfig zkPaths, JacksonConfigManager configManager, SegmentsMetadataManager segmentsMetadataManager, ServerInventoryView serverInventoryView, MetadataRuleManager metadataRuleManager, com.google.inject.Provider<org.apache.curator.framework.CuratorFramework> curatorProvider, ServiceEmitter emitter, ScheduledExecutorFactory scheduledExecutorFactory, IndexingServiceClient indexingServiceClient, LoadQueueTaskMaster taskMaster, ServiceAnnouncer serviceAnnouncer, DruidNode self, Set<CoordinatorDuty> metadataStoreManagementDuties, Set<CoordinatorDuty> indexingServiceDuties, CoordinatorCustomDutyGroups customDutyGroups, BalancerStrategyFactory factory, LookupCoordinatorManager lookupCoordinatorManager, DruidLeaderSelector coordLeaderSelector, CompactSegments compactSegments, ZkEnablementConfig zkEnablementConfig)
public boolean isLeader()
public Map<String,LoadQueuePeon> getLoadManagementPeons()
public Map<String,it.unimi.dsi.fastutil.objects.Object2LongMap<String>> computeUnderReplicationCountsPerDataSourcePerTier()
public Map<String,it.unimi.dsi.fastutil.objects.Object2LongMap<String>> computeUnderReplicationCountsPerDataSourcePerTierUsingClusterView()
public Map<String,it.unimi.dsi.fastutil.objects.Object2LongMap<String>> computeUnderReplicationCountsPerDataSourcePerTierForSegments(Iterable<DataSegment> dataSegments)
public Map<String,it.unimi.dsi.fastutil.objects.Object2LongMap<String>> computeUnderReplicationCountsPerDataSourcePerTierForSegmentsUsingClusterView(Iterable<DataSegment> dataSegments)
public it.unimi.dsi.fastutil.objects.Object2IntMap<String> computeNumsUnavailableUsedSegmentsPerDataSource()
@Nullable public Long getTotalSizeOfSegmentsAwaitingCompaction(String dataSource)
@Nullable public AutoCompactionSnapshot getAutoCompactionSnapshotForDataSource(String dataSource)
public Map<String,AutoCompactionSnapshot> getAutoCompactionSnapshot()
public CoordinatorDynamicConfig getDynamicConfigs()
public CoordinatorCompactionConfig getCompactionConfig()
public void markSegmentAsUnused(DataSegment segment)
public String getCurrentLeader()
public void moveSegment(DruidCoordinatorRuntimeParams params, ImmutableDruidServer fromServer, ImmutableDruidServer toServer, DataSegment segment, LoadPeonCallback callback)
public int getCachedBalancerThreadNumber()
public com.google.common.util.concurrent.ListeningExecutorService getBalancerExec()
public void start()
public void stop()
public void runCompactSegmentsDuty()
Copyright © 2011–2021 The Apache Software Foundation. All rights reserved.