public class DruidCoordinator extends Object
Modifier and Type | Class and Description |
---|---|
class |
DruidCoordinator.CoordinatorRunnable |
static class |
DruidCoordinator.DruidCoordinatorVersionConverter |
Modifier and Type | Field and Description |
---|---|
static String |
COORDINATOR_OWNER_NODE |
Constructor and Description |
---|
DruidCoordinator(DruidCoordinatorConfig config,
ZkPathsConfig zkPaths,
JacksonConfigManager configManager,
MetadataSegmentManager metadataSegmentManager,
ServerInventoryView serverInventoryView,
MetadataRuleManager metadataRuleManager,
org.apache.curator.framework.CuratorFramework curator,
com.metamx.emitter.service.ServiceEmitter emitter,
com.metamx.common.concurrent.ScheduledExecutorFactory scheduledExecutorFactory,
IndexingServiceClient indexingServiceClient,
LoadQueueTaskMaster taskMaster,
ServiceAnnouncer serviceAnnouncer,
DruidNode self) |
Modifier and Type | Method and Description |
---|---|
void |
enableDatasource(String ds) |
Iterable<io.druid.timeline.DataSegment> |
getAvailableDataSegments() |
String |
getCurrentLeader() |
CoordinatorDynamicConfig |
getDynamicConfigs() |
Map<String,LoadQueuePeon> |
getLoadManagementPeons() |
Map<String,Double> |
getLoadStatus() |
Set<io.druid.timeline.DataSegment> |
getOrderedAvailableDataSegments() |
Map<String,CountingMap<String>> |
getReplicationStatus() |
CountingMap<String> |
getSegmentAvailability() |
boolean |
isLeader() |
void |
moveSegment(ImmutableDruidServer fromServer,
ImmutableDruidServer toServer,
String segmentName,
LoadPeonCallback callback) |
void |
removeDatasource(String ds) |
void |
removeSegment(io.druid.timeline.DataSegment segment) |
void |
start() |
void |
stop() |
public static final String COORDINATOR_OWNER_NODE
@Inject public DruidCoordinator(DruidCoordinatorConfig config, ZkPathsConfig zkPaths, JacksonConfigManager configManager, MetadataSegmentManager metadataSegmentManager, ServerInventoryView serverInventoryView, MetadataRuleManager metadataRuleManager, org.apache.curator.framework.CuratorFramework curator, com.metamx.emitter.service.ServiceEmitter emitter, com.metamx.common.concurrent.ScheduledExecutorFactory scheduledExecutorFactory, IndexingServiceClient indexingServiceClient, LoadQueueTaskMaster taskMaster, ServiceAnnouncer serviceAnnouncer, DruidNode self)
public boolean isLeader()
public Map<String,LoadQueuePeon> getLoadManagementPeons()
public Map<String,CountingMap<String>> getReplicationStatus()
public CountingMap<String> getSegmentAvailability()
public CoordinatorDynamicConfig getDynamicConfigs()
public void removeSegment(io.druid.timeline.DataSegment segment)
public void removeDatasource(String ds)
public void enableDatasource(String ds)
public String getCurrentLeader()
public void moveSegment(ImmutableDruidServer fromServer, ImmutableDruidServer toServer, String segmentName, LoadPeonCallback callback)
public Set<io.druid.timeline.DataSegment> getOrderedAvailableDataSegments()
public Iterable<io.druid.timeline.DataSegment> getAvailableDataSegments()
public void start()
public void stop()
Copyright © 2011–2015. All rights reserved.