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
IOExceptionpublic void unannounceSegment(DataSegment segment) throws IOException
IOExceptionpublic void announceSegments(Iterable<DataSegment> segments) throws IOException
IOExceptionpublic void unannounceSegments(Iterable<DataSegment> segments) throws IOException
IOExceptionpublic boolean isAnnounced(DataSegment segment)
Copyright © 2011–2017. All rights reserved.