public class BrokerServerView extends Object implements TimelineServerView
ServerView.BaseSegmentCallback, ServerView.CallbackAction, ServerView.SegmentCallback, ServerView.ServerCallback
Constructor and Description |
---|
BrokerServerView(QueryToolChestWarehouse warehouse,
QueryWatcher queryWatcher,
com.fasterxml.jackson.databind.ObjectMapper smileMapper,
com.metamx.http.client.HttpClient httpClient,
ServerInventoryView baseView,
TierSelectorStrategy tierSelectorStrategy,
com.metamx.emitter.service.ServiceEmitter emitter) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
<T> QueryRunner<T> |
getQueryRunner(DruidServer server) |
TimelineLookup<String,ServerSelector> |
getTimeline(DataSource dataSource) |
boolean |
isInitialized() |
void |
registerSegmentCallback(Executor exec,
ServerView.SegmentCallback callback) |
void |
registerServerCallback(Executor exec,
ServerView.ServerCallback callback) |
@Inject public BrokerServerView(QueryToolChestWarehouse warehouse, QueryWatcher queryWatcher, com.fasterxml.jackson.databind.ObjectMapper smileMapper, com.metamx.http.client.HttpClient httpClient, ServerInventoryView baseView, TierSelectorStrategy tierSelectorStrategy, com.metamx.emitter.service.ServiceEmitter emitter)
public boolean isInitialized()
public void clear()
public TimelineLookup<String,ServerSelector> getTimeline(DataSource dataSource)
getTimeline
in interface TimelineServerView
public <T> QueryRunner<T> getQueryRunner(DruidServer server)
getQueryRunner
in interface TimelineServerView
public void registerServerCallback(Executor exec, ServerView.ServerCallback callback)
registerServerCallback
in interface ServerView
public void registerSegmentCallback(Executor exec, ServerView.SegmentCallback callback)
registerSegmentCallback
in interface ServerView
Copyright © 2011–2015. All rights reserved.