Class CmsMemoryMonitorConfiguration

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addEmailReceiver​(java.lang.String emailReceiver)
      Sets the emailReceiver.
      java.lang.String getClassName()
      Returns the name of the memory monitor class.
      int getEmailInterval()
      Returns the intervalEmail.
      java.util.List<java.lang.String> getEmailReceiver()
      Returns a List of receiver.
      java.lang.String getEmailSender()
      Returns the emailSender.
      int getLogInterval()
      Returns the intervalLog.
      int getMaxUsagePercent()
      Returns the maxUsagePercent.
      int getWarningInterval()
      Returns the intervalWarning.
      void initialize​(java.lang.String className, java.lang.String maxUsagePercent, java.lang.String logInterval, java.lang.String emailInterval, java.lang.String warningInterval)
      Initializes the configuration with the required parameters.
      void setEmailSender​(java.lang.String emailSender)
      Sets the emailSender.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • addEmailReceiver

        public void addEmailReceiver​(java.lang.String emailReceiver)
        Sets the emailReceiver.

        Parameters:
        emailReceiver - the emailReceiver to set
      • getClassName

        public java.lang.String getClassName()
        Returns the name of the memory monitor class.

        Returns:
        the name of the memory monitor class
      • getEmailInterval

        public int getEmailInterval()
        Returns the intervalEmail.

        Returns:
        the intervalEmail
      • getEmailReceiver

        public java.util.List<java.lang.String> getEmailReceiver()
        Returns a List of receiver.

        Returns:
        a List of receiver
      • getEmailSender

        public java.lang.String getEmailSender()
        Returns the emailSender.

        Returns:
        the emailSender
      • getLogInterval

        public int getLogInterval()
        Returns the intervalLog.

        Returns:
        the intervalLog
      • getMaxUsagePercent

        public int getMaxUsagePercent()
        Returns the maxUsagePercent.

        Returns:
        the maxUsagePercent
      • getWarningInterval

        public int getWarningInterval()
        Returns the intervalWarning.

        Returns:
        the intervalWarning
      • initialize

        public void initialize​(java.lang.String className,
                               java.lang.String maxUsagePercent,
                               java.lang.String logInterval,
                               java.lang.String emailInterval,
                               java.lang.String warningInterval)
        Initializes the configuration with the required parameters.

        Parameters:
        className - the name of the memory monitor class
        maxUsagePercent - the max usage percent value
        logInterval - the interval to log
        emailInterval - the interval to send email
        warningInterval - the interval to warn
      • setEmailSender

        public void setEmailSender​(java.lang.String emailSender)
        Sets the emailSender.

        Parameters:
        emailSender - the emailSender to set