Package org.eso.ias.plugin.publisher
Class MonitorPointData
java.lang.Object
org.eso.ias.plugin.publisher.MonitorPointDataToBuffer
org.eso.ias.plugin.publisher.MonitorPointData
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:
-
Field Summary
Fields inherited from class org.eso.ias.plugin.publisher.MonitorPointDataToBuffer
filteredTime, id, iso8601dateFormat, operationalMode, sampleTime, validity, value
-
Constructor Summary
ConstructorDescriptionEmpty constructorMonitorPointData
(String pluginID, String monitoredSystemID, ValueToSend value) Constructor -
Method Summary
Modifier and TypeMethodDescriptionboolean
static MonitorPointData
fromJsonString
(String jsonString) Build and return aMonitorPointData
parsing the passed JSON stringGetterint
hashCode()
void
setMonitoredSystemID
(String monitoredSystemID) void
setPluginID
(String systemID) void
setProducedByPluginTime
(String producedByPluginTime) Settervoid
setPublishTime
(String publishTime) Return a JSON string for this object.toString()
Methods inherited from class org.eso.ias.plugin.publisher.MonitorPointDataToBuffer
getFilteredTime, getId, getOperationalMode, getSampleTime, getValidity, getValue, setFilteredTime, setId, setOperationalMode, setSampleTime, setValidity, setValue
-
Constructor Details
-
MonitorPointData
public MonitorPointData()Empty constructor -
MonitorPointData
Constructor- Parameters:
pluginID
- : The ID of the pluginmonitoredSystemID
- : The id of the system monitored by the pluginvalue
- The filtered value produced by the monitored system
-
-
Method Details
-
getPluginID
- Returns:
- the pluginID
-
setPluginID
- Parameters:
systemID
- the pluginID to set
-
getPublishTime
- Returns:
- the publishTime
-
setPublishTime
- Parameters:
publishTime
- the publishTime to set
-
getProducedByPluginTime
Getter- Returns:
-
setProducedByPluginTime
Setter- Parameters:
producedByPluginTime
-
-
toString
- Overrides:
toString
in classMonitorPointDataToBuffer
- See Also:
-
hashCode
public int hashCode()- Overrides:
hashCode
in classMonitorPointDataToBuffer
- See Also:
-
equals
- Overrides:
equals
in classMonitorPointDataToBuffer
- See Also:
-
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
Build and return aMonitorPointData
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
- Returns:
- The id of the system monitored by the plugin
-
setMonitoredSystemID
- Parameters:
monitoredSystemID
- The id of the system monitored by the plugin
-