Package org.apache.druid.client
Class CoordinatorServerView
java.lang.Object
org.apache.druid.client.CoordinatorServerView
- All Implemented Interfaces:
InventoryView
ServerView of coordinator for the state of segments being loaded in the cluster.
-
Constructor Summary
ConstructorsConstructorDescriptionCoordinatorServerView(ServerInventoryView baseView, CoordinatorSegmentWatcherConfig segmentWatcherConfig, ServiceEmitter emitter, DirectDruidClientFactory druidClientFactory) -
Method Summary
Modifier and TypeMethodDescriptiongetInventoryValue(String serverKey) getQueryRunner(String serverName) getTimeline(DataSource dataSource) booleanisSegmentLoadedByServer(String serverKey, DataSegment segment) booleanvoidregisterTimelineCallback(Executor exec, TimelineServerView.TimelineCallback callback) voidstart()
-
Constructor Details
-
CoordinatorServerView
@Inject public CoordinatorServerView(ServerInventoryView baseView, CoordinatorSegmentWatcherConfig segmentWatcherConfig, ServiceEmitter emitter, @Nullable DirectDruidClientFactory druidClientFactory)
-
-
Method Details
-
start
- Throws:
InterruptedException
-
registerTimelineCallback
-
getQueryRunner
-
getTimeline
-
getLoadInfoForAllSegments
-
getInventoryValue
- Specified by:
getInventoryValuein interfaceInventoryView
-
getInventory
- Specified by:
getInventoryin interfaceInventoryView
-
isStarted
public boolean isStarted()- Specified by:
isStartedin interfaceInventoryView
-
isSegmentLoadedByServer
- Specified by:
isSegmentLoadedByServerin interfaceInventoryView
-