Package org.opencms.monitor
Class CmsMemoryMonitorConfiguration
- java.lang.Object
-
- org.opencms.monitor.CmsMemoryMonitorConfiguration
-
public class CmsMemoryMonitorConfiguration extends java.lang.Object
Memory Monitor configuration class.- Since:
- 6.0.0
-
-
Constructor Summary
Constructors Constructor Description CmsMemoryMonitorConfiguration()
Constructor with default values.
-
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.
-
-
-
Constructor Detail
-
CmsMemoryMonitorConfiguration
public CmsMemoryMonitorConfiguration()
Constructor with default values.
-
-
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 classmaxUsagePercent
- the max usage percent valuelogInterval
- the interval to logemailInterval
- the interval to send emailwarningInterval
- the interval to warn
-
setEmailSender
public void setEmailSender(java.lang.String emailSender)
Sets the emailSender.- Parameters:
emailSender
- the emailSender to set
-
-