sk.baka.webvm.config
Class Config

java.lang.Object
  extended by sk.baka.webvm.config.Config
All Implemented Interfaces:
Serializable

public final class Config
extends Object
implements Serializable

The configuration bean.

Author:
Martin Vysny
See Also:
Serialized Form

Field Summary
 int gcCpuTreshold
          Triggers a problem when GC uses over gcCpuTreshold% or more of CPU continuously for gcCpuTresholdSamples seconds.
 int gcCpuTresholdSamples
          Triggers a problem when GC uses over gcCpuTreshold% or more of CPU continuously for gcCpuTresholdSamples seconds.
static int GROUP_JABBER
          The jabber settings group.
static int GROUP_MAIL
          The mail settings group.
static int GROUP_PROBLEMS
          The problems settings group.
 int hostVirtMem
          Triggered when the host virtual memory usage goes above this value.
 String jabberPassword
          Jabber password.
 String jabberRecipients
          Jabber recipients, split by a comma
 String jabberServer
          Jabber server.
 String jabberUsername
          Jabber user name.
 String mailFrom
          The "from" address
 EncryptionEnum mailSmtpEncryption
          The connection encryption.
 String mailSmtpHost
          The SMTP server host/port.
 String mailSmtpPassword
          Optional SMTP authentification.
 int mailSmtpPort
          SMTP server port, defaults to 25 (465 for SSL)
 String mailSmtpUsername
          Optional SMTP authentication.
 String mailTo
          Receivers, split by a comma
 int memAfterGcUsageTreshold
          If the memory usage after GC goes above this value the #CLASS_GC_MEMORY_CLEANUP problem is reported.
 int memUsageTreshold
          If the memory usage goes above this value the pool name is reported in the #CLASS_MEMORY_STATUS report.
 int minFreeDiskSpaceMb
          Triggers a problem when there is less than minFreeDiskSpaceMb of free space on some drive
 
Constructor Summary
Config()
          Creates new config file with default settings.
Config(Config other)
          Clones given config.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GROUP_PROBLEMS

public static final int GROUP_PROBLEMS
The problems settings group.

See Also:
Constant Field Values

GROUP_MAIL

public static final int GROUP_MAIL
The mail settings group.

See Also:
Constant Field Values

GROUP_JABBER

public static final int GROUP_JABBER
The jabber settings group.

See Also:
Constant Field Values

minFreeDiskSpaceMb

public int minFreeDiskSpaceMb
Triggers a problem when there is less than minFreeDiskSpaceMb of free space on some drive


gcCpuTreshold

public int gcCpuTreshold
Triggers a problem when GC uses over gcCpuTreshold% or more of CPU continuously for gcCpuTresholdSamples seconds.


gcCpuTresholdSamples

public int gcCpuTresholdSamples
Triggers a problem when GC uses over gcCpuTreshold% or more of CPU continuously for gcCpuTresholdSamples seconds.


memAfterGcUsageTreshold

public int memAfterGcUsageTreshold
If the memory usage after GC goes above this value the #CLASS_GC_MEMORY_CLEANUP problem is reported.


memUsageTreshold

public int memUsageTreshold
If the memory usage goes above this value the pool name is reported in the #CLASS_MEMORY_STATUS report. This never triggers a problem.


hostVirtMem

public int hostVirtMem
Triggered when the host virtual memory usage goes above this value.


mailSmtpHost

public String mailSmtpHost
The SMTP server host/port. If this is commented then no mails are sent.


mailSmtpPort

public int mailSmtpPort
SMTP server port, defaults to 25 (465 for SSL)


mailFrom

public String mailFrom
The "from" address


mailTo

public String mailTo
Receivers, split by a comma


mailSmtpEncryption

public EncryptionEnum mailSmtpEncryption
The connection encryption.


mailSmtpUsername

public String mailSmtpUsername
Optional SMTP authentication.


mailSmtpPassword

public String mailSmtpPassword
Optional SMTP authentification.


jabberServer

public String jabberServer
Jabber server.


jabberUsername

public String jabberUsername
Jabber user name.


jabberPassword

public String jabberPassword
Jabber password.


jabberRecipients

public String jabberRecipients
Jabber recipients, split by a comma

Constructor Detail

Config

public Config()
Creates new config file with default settings.


Config

public Config(Config other)
Clones given config.

Parameters:
other - the config object to clone.


Copyright © 2010 Baka. All Rights Reserved.