1 8 9 package mx4j.tools.remote.http; 10 11 import java.io.IOException ; 12 import javax.management.InstanceNotFoundException ; 13 import javax.management.ListenerNotFoundException ; 14 import javax.management.ObjectName ; 15 import javax.management.remote.NotificationResult ; 16 import javax.security.auth.Subject ; 17 18 import mx4j.tools.remote.JMXConnection; 19 20 23 public interface HTTPConnection extends JMXConnection 24 { 25 37 public String connect(Object credentials) 38 throws IOException , 39 SecurityException ; 40 41 public Integer addNotificationListener(ObjectName name, Object filter, Subject delegate) 42 throws InstanceNotFoundException , 43 IOException ; 44 45 public void removeNotificationListeners(ObjectName name, Integer [] listenerIDs, Subject delegate) 46 throws InstanceNotFoundException , 47 ListenerNotFoundException , 48 IOException ; 49 50 public NotificationResult fetchNotifications(long clientSequenceNumber, int maxNotifications, long timeout) 51 throws IOException ; 52 } 53 | Popular Tags |