Cloud CM-IPMP Guide de dépannage Page 92

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 201
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 91
Chapter 13
Notification System Configuration
13.1 Introduction
The Rhino SLEE supports notifications as a mechanism for external management clients to be notified of particular events within
the SLEE. The Java Management Extensions (JMX) defines the APIs and usage of notification broadcasters and listeners.
For more information on JMX, refer to
http://java.sun.com/products/jmx/overview.html
. The manner in which
notifications are implemented and how JMX is used is described in the JAIN SLEE 1.0 specification.
Notifications are created by SBBs running within the SLEE, or by the SLEE itself, and consumed by external management
clients.
13.2 The SLEE Notification system
Notifications come from many sources: Alarms, Traces, SBB Usage notifications or SLEE state change notifications.
Alarm notifications are broadcast when an alarm is raised within the SLEE. Potential sources of alarms include the Rhino SLEE
itself and the SBBs that use the Alarm Facility to create alarms. Alarms are used to alert a system administrator to conditions
in the SLEE that require manual intervention.
Trace notifications are the main method for recording debugging information from an SBB. Trace notifications should be used
instead of printing messages to
stdout
or using Log4J directly for recording debugging information. Trace notifications are
created using the Trace Facility from within SBBs.
SLEE state change notifications are broadcast when the SLEE changes it’s state to one of
SleeState.STOPPED
,
SleeState.STARTING
,
SleeState.RUNNING
or
SleeState.STOPPING
. These states are defined in the package
javax.slee.management
.
Usage parameter notifications are notifications that are broadcast when usage parameters (such as counters or sampled statistics)
are updated by SBBs.
In order to receive these notifications, a management client or m-let will need to create an object which implements the
NotificationListener
interface and add hte listener to the appropriate MBean. This is described in more detail in the Open
Cloud Rhino API Programmer’s Reference Manual, available on request from Open Cloud.
One such listener is provided with Rhino: The Notification Recorder, which forwards any notifications it receives to Rhino’s
logging system. This is described below in Section 13.3.
13.2.1 Trace Notifications
The following example code creates a trace notification from within an SBB. Firstly, the Trace Facility needs to be looked up:
83
Vue de la page 91
1 2 ... 87 88 89 90 91 92 93 94 95 96 97 ... 200 201

Commentaires sur ces manuels

Pas de commentaire