Class BufferedMonitoredSystemData

java.lang.Object
org.eso.ias.plugin.publisher.BufferedMonitoredSystemData

public class BufferedMonitoredSystemData extends Object
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 Details

    • BufferedMonitoredSystemData

      public BufferedMonitoredSystemData()
      Empty constructor
  • Method Details

    • getSystemID

      public String getSystemID()
      Returns:
      the systemID
    • setSystemID

      public void setSystemID(String systemID)
      Parameters:
      systemID - the systemID to set
    • getPublishTime

      public String getPublishTime()
      Returns:
      the publishTime
    • setPublishTime

      public void setPublishTime(String publishTime)
      Parameters:
      publishTime - the publishTime to set
    • getMonitorPoints

      public Collection<MonitorPointDataToBuffer> getMonitorPoints()
      Returns:
      the monitorPoints
    • setMonitorPoints

      public void setMonitorPoints(Collection<MonitorPointDataToBuffer> monitorPoints)
      Parameters:
      monitorPoints - the monitorPoints to set
    • toJsonString

      public String toJsonString() throws PublisherException
      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

      public static BufferedMonitoredSystemData fromJsonString(String jsonStr) throws PublisherException
      Builds a MonitoredSystemData parsing the passed JSON string
      Parameters:
      jsonStr - The JSON string to parse to build the MonitoredSystemData
      Returns:
      A BufferedMonitoredSystemData object generated parsing the passed string
      Throws:
      PublisherException - In case of error parsing the string
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getMonitoredSystemID

      public String getMonitoredSystemID()
      Getter
      Returns:
      The id of the system monitored by the plugin.
    • setMonitoredSystemID

      public void setMonitoredSystemID(String monitoredSystemID)
      Setter
      Parameters:
      monitoredSystemID - : set the id of the system monitored by the plugin.