Sun GlassFish Enterprise Server 2.1 Administration Reference

management-rule

Configures a self-management rule, which associates a custom self-tuning, self-configuring, or self-healing action with an event in the Enterprise Server. The action is implemented by an MBean.

Superelements

management-rules

Subelements

The following table describes subelements for the management-rule element.

Table 1–116 management-rule Subelements

Element 

Required 

Description 

description

zero or one 

Contains a text description of this element.  

This description is included in server log messages about the management rule. For more information on logging, see log-service and module-log-levels.

event

only one 

Defines the event that triggers the action associated with a management rule. 

action

zero or one 

Specifies the action of this management rule. If no action is specified, occurrence of the associated event is logged. 

Attributes

The following table describes attributes for the management-rule element.

Table 1–117 management-rule Attributes

Attribute 

Default 

Description 

name

none 

Specifies the name of this management rule. 

enabled

true

(optional) If false, disables this management rule.