Sun Java System Application Server Platform Edition 9 Administration Reference

Attributes

The following table describes attributes for the event element.

Table 1–47 event Attributes

Attribute 

Default 

Description 

type

none 

Specifies the type of event that triggers the management rule's action. Allowed values are as follows. The lifecycle, log, monitor, timer, and trace types are predefined events provided by the Application Server.

  • lifecycle — A lifecycle event. For more information about the server life cycle, see the Sun Java System Application Server Platform Edition 9 Developer’s Guide.

  • log — An event in the server log. For more information about the server log, see log-service.

  • monitor — A monitoring event, which is a change in the attribute of a monitored mbean.

  • notification — A JMX notification event. Any custom mbean that implements the JMX NotificationEmitter interface can be a notification event.

  • timer — An event that occurs at a specified time.

  • trace — A trace event.

For descriptions of required and optional properties corresponding to each of these types, see the following table. 

level

INFO

(optional) Specifies the level at which to log the event occurrence. For information about log levels, see module-log-levels. Applicable only if record-event is set to true.

record-event

true

(optional) Specifies whether the occurrence of the event is logged. If no action is specified for the parent management-rule, the event is logged regardless of this setting.


Note –

Setting the type to log is different from setting record-event to true. The former specifies what the event is. The latter specifies what happens after the event occurs.