Package org.glassfish.admin.amx.base
Interface ListenerInfo
-
- All Known Subinterfaces:
LogRecordEmitter
@Taxonomy(stability=UNCOMMITTED) public interface ListenerInfoProvide information about who's listening.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetListenerCount()Get the total number of listeners listening for anything.intgetNotificationTypeListenerCount(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
-
-