Package org.apache.druid.client
Interface TimelineServerView.TimelineCallback
- Enclosing interface:
- TimelineServerView
public static interface TimelineServerView.TimelineCallback
-
Method Summary
Modifier and TypeMethodDescriptionsegmentAdded(DruidServerMetadata server, DataSegment segment) Called when a segment on a particular server has been added to the timeline.segmentRemoved(DataSegment segment) Called when a segment has been removed from all servers and is no longer present in the timeline.segmentSchemasAnnounced(SegmentSchemas segmentSchemas) Called when segment schema is announced.serverSegmentRemoved(DruidServerMetadata server, DataSegment segment) Called when a segment is removed from a server.Called once, when the timeline has been initialized.
-
Method Details
-
timelineInitialized
ServerView.CallbackAction timelineInitialized()Called once, when the timeline has been initialized.- Returns:
- continue or unregister
-
segmentAdded
Called when a segment on a particular server has been added to the timeline. May be called multiple times for the same segment, if that segment is added on multiple servers.- Parameters:
server- the serversegment- the segment- Returns:
- continue or unregister
-
segmentRemoved
Called when a segment has been removed from all servers and is no longer present in the timeline.- Parameters:
segment- the segment- Returns:
- continue or unregister
-
serverSegmentRemoved
Called when a segment is removed from a server. Note that the timeline can still have the segment, even though it's removed from given server.segmentRemoved(DataSegment)is the authority on when segment is removed from the timeline.- Parameters:
server- The server that removed a segmentsegment- The segment that was removed- Returns:
- continue or unregister
-
segmentSchemasAnnounced
Called when segment schema is announced. Schema flow HttpServerInventoryView -> CoordinatorServerView -> CoordinatorSegmentMetadataCache CoordinatorServerView simply delegates the schema information by invoking Timeline callback to metadata cache.- Parameters:
segmentSchemas- segment schema- Returns:
- continue or unregister
-