01: /*
02: * Copyright (C) The MX4J Contributors.
03: * All rights reserved.
04: *
05: * This software is distributed under the terms of the MX4J License version 1.0.
06: * See the terms of the MX4J License in the documentation provided with this software.
07: */
08:
09: package javax.management.remote;
10:
11: import java.io.IOException;
12: import java.util.Map;
13: import javax.management.ListenerNotFoundException;
14: import javax.management.MBeanServerConnection;
15: import javax.management.NotificationFilter;
16: import javax.management.NotificationListener;
17: import javax.security.auth.Subject;
18:
19: /**
20: * @version $Revision: 1.6 $
21: */
22: public interface JMXConnector {
23: public static final String CREDENTIALS = "jmx.remote.credentials";
24:
25: public void connect() throws IOException, SecurityException;
26:
27: public void connect(Map environment) throws IOException,
28: SecurityException;
29:
30: public MBeanServerConnection getMBeanServerConnection()
31: throws IOException;
32:
33: public MBeanServerConnection getMBeanServerConnection(
34: Subject delegate) throws IOException;
35:
36: public void close() throws IOException;
37:
38: public String getConnectionId() throws IOException;
39:
40: public void addConnectionNotificationListener(
41: NotificationListener listener, NotificationFilter filter,
42: Object handback);
43:
44: public void removeConnectionNotificationListener(
45: NotificationListener listener)
46: throws ListenerNotFoundException;
47:
48: public void removeConnectionNotificationListener(
49: NotificationListener listener, NotificationFilter filter,
50: Object handback) throws ListenerNotFoundException;
51: }
|