Class BatchDataSegmentAnnouncer
java.lang.Object
org.apache.druid.server.coordination.BatchDataSegmentAnnouncer
- All Implemented Interfaces:
DataSegmentAnnouncer
-
Constructor Summary
ConstructorsConstructorDescriptionBatchDataSegmentAnnouncer(DruidServerMetadata server, BatchDataSegmentAnnouncerConfig config, ZkPathsConfig zkPaths, com.google.inject.Provider<ServiceAnnouncer> announcerProvider, com.fasterxml.jackson.databind.ObjectMapper jsonMapper, ZkEnablementConfig zkEnablementConfig) BatchDataSegmentAnnouncer(DruidServerMetadata server, BatchDataSegmentAnnouncerConfig config, ZkPathsConfig zkPaths, ServiceAnnouncer announcer, com.fasterxml.jackson.databind.ObjectMapper jsonMapper) -
Method Summary
Modifier and TypeMethodDescriptionvoidannounceSegment(DataSegment segment) voidannounceSegments(Iterable<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>>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(DataSegment segment) voidunannounceSegments(Iterable<DataSegment> segments)
-
Constructor Details
-
BatchDataSegmentAnnouncer
@Inject public BatchDataSegmentAnnouncer(DruidServerMetadata server, BatchDataSegmentAnnouncerConfig config, ZkPathsConfig zkPaths, com.google.inject.Provider<ServiceAnnouncer> announcerProvider, com.fasterxml.jackson.databind.ObjectMapper jsonMapper, ZkEnablementConfig zkEnablementConfig) -
BatchDataSegmentAnnouncer
public BatchDataSegmentAnnouncer(DruidServerMetadata server, BatchDataSegmentAnnouncerConfig config, ZkPathsConfig zkPaths, ServiceAnnouncer announcer, com.fasterxml.jackson.databind.ObjectMapper jsonMapper)
-
-
Method Details
-
stop
public void stop() -
announceSegment
- Specified by:
announceSegmentin interfaceDataSegmentAnnouncer- Throws:
IOException
-
unannounceSegment
- Specified by:
unannounceSegmentin interfaceDataSegmentAnnouncer
-
announceSegments
- Specified by:
announceSegmentsin interfaceDataSegmentAnnouncer- Throws:
IOException
-
unannounceSegments
- 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
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.
-