Class Service

    • Constructor Detail

      • Service

        public Service()
    • Method Detail

      • getName

        public String getName()
        Service name
      • setName

        public void setName​(String name)
      • getInterval

        public Long getInterval()
        Interval at which the service is to be polled
      • setInterval

        public void setInterval​(Long interval)
      • setInterval

        public void setInterval​(Integer interval)
      • getUserDefined

        public String getUserDefined()
        Specifies if the service is user defined. Used specifically for UI purposes.
      • setUserDefined

        public void setUserDefined​(String userDefined)
      • getStatus

        public String getStatus()
        Status of the service. The service is polled only if this is set to 'on'.
      • setStatus

        public void setStatus​(String status)
      • getPattern

        public String getPattern()
      • setPattern

        public void setPattern​(String pattern)
      • setParameters

        public void setParameters​(List<Parameter> parameters)
      • addParameter

        public void addParameter​(String key,
                                 String value)
      • removeParameter

        public boolean removeParameter​(Parameter parameter)
      • equals

        public boolean equals​(Object obj)
        Overrides the Object.equals method.
        Overrides:
        equals in class Object
        Parameters:
        obj -
        Returns:
        true if the objects are equal.
      • hashCode

        public int hashCode()
        Overrides the Object.hashCode method.

        The following steps came from Effective Java Programming Language Guide by Joshua Bloch, Chapter 3

        Overrides:
        hashCode in class Object
        Returns:
        a hash code value for the object.