Class MonitorPointData

java.lang.Object
org.eso.ias.plugin.publisher.MonitorPointDataToBuffer
org.eso.ias.plugin.publisher.MonitorPointData

public class MonitorPointData extends MonitorPointDataToBuffer
A java POJO representing a monitor point or alarm to be sent to the IAS.

A MonitorPointData will be be sent as it to the core of the IAS; it is not meant to be buffered before sending.

Author:
acaproni
See Also:
  • Constructor Details

    • MonitorPointData

      public MonitorPointData()
      Empty constructor
    • MonitorPointData

      public MonitorPointData(String pluginID, String monitoredSystemID, ValueToSend value)
      Constructor
      Parameters:
      pluginID - : The ID of the plugin
      monitoredSystemID - : The id of the system monitored by the plugin
      value - The filtered value produced by the monitored system
  • Method Details

    • getPluginID

      public String getPluginID()
      Returns:
      the pluginID
    • setPluginID

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

      public String getPublishTime()
      Returns:
      the publishTime
    • setPublishTime

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

      public String getProducedByPluginTime()
      Getter
      Returns:
    • setProducedByPluginTime

      public void setProducedByPluginTime(String producedByPluginTime)
      Setter
      Parameters:
      producedByPluginTime -
    • toString

      public String toString()
      Overrides:
      toString in class MonitorPointDataToBuffer
      See Also:
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class MonitorPointDataToBuffer
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class MonitorPointDataToBuffer
      See Also:
    • 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 MonitorPointData fromJsonString(String jsonString) throws PublisherException
      Build and return a MonitorPointData parsing the passed JSON string
      Parameters:
      jsonString - The JSON string with the monitor point value
      Returns:
      the monitor point built parsing the passed JSON string
      Throws:
      PublisherException - in case of error building the object
    • getMonitoredSystemID

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

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