FileDocCategorySizeDatePackage
AlertSubscriptionInfo.javaAPI DocGlassfish v2 API3772Fri May 04 22:33:16 BST 2007com.sun.enterprise.admin.alert

AlertSubscriptionInfo

public class AlertSubscriptionInfo extends Object
Class AlertSubscriptionInfo contains a list of ObjectNames (only the name elements of Monitors and MBeans whose notifications it's interested in) and the NotificationListener and the NotificationFilter if any.
AUTHOR:
Hemanth Puttaswamy

Fields Summary
private List
monitorNames
private NotificationListener
listener
private NotificationFilter
filter
Constructors Summary
public AlertSubscriptionInfo(String subscribeListenersWith, NotificationListener listener, NotificationFilter filter)
A comma separated list of monitor names will be passed as is read from domain.xml's alert-service, subscribe-listener-with attribute.

        // No need to check for null as it is already done by domain.xml's
        // validation.
        StringTokenizer tokenizer = 
            new StringTokenizer( subscribeListenersWith, "," );
        ArrayList list = new ArrayList( );
        while( tokenizer.hasMoreTokens( ) ) {
            String monitorName = tokenizer.nextToken( );
            list.add( monitorName.trim() );
        }
        monitorNames = list;
        this.listener = listener;
        this.filter = filter;
    
Methods Summary
java.util.ListgetMonitorNames()

        return monitorNames;
    
javax.management.NotificationFiltergetNotificationFilter()

        return filter;
    
javax.management.NotificationListenergetNotificationListener()

        return listener;