Alert

Purpose: An alert is a condition that can be monitored for and and action that can be performed if the condition is met. An example is 90% page space utilization (condition) and an email being sent to an administrator (action).

Properties:

int ConditionType

An integer that corresponds to a specific condition that should be monitored for.

String actionCommand

The command to be executed in case the condition is met.

boolean executeOnHostMachine

If true, action is executed on client side. If false action is executed on z server.

boolean alertUser

If true, a message that this alert has been triggered will be sent to the user of the client program when the alert condition is true.

boolean recurring

If true, alert will continue being checked and possibly triggered even after initial triggering. If false, the alert will be disabled until re-enabled by an administrator.

boolean enabled

If true, we will check this alert. Otherwise pretend it does not exist.

Public Methods:

alert(int condition, String actionCommand, boolean execOnHost,

boolean alertUser)

Constructor.

executeAction()

Causes the action to be executed.

setCondition(int cond)

Sets the condition.

Private Methods:

Notes

We only support predefined condition types. Generic types can follow later.

Have an alert list, existing in alert manager. A thread will poll alerts ever minute maybe???? To be decided... <dramatic pause>

2004-02-29T11:12:51