Class MonitoringReceiver.Exporter
java.lang.Object
de.iip_ecosphere.platform.monitoring.MonitoringReceiver.Exporter
- Enclosing class:
MonitoringReceiver
An instance holding meters for update performing the export when needed, e.g., upon request or by timer.
- Author:
- Holger Eichelberger, SSE
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voidaddMeter(de.iip_ecosphere.platform.support.metrics.Meter meter) Adds a meter.protected voidAdds a set of received meters.protected voiddispose()Disposes this exporter instance.protected StringgetId()Returns the source id.protected abstract voidDo 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.
-
Field Details
-
id
-
valid
private boolean valid
-
-
Constructor Details
-
Exporter
Creates an exporter. Do not longer initializations here rather thaninitialize().- Parameters:
id- the source id
-
-
Method Details
-
initialize
protected abstract void initialize()Do longer initialization here. -
addMeters
Adds a set of received meters.- Parameters:
deviceId- the id of the message (deviceId)mtrs- the meters
-
addMeter
protected abstract void addMeter(de.iip_ecosphere.platform.support.metrics.Meter meter) Adds a meter.- Parameters:
meter- the meter
-
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.
-