public class DruidCoordinator extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
DruidCoordinator.CoordinatorRunnable |
| Constructor and Description |
|---|
DruidCoordinator(DruidCoordinatorConfig config,
ZkPathsConfig zkPaths,
JacksonConfigManager configManager,
MetadataSegmentManager segmentsMetadata,
ServerInventoryView serverInventoryView,
MetadataRuleManager metadataRuleManager,
org.apache.curator.framework.CuratorFramework curator,
ServiceEmitter emitter,
ScheduledExecutorFactory scheduledExecutorFactory,
IndexingServiceClient indexingServiceClient,
LoadQueueTaskMaster taskMaster,
ServiceAnnouncer serviceAnnouncer,
DruidNode self,
Set<DruidCoordinatorHelper> indexingServiceHelpers,
BalancerStrategyFactory factory,
LookupCoordinatorManager lookupCoordinatorManager,
DruidLeaderSelector coordLeaderSelector,
DruidCoordinatorSegmentCompactor segmentCompactor) |
| Modifier and Type | Method and Description |
|---|---|
it.unimi.dsi.fastutil.objects.Object2IntMap<String> |
computeNumsUnavailableUsedSegmentsPerDataSource() |
Map<String,it.unimi.dsi.fastutil.objects.Object2LongMap<String>> |
computeUnderReplicationCountsPerDataSourcePerTier() |
CoordinatorCompactionConfig |
getCompactionConfig() |
String |
getCurrentLeader() |
CoordinatorDynamicConfig |
getDynamicConfigs() |
Map<String,LoadQueuePeon> |
getLoadManagementPeons() |
Map<String,Double> |
getLoadStatus() |
boolean |
isLeader() |
void |
markSegmentAsUnused(DataSegment segment) |
void |
moveSegment(DruidCoordinatorRuntimeParams params,
ImmutableDruidServer fromServer,
ImmutableDruidServer toServer,
DataSegment segment,
LoadPeonCallback callback) |
long |
remainingSegmentSizeBytesForCompaction(String dataSource) |
void |
start() |
void |
stop() |
@Inject public DruidCoordinator(DruidCoordinatorConfig config, ZkPathsConfig zkPaths, JacksonConfigManager configManager, MetadataSegmentManager segmentsMetadata, ServerInventoryView serverInventoryView, MetadataRuleManager metadataRuleManager, org.apache.curator.framework.CuratorFramework curator, ServiceEmitter emitter, ScheduledExecutorFactory scheduledExecutorFactory, IndexingServiceClient indexingServiceClient, LoadQueueTaskMaster taskMaster, ServiceAnnouncer serviceAnnouncer, DruidNode self, Set<DruidCoordinatorHelper> indexingServiceHelpers, BalancerStrategyFactory factory, LookupCoordinatorManager lookupCoordinatorManager, DruidLeaderSelector coordLeaderSelector, DruidCoordinatorSegmentCompactor segmentCompactor)
public boolean isLeader()
public Map<String,LoadQueuePeon> getLoadManagementPeons()
public Map<String,it.unimi.dsi.fastutil.objects.Object2LongMap<String>> computeUnderReplicationCountsPerDataSourcePerTier()
public it.unimi.dsi.fastutil.objects.Object2IntMap<String> computeNumsUnavailableUsedSegmentsPerDataSource()
public long remainingSegmentSizeBytesForCompaction(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()
Copyright © 2011–2020 The Apache Software Foundation. All rights reserved.