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)voidannounceSegmentSchemas(String taskId, SegmentSchemas segmentSchemas, SegmentSchemas segmentSchemasChange)Announces schema associated with all segments for the specified realtime task.com.google.common.util.concurrent.ListenableFuture<ChangeRequestsSnapshot<DataSegmentChangeRequest>>getSegmentChangesSince(ChangeRequestHistory.Counter counter)Returns Future that lists the segment load/drop requests since given counter.voidremoveSegmentSchemasForTask(String taskId)Removes schema associated with all segments for the specified realtime task.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
-
announceSegmentSchemas
public void announceSegmentSchemas(String taskId, SegmentSchemas segmentSchemas, SegmentSchemas segmentSchemasChange)
Description copied from interface:DataSegmentAnnouncerAnnounces schema associated with all segments for the specified realtime task.- Specified by:
announceSegmentSchemasin interfaceDataSegmentAnnouncer- Parameters:
taskId- taskIdsegmentSchemas- absolute schema for all sinks, in case the client requests full sync.segmentSchemasChange- schema change for all sinks
-
removeSegmentSchemasForTask
public void removeSegmentSchemasForTask(String taskId)
Description copied from interface:DataSegmentAnnouncerRemoves schema associated with all segments for the specified realtime task.- Specified by:
removeSegmentSchemasForTaskin interfaceDataSegmentAnnouncer- Parameters:
taskId- taskId
-
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.
-
-