Class PrometheusLifecycleDescriptorTest.MyIipPrometheusExporter

java.lang.Object
de.iip_ecosphere.platform.monitoring.MonitoringReceiver
de.iip_ecosphere.platform.monitoring.prometheus.IipEcospherePrometheusExporter
test.de.iip_ecosphere.platform.monitoring.prometheus.PrometheusLifecycleDescriptorTest.MyIipPrometheusExporter
Enclosing class:
PrometheusLifecycleDescriptorTest

private class PrometheusLifecycleDescriptorTest.MyIipPrometheusExporter extends de.iip_ecosphere.platform.monitoring.prometheus.IipEcospherePrometheusExporter
Local exporter test mock.
Author:
Holger Eichelberger, SSE
  • Nested Class Summary

    Nested classes/interfaces inherited from class de.iip_ecosphere.platform.monitoring.prometheus.IipEcospherePrometheusExporter

    de.iip_ecosphere.platform.monitoring.prometheus.IipEcospherePrometheusExporter.PrometheusExporter, de.iip_ecosphere.platform.monitoring.prometheus.IipEcospherePrometheusExporter.RegistryServlet

    Nested classes/interfaces inherited from class de.iip_ecosphere.platform.monitoring.MonitoringReceiver

    de.iip_ecosphere.platform.monitoring.MonitoringReceiver.Exporter
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private String
     
    private int
     
    private int
     
    private Set<String>
     
    private int
     

    Fields inherited from class de.iip_ecosphere.platform.monitoring.prometheus.IipEcospherePrometheusExporter

    DEFAULT_METRICS_ENDPOINT, DEFAULT_METRICS_SERVLET_NAME
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected de.iip_ecosphere.platform.monitoring.MonitoringReceiver.Exporter
     
    protected void
    Does the asserts.
    protected void
    notifyMeterAdded(de.iip_ecosphere.platform.support.metrics.Meter meter)
     
    protected void
    notifyMeterReception(String stream, String id, de.iip_ecosphere.platform.support.json.JsonObject obj)
     
    protected void
    notifyStatusReceived(de.iip_ecosphere.platform.transport.status.StatusMessage msg)
     

    Methods inherited from class de.iip_ecosphere.platform.monitoring.prometheus.IipEcospherePrometheusExporter

    addServlet, notifyExporterAdded, notifyExporterRemoved, removeServlet, setModifierSupplier, start, stop

    Methods inherited from class de.iip_ecosphere.platform.monitoring.MonitoringReceiver

    exporters, obtainExporter

    Methods inherited from class java.lang.Object

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

    • createdExporterId

      private String createdExporterId
    • receivedMeterStreams

      private Set<String> receivedMeterStreams
    • statusCount

      private int statusCount
    • meterRecCount

      private int meterRecCount
    • meterCount

      private int meterCount
  • Constructor Details

    • MyIipPrometheusExporter

      private MyIipPrometheusExporter()
  • Method Details

    • createExporter

      protected de.iip_ecosphere.platform.monitoring.MonitoringReceiver.Exporter createExporter(String id)
      Overrides:
      createExporter in class de.iip_ecosphere.platform.monitoring.prometheus.IipEcospherePrometheusExporter
    • notifyMeterReception

      protected void notifyMeterReception(String stream, String id, de.iip_ecosphere.platform.support.json.JsonObject obj)
      Overrides:
      notifyMeterReception in class de.iip_ecosphere.platform.monitoring.MonitoringReceiver
    • notifyStatusReceived

      protected void notifyStatusReceived(de.iip_ecosphere.platform.transport.status.StatusMessage msg)
      Overrides:
      notifyStatusReceived in class de.iip_ecosphere.platform.monitoring.MonitoringReceiver
    • notifyMeterAdded

      protected void notifyMeterAdded(de.iip_ecosphere.platform.support.metrics.Meter meter)
      Overrides:
      notifyMeterAdded in class de.iip_ecosphere.platform.monitoring.MonitoringReceiver
    • doAsserts

      protected void doAsserts()
      Does the asserts.