public class AggregatingSubtasksMetricsHandler extends AbstractJsonRequestHandler
Specific subtasks can be selected for aggregation by specifying a comma-separated list of integer ranges.
/metrics?get=X,Y&subtasks=0-2,4-5
Modifier and Type | Field and Description |
---|---|
protected org.slf4j.Logger |
log |
executor
Constructor and Description |
---|
AggregatingSubtasksMetricsHandler(Executor executor,
MetricFetcher fetcher) |
Modifier and Type | Method and Description |
---|---|
String[] |
getPaths()
Returns an array of REST URL's under which this handler can be registered.
|
protected Collection<? extends MetricStore.ComponentMetricStore> |
getStores(MetricStore store,
Map<String,String> pathParameters,
Map<String,String> queryParameters) |
CompletableFuture<String> |
handleJsonRequest(Map<String,String> pathParams,
Map<String,String> queryParams,
JobManagerGateway jobManagerGateway)
Core method that handles the request and generates the response.
|
handleRequest
public AggregatingSubtasksMetricsHandler(Executor executor, MetricFetcher fetcher)
protected Collection<? extends MetricStore.ComponentMetricStore> getStores(MetricStore store, Map<String,String> pathParameters, Map<String,String> queryParameters)
public String[] getPaths()
RequestHandler
public CompletableFuture<String> handleJsonRequest(Map<String,String> pathParams, Map<String,String> queryParams, JobManagerGateway jobManagerGateway)
AbstractJsonRequestHandler
handleJsonRequest
in class AbstractJsonRequestHandler
pathParams
- The map of REST path parameters, decoded by the router.queryParams
- The map of query parameters.jobManagerGateway
- to communicate with the JobManager.Copyright © 2014–2018 The Apache Software Foundation. All rights reserved.