Interface Metric<T>

  • All Known Subinterfaces:
    NodeMetric<T>, ReplicaMetric<T>
    All Known Implementing Classes:
    MetricImpl, NodeMetricImpl, ReplicaMetricImpl

    public interface Metric<T>
    Metric-related attribute of a node or replica. It defines a short symbolic name of the metric, the corresponding internal metric name and the desired format/unit conversion. Generic type specifies the type of converted values of this attribute.
    • Method Detail

      • getName

        String getName()
        Return the short-hand name that identifies this attribute.
      • getInternalName

        String getInternalName()
        Return the internal name of a Solr metric associated with this attribute.
      • convert

        T convert​(Object value)
        Convert raw value. This may involve changing raw value type or units.
        Parameters:
        value - raw value
        Returns:
        converted value