org.ow2.easybeans.component.audit.jmx
Class JMXNotifier

java.lang.Object
  extended by javax.management.NotificationBroadcasterSupport
      extended by org.ow2.easybeans.component.audit.jmx.JMXNotifier
All Implemented Interfaces:
NotificationBroadcaster, NotificationEmitter, JMXNotifierMBean

public final class JMXNotifier
extends NotificationBroadcasterSupport
implements JMXNotifierMBean

This class send notifications on new audit reports.

Author:
Mathieu ANCELIN

Constructor Summary
JMXNotifier()
          Constructor of the notifier.
 
Method Summary
 void registration()
          Register the notifier in the JMX server.
 void sendAuditNotification(String type, String report)
          This method send a notification to the listeners of the MBean.
 void unregistration()
          Unregister the Mbean.
 
Methods inherited from class javax.management.NotificationBroadcasterSupport
addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JMXNotifier

public JMXNotifier()
Constructor of the notifier.

Method Detail

registration

public void registration()
Register the notifier in the JMX server.


unregistration

public void unregistration()
Unregister the Mbean.


sendAuditNotification

public void sendAuditNotification(String type,
                                  String report)
This method send a notification to the listeners of the MBean.

Specified by:
sendAuditNotification in interface JMXNotifierMBean
Parameters:
type - the type of the notification.
report - the report text.


Copyright © 2006-2011 OW2 Consortium. All Rights Reserved.