Class PluginFileConfig

java.lang.Object
org.eso.ias.cdb.pojos.PluginConfigDao
org.eso.ias.plugin.config.PluginFileConfig

public class PluginFileConfig extends PluginConfigDao
The configuration of the plugin read from a JSON file differs from the provided in the CDB. This class provides the missing fields.
  • Field Details

    • autoSendTimeIntervalDefault

      public static final int autoSendTimeIntervalDefault
      The default time interval to automatically resend monitor point if their values did not change
      See Also:
    • hbFrequencyDefault

      public static final int hbFrequencyDefault
      The default value of the frequency of the heartbeat
      See Also:
  • Constructor Details

    • PluginFileConfig

      public PluginFileConfig()
  • Method Details

    • getSinkServer

      public String getSinkServer()
      Returns:
      the sinkServer
    • setSinkServer

      public void setSinkServer(String sinkServer)
      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 class PluginConfigDao
      Returns:
      true if the data contained in this object are correct
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class PluginConfigDao
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class PluginConfigDao
    • toString

      public String toString()
      Overrides:
      toString in class Object