Package org.eso.ias.plugin.config
Class PluginFileConfig
java.lang.Object
org.eso.ias.cdb.pojos.PluginConfigDao
org.eso.ias.plugin.config.PluginFileConfig
The configuration of the plugin read from a JSON file differs from the provided in the CDB.
This class provides the missing fields.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
The default time interval to automatically resend monitor point if their values did not changestatic final int
The default value of the frequency of the heartbeat -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
int
int
int
int
hashCode()
boolean
isValid()
Check the correctness of the values contained in this objects: Non empty ID Non empty sink server name Valid port Non empty list of values No duplicated ID between the values Each value is validvoid
setAutoSendTimeInterval
(int autoSendTimeINterval) void
setHbFrequency
(int hbFrequency) void
setSinkPort
(int sinkPort) void
setSinkServer
(String sinkServer) toString()
Methods inherited from class org.eso.ias.cdb.pojos.PluginConfigDao
getDefaultFilter, getDefaultFilterOptions, getId, getMonitoredSystemId, getProperties, getProperty, getProps, getValue, getValues, setDefaultFilter, setDefaultFilterOptions, setId, setMonitoredSystemId, setValues, valuesAsCollection, valuesAsMap
-
Field Details
-
autoSendTimeIntervalDefault
public static final int autoSendTimeIntervalDefaultThe default time interval to automatically resend monitor point if their values did not change- See Also:
-
hbFrequencyDefault
public static final int hbFrequencyDefaultThe default value of the frequency of the heartbeat- See Also:
-
-
Constructor Details
-
PluginFileConfig
public PluginFileConfig()
-
-
Method Details
-
getSinkServer
- Returns:
- the sinkServer
-
setSinkServer
- Parameters:
sinkServer
- the sinkServer to set
-
getSinkPort
public int getSinkPort()- Returns:
- the sinkPort
-
setSinkPort
public void setSinkPort(int sinkPort) - Parameters:
sinkPort
- the sinkPort to set
-
getAutoSendTimeInterval
public int getAutoSendTimeInterval() -
setAutoSendTimeInterval
public void setAutoSendTimeInterval(int autoSendTimeINterval) -
getHbFrequency
public int getHbFrequency() -
setHbFrequency
public void setHbFrequency(int hbFrequency) -
isValid
public boolean isValid()Check the correctness of the values contained in this objects:- Non empty ID
- Non empty sink server name
- Valid port
- Non empty list of values
- No duplicated ID between the values
- Each value is valid
- Overrides:
isValid
in classPluginConfigDao
- Returns:
true
if the data contained in this object are correct
-
equals
- Overrides:
equals
in classPluginConfigDao
-
hashCode
public int hashCode()- Overrides:
hashCode
in classPluginConfigDao
-
toString
-