public class BatchDataSegmentAnnouncer extends AbstractDataSegmentAnnouncer
Constructor and Description |
---|
BatchDataSegmentAnnouncer(DruidServerMetadata server,
BatchDataSegmentAnnouncerConfig config,
ZkPathsConfig zkPaths,
Announcer announcer,
com.fasterxml.jackson.databind.ObjectMapper jsonMapper) |
Modifier and Type | Method and Description |
---|---|
void |
announceSegment(DataSegment segment) |
void |
announceSegments(Iterable<DataSegment> segments) |
boolean |
isAnnounced(DataSegment segment) |
void |
unannounceSegment(DataSegment segment) |
void |
unannounceSegments(Iterable<DataSegment> segments) |
start, stop
@Inject public BatchDataSegmentAnnouncer(DruidServerMetadata server, BatchDataSegmentAnnouncerConfig config, ZkPathsConfig zkPaths, Announcer announcer, com.fasterxml.jackson.databind.ObjectMapper jsonMapper)
public void announceSegment(DataSegment segment) throws IOException
IOException
public void unannounceSegment(DataSegment segment) throws IOException
IOException
public void announceSegments(Iterable<DataSegment> segments) throws IOException
IOException
public void unannounceSegments(Iterable<DataSegment> segments) throws IOException
IOException
public boolean isAnnounced(DataSegment segment)
Copyright © 2011–2017. All rights reserved.