Class SolrCloudScraper
- java.lang.Object
-
- org.apache.solr.prometheus.scraper.SolrScraper
-
- org.apache.solr.prometheus.scraper.SolrCloudScraper
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
public class SolrCloudScraper extends SolrScraper
-
-
Field Summary
-
Fields inherited from class org.apache.solr.prometheus.scraper.SolrScraper
executor, OBJECT_MAPPER
-
-
Constructor Summary
Constructors Constructor Description SolrCloudScraper(CloudSolrClient solrClient, ExecutorService executor, SolrClientFactory solrClientFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
MetricSamples
collections(MetricsQuery metricsQuery)
Map<String,MetricSamples>
metricsForAllHosts(MetricsQuery query)
Map<String,MetricSamples>
pingAllCollections(MetricsQuery query)
Map<String,MetricSamples>
pingAllCores(MetricsQuery query)
MetricSamples
search(MetricsQuery query)
-
Methods inherited from class org.apache.solr.prometheus.scraper.SolrScraper
request, sendRequestsInParallel
-
-
-
-
Constructor Detail
-
SolrCloudScraper
public SolrCloudScraper(CloudSolrClient solrClient, ExecutorService executor, SolrClientFactory solrClientFactory)
-
-
Method Detail
-
pingAllCores
public Map<String,MetricSamples> pingAllCores(MetricsQuery query) throws IOException
- Specified by:
pingAllCores
in classSolrScraper
- Throws:
IOException
-
pingAllCollections
public Map<String,MetricSamples> pingAllCollections(MetricsQuery query) throws IOException
- Specified by:
pingAllCollections
in classSolrScraper
- Throws:
IOException
-
metricsForAllHosts
public Map<String,MetricSamples> metricsForAllHosts(MetricsQuery query) throws IOException
- Specified by:
metricsForAllHosts
in classSolrScraper
- Throws:
IOException
-
search
public MetricSamples search(MetricsQuery query) throws IOException
- Specified by:
search
in classSolrScraper
- Throws:
IOException
-
collections
public MetricSamples collections(MetricsQuery metricsQuery) throws IOException
- Specified by:
collections
in classSolrScraper
- Throws:
IOException
-
close
public void close()
-
-