All events All events and user defined events may be selected, filtered and routed to notifiers in the Event Notification configuration. supplies a few standard notifiers where event information may be directed to a Log File, a database table, by e-mail, by SNMP or to the System Log. If required, new notifiers can be developed and introduced into the system using the DTK.
...
Info | ||
---|---|---|
| ||
DRNotifierTarget
A new notifier plugin is defined by extending DRNotifierTarget
. The Code Server will locate all such classes and make them available for configuration in the Event Notification Editor. The configuration of a notifier can be obtained in two ways (or through a combination of both):
...
When a notifier configuration is saved, the initialize
method is called. If the notifier was previously saved, the deinitialize
method is called first. When the Event Notification configuration receives an event that the notifier subscribes for, the notify
method is called. The method is handed the event itself, and if dynamic fields are used, a hash map keyed by the dynamic field name and a corresponding object as well. The corresponding object will hold the assigned field value. If the value has been manually entered or assigned directly from an event field, then the object will have the same data type as the dynamic field. If the value used formatted input (PT_STRING only) then this value will contain the formatted string, that means any variables will have been substituted by an event field value.
DRNotifierTargetUI
If the notifier requires a static user interface for user configuration, the DRNotifierTargetUI
class must be extended. The class extends the Java JPanel
that is the main container for the configuration components. When a notifier is selected in the user interface, this panel will be displayed in the Base Configuration frame.
...
When a notifier is saved in the Event Notification configuration, the validateInput
method is called. If the method returns a string, it is displayed as an error message. If it returns null
, the collectConfig
method is called to create and populate a configuration object. The Platform takes care of storing the configuration.
Scroll pagebreak |
---|