org.opencms.monitor
Class CmsMemoryMonitorConfiguration

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

public class CmsMemoryMonitorConfiguration
extends java.lang.Object

Memory Monitor configuration class.

Since:
6.0.0
Version:
$Revision: 1.11 $
Author:
Armen Markarian

Constructor Summary
CmsMemoryMonitorConfiguration()
          Constructor with default values.
 
Method Summary
 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 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
 

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 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