public class ZkCoordinator extends BaseZkCoordinator
Constructor and Description |
---|
ZkCoordinator(com.fasterxml.jackson.databind.ObjectMapper jsonMapper,
SegmentLoaderConfig config,
ZkPathsConfig zkPaths,
DruidServerMetadata me,
DataSegmentAnnouncer announcer,
org.apache.curator.framework.CuratorFramework curator,
ServerManager serverManager,
com.metamx.common.concurrent.ScheduledExecutorFactory factory) |
Modifier and Type | Method and Description |
---|---|
void |
addSegment(io.druid.timeline.DataSegment segment,
DataSegmentChangeCallback callback) |
DataSegmentChangeHandler |
getDataSegmentChangeHandler() |
void |
loadLocalCache() |
void |
removeSegment(io.druid.timeline.DataSegment segment,
DataSegmentChangeCallback callback) |
isStarted, start, stop
@Inject public ZkCoordinator(com.fasterxml.jackson.databind.ObjectMapper jsonMapper, SegmentLoaderConfig config, ZkPathsConfig zkPaths, DruidServerMetadata me, DataSegmentAnnouncer announcer, org.apache.curator.framework.CuratorFramework curator, ServerManager serverManager, com.metamx.common.concurrent.ScheduledExecutorFactory factory)
public void loadLocalCache()
loadLocalCache
in class BaseZkCoordinator
public DataSegmentChangeHandler getDataSegmentChangeHandler()
getDataSegmentChangeHandler
in class BaseZkCoordinator
public void addSegment(io.druid.timeline.DataSegment segment, DataSegmentChangeCallback callback)
public void removeSegment(io.druid.timeline.DataSegment segment, DataSegmentChangeCallback callback)
Copyright © 2011–2015. All rights reserved.