class AggregatingJobsMetricsHandler extends AbstractAggregatingMetricsHandler {

	@Override
	protected Collection<? extends MetricStore.ComponentMetricStore> getStores(MetricStore store, Map<String, String> pathParameters, Map<String, String> queryParameters) {
		String jobsList = queryParameters.get("jobs");
		if (jobsList == null || jobsList.isEmpty()) {
			return store.getJobs().values();
		} else {
			String[] jobs = jobsList.split(",");
			Collection<MetricStore.ComponentMetricStore> jobStores = new ArrayList<>();
			for (String job : jobs) {
				jobStores.add(store.getJobMetricStore(job));
			}
			return jobStores;
		}
	}

	public  AggregatingJobsMetricsHandler(Executor executor, MetricFetcher fetcher);

}