Class BatchDataSegmentAnnouncer
- java.lang.Object
-
- org.apache.druid.server.coordination.BatchDataSegmentAnnouncer
-
- All Implemented Interfaces:
DataSegmentAnnouncer
public class BatchDataSegmentAnnouncer extends Object implements DataSegmentAnnouncer
-
-
Constructor Summary
Constructors Constructor Description BatchDataSegmentAnnouncer(DruidServerMetadata server, BatchDataSegmentAnnouncerConfig config, ZkPathsConfig zkPaths, com.google.inject.Provider<Announcer> announcerProvider, com.fasterxml.jackson.databind.ObjectMapper jsonMapper, ZkEnablementConfig zkEnablementConfig)BatchDataSegmentAnnouncer(DruidServerMetadata server, BatchDataSegmentAnnouncerConfig config, ZkPathsConfig zkPaths, Announcer announcer, com.fasterxml.jackson.databind.ObjectMapper jsonMapper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidannounceSegment(org.apache.druid.timeline.DataSegment segment)voidannounceSegments(Iterable<org.apache.druid.timeline.DataSegment> segments)com.google.common.util.concurrent.ListenableFuture<ChangeRequestsSnapshot<DataSegmentChangeRequest>>getSegmentChangesSince(ChangeRequestHistory.Counter counter)Returns Future that lists the segment load/drop requests since given counter.voidstop()voidunannounceSegment(org.apache.druid.timeline.DataSegment segment)voidunannounceSegments(Iterable<org.apache.druid.timeline.DataSegment> segments)
-
-
-
Constructor Detail
-
BatchDataSegmentAnnouncer
@Inject public BatchDataSegmentAnnouncer(DruidServerMetadata server, BatchDataSegmentAnnouncerConfig config, ZkPathsConfig zkPaths, com.google.inject.Provider<Announcer> announcerProvider, com.fasterxml.jackson.databind.ObjectMapper jsonMapper, ZkEnablementConfig zkEnablementConfig)
-
BatchDataSegmentAnnouncer
public BatchDataSegmentAnnouncer(DruidServerMetadata server, BatchDataSegmentAnnouncerConfig config, ZkPathsConfig zkPaths, Announcer announcer, com.fasterxml.jackson.databind.ObjectMapper jsonMapper)
-
-
Method Detail
-
stop
public void stop()
-
announceSegment
public void announceSegment(org.apache.druid.timeline.DataSegment segment) throws IOException- Specified by:
announceSegmentin interfaceDataSegmentAnnouncer- Throws:
IOException
-
unannounceSegment
public void unannounceSegment(org.apache.druid.timeline.DataSegment segment)
- Specified by:
unannounceSegmentin interfaceDataSegmentAnnouncer
-
announceSegments
public void announceSegments(Iterable<org.apache.druid.timeline.DataSegment> segments) throws IOException
- Specified by:
announceSegmentsin interfaceDataSegmentAnnouncer- Throws:
IOException
-
unannounceSegments
public void unannounceSegments(Iterable<org.apache.druid.timeline.DataSegment> segments)
- Specified by:
unannounceSegmentsin interfaceDataSegmentAnnouncer
-
getSegmentChangesSince
public com.google.common.util.concurrent.ListenableFuture<ChangeRequestsSnapshot<DataSegmentChangeRequest>> getSegmentChangesSince(ChangeRequestHistory.Counter counter)
Returns Future that lists the segment load/drop requests since given counter.
-
-