Package org.apache.druid.client
Interface TimelineServerView
- All Superinterfaces:
ServerView
- All Known Implementing Classes:
BrokerServerView
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.apache.druid.client.ServerView
ServerView.BaseSegmentCallback, ServerView.CallbackAction, ServerView.SegmentCallback, ServerView.ServerCallback -
Method Summary
Modifier and TypeMethodDescriptiondefault List<DruidServerMetadata>Returns a snapshot of the current set of server metadata.Returns a snapshot of the current servers, their metadata, and their inventory.<T> QueryRunner<T>getQueryRunner(DruidServer server) <T extends TimelineLookup<String,ServerSelector>>
Optional<T>getTimeline(TableDataSource dataSource) Returns the timeline for a table, if it exists.voidregisterTimelineCallback(Executor exec, TimelineServerView.TimelineCallback callback) Register a callback for state changes in the timeline managed by this TimelineServerView.Methods inherited from interface org.apache.druid.client.ServerView
registerSegmentCallback, registerServerCallback
-
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
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
-
registerTimelineCallback
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 callbackcallback- the callback
-