Package org.opencms.monitor
Class CmsMemoryMonitorConfiguration
java.lang.Object
org.opencms.monitor.CmsMemoryMonitorConfiguration
Memory Monitor configuration class.
- Since:
- 6.0.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addEmailReceiver
(String emailReceiver) Sets the emailReceiver.Returns the name of the memory monitor class.int
Returns the intervalEmail.Returns a List of receiver.Returns the emailSender.int
Returns the intervalLog.int
Returns the maxUsagePercent.int
Returns the intervalWarning.void
initialize
(String className, String maxUsagePercent, String logInterval, String emailInterval, String warningInterval) Initializes the configuration with the required parameters.void
setEmailSender
(String emailSender) Sets the emailSender.
-
Constructor Details
-
CmsMemoryMonitorConfiguration
public CmsMemoryMonitorConfiguration()Constructor with default values.
-
-
Method Details
-
addEmailReceiver
Sets the emailReceiver.- Parameters:
emailReceiver
- the emailReceiver to set
-
getClassName
Returns the name of the memory monitor class.- Returns:
- the name of the memory monitor class
-
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
Returns the intervalLog.- Returns:
- the intervalLog
-
getMaxUsagePercent
Returns the maxUsagePercent.- Returns:
- the maxUsagePercent
-
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 classmaxUsagePercent
- the max usage percent valuelogInterval
- the interval to logemailInterval
- the interval to send emailwarningInterval
- the interval to warn
-
setEmailSender
Sets the emailSender.- Parameters:
emailSender
- the emailSender to set
-