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.RegistryServletNested classes/interfaces inherited from class de.iip_ecosphere.platform.monitoring.MonitoringReceiver
de.iip_ecosphere.platform.monitoring.MonitoringReceiver.Exporter -
Field Summary
FieldsFields inherited from class de.iip_ecosphere.platform.monitoring.prometheus.IipEcospherePrometheusExporter
DEFAULT_METRICS_ENDPOINT, DEFAULT_METRICS_SERVLET_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected de.iip_ecosphere.platform.monitoring.MonitoringReceiver.ExportercreateExporter(String id) protected voidDoes the asserts.protected voidnotifyMeterAdded(de.iip_ecosphere.platform.support.metrics.Meter meter) protected voidnotifyMeterReception(String stream, String id, de.iip_ecosphere.platform.support.json.JsonObject obj) protected voidnotifyStatusReceived(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, stopMethods inherited from class de.iip_ecosphere.platform.monitoring.MonitoringReceiver
exporters, obtainExporter
-
Field Details
-
createdExporterId
-
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:
createExporterin classde.iip_ecosphere.platform.monitoring.prometheus.IipEcospherePrometheusExporter
-
notifyMeterReception
protected void notifyMeterReception(String stream, String id, de.iip_ecosphere.platform.support.json.JsonObject obj) - Overrides:
notifyMeterReceptionin classde.iip_ecosphere.platform.monitoring.MonitoringReceiver
-
notifyStatusReceived
protected void notifyStatusReceived(de.iip_ecosphere.platform.transport.status.StatusMessage msg) - Overrides:
notifyStatusReceivedin classde.iip_ecosphere.platform.monitoring.MonitoringReceiver
-
notifyMeterAdded
protected void notifyMeterAdded(de.iip_ecosphere.platform.support.metrics.Meter meter) - Overrides:
notifyMeterAddedin classde.iip_ecosphere.platform.monitoring.MonitoringReceiver
-
doAsserts
protected void doAsserts()Does the asserts.
-