FileDocCategorySizeDatePackage
J2EEEventProviderMOMdl.javaAPI DocGlassfish v2 API3834Fri May 04 22:24:16 BST 2007com.sun.enterprise.management.model

J2EEEventProviderMOMdl

public abstract class J2EEEventProviderMOMdl extends J2EEManagedObjectMdl implements NotificationBroadcaster
The base class for Managed Objects that are event providers

Fields Summary
private final NotificationBroadcasterSupport
broadcaster
private final boolean
debug
Constructors Summary
public J2EEEventProviderMOMdl(String name, boolean state, boolean statistics)

          
        super(name,state,statistics,false);
        broadcaster = new NotificationBroadcasterSupport();
    
public J2EEEventProviderMOMdl(String name, String serverName, boolean state, boolean statistics)

        super(name,serverName,state,statistics,false);
        broadcaster = new NotificationBroadcasterSupport();
    
Methods Summary
public voidaddNotificationListener(javax.management.NotificationListener listener, javax.management.NotificationFilter filter, java.lang.Object handback)

        if(debug)System.out.println("J2EEEventPRoviderMOMdl::addNotificationListener listener added:"+listener);
        broadcaster.addNotificationListener(listener,filter,handback);
    
public javax.management.MBeanNotificationInfo[]getNotificationInfo()

        return broadcaster.getNotificationInfo();
    
public voidremoveNotificationListener(javax.management.NotificationListener listener)

        broadcaster.removeNotificationListener(listener);
    
public voidsendNotification(javax.management.Notification notification)

        if(debug)System.out.println("J2EEEventPRoviderMOMdl::sendNotification sending notification"+notification);
        broadcaster.sendNotification(notification);