1 7 8 9 package javax.management.remote; 10 11 import java.io.IOException ; 12 import java.util.Map ; 13 14 import javax.management.ListenerNotFoundException ; 15 import javax.management.MBeanServerConnection ; 16 import javax.management.NotificationBroadcaster ; 17 import javax.management.NotificationEmitter ; 18 import javax.management.NotificationFilter ; 19 import javax.management.NotificationListener ; 20 import javax.security.auth.Subject ; 21 22 35 public interface JMXConnector { 36 43 public static final String CREDENTIALS = 44 "jmx.remote.credentials"; 45 46 57 public void connect() throws IOException ; 58 59 83 public void connect(Map <String ,?> env) throws IOException ; 84 85 120 public MBeanServerConnection getMBeanServerConnection() 121 throws IOException ; 122 123 158 public MBeanServerConnection getMBeanServerConnection( 159 Subject delegationSubject) 160 throws IOException ; 161 162 186 public void close() throws IOException ; 187 188 216 public void 217 addConnectionNotificationListener(NotificationListener listener, 218 NotificationFilter filter, 219 Object handback); 220 221 240 public void 241 removeConnectionNotificationListener(NotificationListener listener) 242 throws ListenerNotFoundException ; 243 244 264 public void removeConnectionNotificationListener(NotificationListener l, 265 NotificationFilter f, 266 Object handback) 267 throws ListenerNotFoundException ; 268 269 284 public String getConnectionId() throws IOException ; 285 } 286 | Popular Tags |