Package org.eso.ias.plugin.publisher
Class BufferedMonitoredSystemData
java.lang.Object
org.eso.ias.plugin.publisher.BufferedMonitoredSystemData
The data structure encapsulating monitor point values
and alarm retrieved from a monitored system and to be sent to the IAS core.
It is composed of a global data structure (this one) plus a list
of monitor points.
BufferedMonitoredSystemData
is a java POJO that is easily
serializable to a string that is what the plugin sends to
the IAS core.
To improve network performances, whenever possible the plugin collects and sends the monitor points with one single message instead of one by one.
- Author:
- acaproni
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic BufferedMonitoredSystemData
fromJsonString
(String jsonStr) Builds aMonitoredSystemData
parsing the passed JSON stringGettervoid
setMonitoredSystemID
(String monitoredSystemID) Settervoid
setMonitorPoints
(Collection<MonitorPointDataToBuffer> monitorPoints) void
setPublishTime
(String publishTime) void
setSystemID
(String systemID) Return a JSON string for this object.toString()
-
Constructor Details
-
BufferedMonitoredSystemData
public BufferedMonitoredSystemData()Empty constructor
-
-
Method Details
-
getSystemID
- Returns:
- the systemID
-
setSystemID
- Parameters:
systemID
- the systemID to set
-
getPublishTime
- Returns:
- the publishTime
-
setPublishTime
- Parameters:
publishTime
- the publishTime to set
-
getMonitorPoints
- Returns:
- the monitorPoints
-
setMonitorPoints
- Parameters:
monitorPoints
- the monitorPoints to set
-
toJsonString
Return a JSON string for this object.- Returns:
- A Json string representing this object
- Throws:
PublisherException
- In case of error generating the JSON string
-
fromJsonString
Builds aMonitoredSystemData
parsing the passed JSON string- Parameters:
jsonStr
- The JSON string to parse to build theMonitoredSystemData
- Returns:
- A
BufferedMonitoredSystemData
object generated parsing the passed string - Throws:
PublisherException
- In case of error parsing the string
-
toString
-
getMonitoredSystemID
Getter- Returns:
- The id of the system monitored by the plugin.
-
setMonitoredSystemID
Setter- Parameters:
monitoredSystemID
- : set the id of the system monitored by the plugin.
-