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
FieldsModifier and TypeFieldDescriptionstatic final intThe default time interval to automatically resend monitor point if their values did not changestatic final intThe default value of the frequency of the heartbeat -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanintintintinthashCode()booleanisValid()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 validvoidsetAutoSendTimeInterval(int autoSendTimeINterval) voidsetHbFrequency(int hbFrequency) voidsetSinkPort(int sinkPort) voidsetSinkServer(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:
isValidin classPluginConfigDao- Returns:
trueif the data contained in this object are correct
-
equals
- Overrides:
equalsin classPluginConfigDao
-
hashCode
public int hashCode()- Overrides:
hashCodein classPluginConfigDao
-
toString
-