1 8 9 package mx4j.remote; 10 11 import java.io.IOException ; 12 import javax.management.NotificationFilter ; 13 import javax.management.NotificationListener ; 14 import javax.management.ObjectName ; 15 import javax.management.remote.NotificationResult ; 16 17 25 public interface RemoteNotificationServerHandler 26 { 27 32 public Integer generateListenerID(ObjectName name, NotificationFilter filter); 33 34 38 public NotificationListener getServerNotificationListener(); 39 40 45 public void addNotificationListener(Integer id, NotificationTuple tuple); 46 47 52 public NotificationTuple removeNotificationListener(Integer id); 53 54 60 public NotificationResult fetchNotifications(long sequenceNumber, int maxNotifications, long timeout) throws IOException ; 61 62 68 public NotificationTuple[] close(); 69 } 70 | Popular Tags |