Package com.lucidworks.cloud.api.solr
Class SolrMetricsFactory
java.lang.Object
com.lucidworks.cloud.api.solr.SolrMetricsFactory
Factory for native solr client to create a metrics collector based on type of request
-
Method Summary
Modifier and TypeMethodDescriptionstatic SolrMetricsCollectorcreateMetrics(org.apache.solr.client.solrj.SolrRequest request, String requestHandler) Based on the request will return appropriate metrics implementation.
-
Method Details
-
createMetrics
public static SolrMetricsCollector createMetrics(org.apache.solr.client.solrj.SolrRequest request, String requestHandler) Based on the request will return appropriate metrics implementation.- Parameters:
request- concrete type of the request is checked, some of the properties of the request will be used to populate the SolrMetrics implementationrequestHandler- can be null- Returns:
-