Interface TimelineServerView

All Superinterfaces:
ServerView
All Known Implementing Classes:
BrokerServerView

public interface TimelineServerView extends ServerView
  • Method Details

    • getTimeline

      <T extends TimelineLookup<String, ServerSelector>> Optional<T> getTimeline(TableDataSource dataSource)
      Returns the timeline for a table, if it exists.
      Parameters:
      dataSource - the table
      Returns:
      timeline, if it exists
    • getDruidServerMetadatas

      default List<DruidServerMetadata> getDruidServerMetadatas()
      Returns a snapshot of the current set of server metadata.
    • getDruidServers

      List<ImmutableDruidServer> getDruidServers()
      Returns a snapshot of the current servers, their metadata, and their inventory.
    • getQueryRunner

      <T> QueryRunner<T> getQueryRunner(DruidServer server)
    • registerTimelineCallback

      void registerTimelineCallback(Executor exec, TimelineServerView.TimelineCallback callback)
      Register a callback for state changes in the timeline managed by this TimelineServerView. The callback will be called after the relevant change is made to this TimelineServerView's timeline.
      Parameters:
      exec - executor in which to run the callback
      callback - the callback