Package org.apache.solr.metrics
Class SolrMetricInfo
java.lang.Object
org.apache.solr.metrics.SolrMetricInfo
Wraps meta-data for a metric.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSolrMetricInfo(SolrInfoBean.Category category, String scope, String name) Creates a new instance ofSolrMetricInfo. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the metric name defined by this object.inthashCode()static SolrMetricInfotoString()
-
Field Details
-
name
-
scope
-
category
-
-
Constructor Details
-
SolrMetricInfo
Creates a new instance ofSolrMetricInfo.- Parameters:
category- the category of the metric (e.g. `QUERY`)scope- the scope of the metric (e.g. `/admin/ping`)name- the name of the metric (e.g. `Requests`)
-
-
Method Details
-
of
-
getMetricName
Returns the metric name defined by this object. For example, if the name is `Requests`, scope is `/admin/ping`, and category is `QUERY`, then the metric name is `QUERY./admin/ping.Requests`.- Returns:
- the metric name defined by this object
-
toString
-
equals
-
hashCode
public int hashCode()
-