Class AbstractMeter<M extends io.micrometer.core.instrument.Meter>

java.lang.Object
de.oktoflow.platform.support.metrics.micrometer.AbstractMeter<M>
Type Parameters:
M - the represented micrometer type
All Implemented Interfaces:
de.iip_ecosphere.platform.support.metrics.Meter
Direct Known Subclasses:
MicrometerCounter, MicrometerGauge, MicrometerMeterRegistry.GenericMeterWrapper, MicrometerTimer

class AbstractMeter<M extends io.micrometer.core.instrument.Meter> extends Object implements de.iip_ecosphere.platform.support.metrics.Meter
Abstract wrapping meter implementation.
Author:
Holger Eichelberger, SSE
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    (package private) static class 
    A wrapped id.

    Nested classes/interfaces inherited from interface de.iip_ecosphere.platform.support.metrics.Meter

    de.iip_ecosphere.platform.support.metrics.Meter.Id, de.iip_ecosphere.platform.support.metrics.Meter.Type
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
     
    private M
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    Creates a wrapping instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    equals(Object other)
     
    de.iip_ecosphere.platform.support.metrics.Meter.Id
     
    protected M
    Returns the wrapped meter.
     
    int
     
    Iterable<de.iip_ecosphere.platform.support.metrics.Measurement>
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • AbstractMeter

      protected AbstractMeter(M meter)
      Creates a wrapping instance.
      Parameters:
      meter - the wrapped instance
  • Method Details

    • getMeter

      protected M getMeter()
      Returns the wrapped meter.
      Returns:
      the meter
    • getName

      public String getName()
      Specified by:
      getName in interface de.iip_ecosphere.platform.support.metrics.Meter
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • getId

      public de.iip_ecosphere.platform.support.metrics.Meter.Id getId()
      Specified by:
      getId in interface de.iip_ecosphere.platform.support.metrics.Meter
    • measure

      public Iterable<de.iip_ecosphere.platform.support.metrics.Measurement> measure()
      Specified by:
      measure in interface de.iip_ecosphere.platform.support.metrics.Meter