unm.maui.misc
Class SystemProfiler

java.lang.Object
  extended byunm.maui.misc.SystemProfiler
All Implemented Interfaces:
java.util.EventListener, MauiListener, SchedListener, java.io.Serializable

public class SystemProfiler
extends java.lang.Object
implements SchedListener, java.io.Serializable

Profile memory and thread use within Molokini.

See Also:
Serialized Form

Field Summary
protected  boolean doReport
          Print out reports (or be quiet).
protected  java.lang.String emailAddress
          address to send to.
static java.lang.String emailDBProperty
           
static java.lang.String emailDiskProperty
           
static java.lang.String emailIntervalProperty
           
static java.lang.String emailProperty
           
protected  boolean emailWarnDB
          Warn about database connection.
protected  boolean emailWarnDisk
          Warn about disk space.
protected  int emailWarnInterval
          Interval to send email warning.
protected  java.lang.String fs
          Filesystem to check.
static java.lang.String fsProperty
           
static java.lang.String fsSpaceProperty
           
protected  java.lang.String prefix
          Properties prefix.
protected  int reportInterval
          Interval to run checks.
static java.lang.String reportIntervalProperty
           
static java.lang.String reportProperty
           
protected  long warnLevel
          Number (in bytes) when we start getting concerned about filesystem available space.
 
Constructor Summary
SystemProfiler()
          Construct
 
Method Summary
 void assignProperties(java.lang.String prefix, java.util.Properties props)
          Set properties.
 void event(SchedEvent evt)
          A Scheduler event.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fsProperty

public static final transient java.lang.String fsProperty
See Also:
Constant Field Values

fsSpaceProperty

public static final transient java.lang.String fsSpaceProperty
See Also:
Constant Field Values

emailProperty

public static final transient java.lang.String emailProperty
See Also:
Constant Field Values

emailDBProperty

public static final transient java.lang.String emailDBProperty
See Also:
Constant Field Values

emailDiskProperty

public static final transient java.lang.String emailDiskProperty
See Also:
Constant Field Values

emailIntervalProperty

public static final transient java.lang.String emailIntervalProperty
See Also:
Constant Field Values

reportProperty

public static final transient java.lang.String reportProperty
See Also:
Constant Field Values

reportIntervalProperty

public static final transient java.lang.String reportIntervalProperty
See Also:
Constant Field Values

fs

protected transient java.lang.String fs
Filesystem to check.


doReport

protected transient boolean doReport
Print out reports (or be quiet).


warnLevel

protected transient long warnLevel
Number (in bytes) when we start getting concerned about filesystem available space.


emailWarnDB

protected transient boolean emailWarnDB
Warn about database connection.


emailWarnDisk

protected transient boolean emailWarnDisk
Warn about disk space.


emailWarnInterval

protected transient int emailWarnInterval
Interval to send email warning.


reportInterval

protected transient int reportInterval
Interval to run checks.


emailAddress

protected transient java.lang.String emailAddress
address to send to.


prefix

protected java.lang.String prefix
Properties prefix.

Constructor Detail

SystemProfiler

public SystemProfiler()
Construct

Method Detail

assignProperties

public void assignProperties(java.lang.String prefix,
                             java.util.Properties props)
Set properties.

Specified by:
assignProperties in interface MauiListener
Parameters:
prefix - String properties prefix
props - Properties

event

public void event(SchedEvent evt)
Description copied from interface: SchedListener
A Scheduler event.

Specified by:
event in interface SchedListener
Parameters:
evt - SchedEvent
See Also:
SchedListener.event(unm.maui.sched.SchedEvent)