Java EE 5 SDK

com.sun.appserv.management.base
Interface ListenerInfo

All Known Subinterfaces:
Logging, LogRecordEmitter

public interface ListenerInfo

Provide information about who's listening.


Method Summary
 int getListenerCount()
          Get the total number of listeners listening for anything.
 int getNotificationTypeListenerCount(String notificationType)
          Get the number of listeners which are listening for the specified type of Notification.
 

Method Detail

getNotificationTypeListenerCount

int getNotificationTypeListenerCount(String notificationType)
Get the number of listeners which are listening for the specified type of Notification. If there are anonymous listeners (those that have no filter or a non-standard filter) then this routine will return the value 1.

Parameters:
notificationType - any Notification type, should usually be one advertised via MBeanInfo
Returns:
count of listeners

getListenerCount

int getListenerCount()
Get the total number of listeners listening for anything.

Returns:
count of listeners

Java EE 5 SDK

Submit a bug or feature

Copyright 2006 Sun Microsystems, Inc. All rights reserved.