Interface TimelineServerView.TimelineCallback

Enclosing interface:
TimelineServerView

public static interface TimelineServerView.TimelineCallback
  • 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 server
      segment - the segment
      Returns:
      continue or unregister
    • segmentRemoved

      ServerView.CallbackAction segmentRemoved(DataSegment segment)
      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

      ServerView.CallbackAction serverSegmentRemoved(DruidServerMetadata server, DataSegment segment)
      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 segment
      segment - The segment that was removed
      Returns:
      continue or unregister
    • segmentSchemasAnnounced

      ServerView.CallbackAction segmentSchemasAnnounced(SegmentSchemas segmentSchemas)
      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