Class MonitoringReceiver.Exporter
- java.lang.Object
-
- de.iip_ecosphere.platform.monitoring.MonitoringReceiver.Exporter
-
- Enclosing class:
- MonitoringReceiver
protected abstract class MonitoringReceiver.Exporter extends java.lang.ObjectAn instance holding meters for update performing the export when needed, e.g., upon request or by timer.- Author:
- Holger Eichelberger, SSE
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedExporter(java.lang.String id)Creates an exporter.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract voidaddMeter(io.micrometer.core.instrument.Meter meter)Adds a meter.protected voidaddMeters(java.lang.String deviceId, javax.json.JsonObject mtrs)Adds a set of received meters.protected voiddispose()Disposes this exporter instance.protected java.lang.StringgetId()Returns the source id.protected abstract voidinitialize()Do longer initialization here.protected booleanisValid()Returns whether the underlying object is considered valid.protected voidvalidate()Validates this exporter, i.e., marks it indicating that the underlying resource actually exists in the system.
-
-
-
Constructor Detail
-
Exporter
protected Exporter(java.lang.String id)
Creates an exporter. Do not longer initializations here rather thaninitialize().- Parameters:
id- the source id
-
-
Method Detail
-
initialize
protected abstract void initialize()
Do longer initialization here.
-
addMeters
protected void addMeters(java.lang.String deviceId, javax.json.JsonObject mtrs)Adds a set of received meters.- Parameters:
deviceId- the id of the message (deviceId)mtrs- the meters
-
addMeter
protected abstract void addMeter(io.micrometer.core.instrument.Meter meter)
Adds a meter.- Parameters:
meter- the meter
-
getId
protected java.lang.String getId()
Returns the source id.- Returns:
- the source id
-
isValid
protected boolean isValid()
Returns whether the underlying object is considered valid.- Returns:
trueif validated through an event,falseelse
-
dispose
protected void dispose()
Disposes this exporter instance. It will be removed from the internal repository.
-
validate
protected void validate()
Validates this exporter, i.e., marks it indicating that the underlying resource actually exists in the system.
-
-