22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
25
26 package com.sun.tools.jconsole;
27
28 import javax.management.MBeanServerConnection;
29 import java.beans.PropertyChangeListener;
30 import javax.swing.event.SwingPropertyChangeSupport;
31
32 /**
33 * {@code JConsoleContext} represents a JConsole connection to a target
34 * application.
35 * <p>
36 * {@code JConsoleContext} notifies any {@code PropertyChangeListeners}
37 * about the {@linkplain #CONNECTION_STATE_PROPERTY <i>ConnectionState</i>}
38 * property change to {@link ConnectionState#CONNECTED CONNECTED} and
39 * {@link ConnectionState#DISCONNECTED DISCONNECTED}.
40 * The {@code JConsoleContext} instance will be the source for
41 * any generated events.
42 * <p>
43 *
44 * @since 1.6
45 */
46 @jdk.Exported
47 public interface JConsoleContext {
48 /**
49 * The {@link ConnectionState ConnectionState} bound property name.
50 */
51 public static String CONNECTION_STATE_PROPERTY = "connectionState";
52
53 /**
54 * Values for the {@linkplain #CONNECTION_STATE_PROPERTY
55 * <i>ConnectionState</i>} bound property.
56 */
57 @jdk.Exported
58 public enum ConnectionState {
59 /**
60 * The connection has been successfully established.
61 */
62 CONNECTED,
|
22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
25
26 package com.sun.tools.jconsole;
27
28 import javax.management.MBeanServerConnection;
29 import java.beans.PropertyChangeListener;
30 import javax.swing.event.SwingPropertyChangeSupport;
31
32 /**
33 * {@code JConsoleContext} represents a JConsole connection to a target
34 * application.
35 * <p>
36 * {@code JConsoleContext} notifies any {@code PropertyChangeListeners}
37 * about the {@linkplain #CONNECTION_STATE_PROPERTY <i>ConnectionState</i>}
38 * property change to {@link ConnectionState#CONNECTED CONNECTED} and
39 * {@link ConnectionState#DISCONNECTED DISCONNECTED}.
40 * The {@code JConsoleContext} instance will be the source for
41 * any generated events.
42 *
43 * @since 1.6
44 */
45 @jdk.Exported
46 public interface JConsoleContext {
47 /**
48 * The {@link ConnectionState ConnectionState} bound property name.
49 */
50 public static String CONNECTION_STATE_PROPERTY = "connectionState";
51
52 /**
53 * Values for the {@linkplain #CONNECTION_STATE_PROPERTY
54 * <i>ConnectionState</i>} bound property.
55 */
56 @jdk.Exported
57 public enum ConnectionState {
58 /**
59 * The connection has been successfully established.
60 */
61 CONNECTED,
|