1 23 24 29 30 package com.sun.appserv.management.base; 31 32 import java.util.Set ; 33 import java.util.Map ; 34 35 import javax.management.ObjectName ; 36 import javax.management.InstanceNotFoundException ; 37 import javax.management.Notification ; 38 import javax.management.NotificationFilter ; 39 import javax.management.NotificationListener ; 40 41 62 public interface NotificationService 63 extends AMX, NotificationListener 64 { 65 66 public static final String J2EE_TYPE = XTypes.NOTIFICATION_SERVICE; 67 68 72 public static final String BUFFER_OVERFLOW_NOTIFICATION_TYPE = 73 XTypes.NOTIFICATION_SERVICE + ".BufferOverflow"; 74 75 79 public static final String OVERFLOWED_NOTIFICATION_KEY = 80 XTypes.NOTIFICATION_SERVICE + ".OverflowedNotification"; 81 82 83 86 public Object getUserData(); 87 88 100 public void listenTo( ObjectName pattern, 101 final NotificationFilter filter ) 102 throws InstanceNotFoundException ; 103 104 105 112 public void dontListenTo( ObjectName objectName ) 113 throws InstanceNotFoundException ; 114 115 116 122 public NotificationFilter getFilter( ObjectName objectName); 123 124 125 132 public Object createBuffer( int bufferSize, NotificationFilter filter ); 133 134 137 public void removeBuffer( Object id ); 138 139 143 public static final String NEXT_SEQUENCE_NUMBER_KEY = "NextSequenceNumber"; 144 145 149 public static final String NOTIFICATIONS_KEY = "Notifications"; 150 151 172 public Map <String ,Object > getBufferNotifications( final Object bufferID, final long sequenceNumberIn ); 173 174 175 178 public Set <ObjectName > getListeneeSet(); 179 } 180 | Popular Tags |