public abstract class SolrScraper extends Object implements Closeable
Modifier and Type | Field and Description |
---|---|
protected ExecutorService |
executor |
protected static com.fasterxml.jackson.databind.ObjectMapper |
OBJECT_MAPPER |
Constructor and Description |
---|
SolrScraper(ExecutorService executor) |
Modifier and Type | Method and Description |
---|---|
abstract MetricSamples |
collections(MetricsQuery metricsQuery) |
abstract Map<String,MetricSamples> |
metricsForAllHosts(MetricsQuery query) |
abstract Map<String,MetricSamples> |
pingAllCollections(MetricsQuery query) |
abstract Map<String,MetricSamples> |
pingAllCores(MetricsQuery query) |
protected MetricSamples |
request(SolrClient client,
MetricsQuery query) |
abstract MetricSamples |
search(MetricsQuery query) |
protected Map<String,MetricSamples> |
sendRequestsInParallel(Collection<String> items,
Function<String,MetricSamples> samplesCallable) |
protected static final com.fasterxml.jackson.databind.ObjectMapper OBJECT_MAPPER
protected final ExecutorService executor
public SolrScraper(ExecutorService executor)
public abstract Map<String,MetricSamples> metricsForAllHosts(MetricsQuery query) throws IOException
IOException
public abstract Map<String,MetricSamples> pingAllCores(MetricsQuery query) throws IOException
IOException
public abstract Map<String,MetricSamples> pingAllCollections(MetricsQuery query) throws IOException
IOException
public abstract MetricSamples search(MetricsQuery query) throws IOException
IOException
public abstract MetricSamples collections(MetricsQuery metricsQuery) throws IOException
IOException
protected Map<String,MetricSamples> sendRequestsInParallel(Collection<String> items, Function<String,MetricSamples> samplesCallable) throws IOException
IOException
protected MetricSamples request(SolrClient client, MetricsQuery query) throws IOException
IOException
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.