public class DruidCoordinator extends Object
| Constructor and Description |
|---|
DruidCoordinator(DruidCoordinatorConfig config,
ZkPathsConfig zkPaths,
JacksonConfigManager configManager,
SegmentsMetadataManager segmentsMetadataManager,
ServerInventoryView serverInventoryView,
MetadataRuleManager metadataRuleManager,
org.apache.curator.framework.CuratorFramework curator,
ServiceEmitter emitter,
ScheduledExecutorFactory scheduledExecutorFactory,
IndexingServiceClient indexingServiceClient,
LoadQueueTaskMaster taskMaster,
ServiceAnnouncer serviceAnnouncer,
DruidNode self,
Set<CoordinatorDuty> indexingServiceDuties,
BalancerStrategyFactory factory,
LookupCoordinatorManager lookupCoordinatorManager,
DruidLeaderSelector coordLeaderSelector,
CompactSegments compactSegments) |
@Inject public DruidCoordinator(DruidCoordinatorConfig config, ZkPathsConfig zkPaths, JacksonConfigManager configManager, SegmentsMetadataManager segmentsMetadataManager, ServerInventoryView serverInventoryView, MetadataRuleManager metadataRuleManager, org.apache.curator.framework.CuratorFramework curator, ServiceEmitter emitter, ScheduledExecutorFactory scheduledExecutorFactory, IndexingServiceClient indexingServiceClient, LoadQueueTaskMaster taskMaster, ServiceAnnouncer serviceAnnouncer, DruidNode self, Set<CoordinatorDuty> indexingServiceDuties, BalancerStrategyFactory factory, LookupCoordinatorManager lookupCoordinatorManager, DruidLeaderSelector coordLeaderSelector, CompactSegments compactSegments)
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>> computeUnderReplicationCountsPerDataSourcePerTierForSegments(Iterable<DataSegment> dataSegments)
public it.unimi.dsi.fastutil.objects.Object2IntMap<String> computeNumsUnavailableUsedSegmentsPerDataSource()
@Nullable public Long getTotalSizeOfSegmentsAwaitingCompaction(String dataSource)
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 void start()
public void stop()
public void runCompactSegmentsDuty()
Copyright © 2011–2020 The Apache Software Foundation. All rights reserved.