Class CmsMemoryMonitorConfiguration

java.lang.Object
org.opencms.monitor.CmsMemoryMonitorConfiguration

Memory Monitor configuration class.

Since:
6.0.0
  • Constructor Details

  • Method Details

    • addEmailReceiver

      public void addEmailReceiver(String emailReceiver)
      Sets the emailReceiver.

      Parameters:
      emailReceiver - the emailReceiver to set
    • getClassName

      public 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

      Returns a List of receiver.

      Returns:
      a List of receiver
    • 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(String className, String maxUsagePercent, String logInterval, String emailInterval, 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(String emailSender)
      Sets the emailSender.

      Parameters:
      emailSender - the emailSender to set