JConsoleContext represents a JConsole connection to a target
application.
JConsoleContext notifies any PropertyChangeListeners
about the ConnectionState
property change to CONNECTED and
DISCONNECTED.
The JConsoleContext instance will be the source for
any generated events.
| Modifier and Type | Class and Description |
|---|---|
| public static enum | JConsoleContext.
Values for the ConnectionState bound property. |
| Modifier and Type | Field and Description |
|---|---|
| public static final String | CONNECTION_STATE_PROPERTY
The |
| Modifier and Type | Method and Description |
|---|---|
| public void | addPropertyChangeListener(PropertyChangeListener
The listener)PropertyChangeListener to be addedAdd a |
| public JConsoleContext. | |
| public MBeanServerConnection | Returns: theMBeanServerConnection for the
connection to an application.Returns the |
| public void | removePropertyChangeListener(PropertyChangeListener
the listener)PropertyChangeListener to be removedRemoves a |
| CONNECTION_STATE_PROPERTY | back to summary |
|---|---|
| public static final String CONNECTION_STATE_PROPERTY The | |
| addPropertyChangeListener | back to summary |
|---|---|
| public void addPropertyChangeListener(PropertyChangeListener listener) Add a
| |
| getConnectionState | back to summary |
|---|---|
| public JConsoleContext. Returns the current connection state.
| |
| getMBeanServerConnection | back to summary |
|---|---|
| public MBeanServerConnection getMBeanServerConnection() Returns the
| |
| removePropertyChangeListener | back to summary |
|---|---|
| public void removePropertyChangeListener(PropertyChangeListener listener) Removes a
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final JConsoleContext. | CONNECTED
The connection has been successfully established. |
| public static final JConsoleContext. | CONNECTING
The connection is being attempted. |
| public static final JConsoleContext. | DISCONNECTED
No connection present. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static JConsoleContext. | |
| public static JConsoleContext. |
| CONNECTED | back to summary |
|---|---|
| public static final JConsoleContext. The connection has been successfully established. | |
| CONNECTING | back to summary |
|---|---|
| public static final JConsoleContext. The connection is being attempted. | |
| DISCONNECTED | back to summary |
|---|---|
| public static final JConsoleContext. No connection present. | |
| ConnectionState | back to summary |
|---|---|
| private ConnectionState() | |
| valueOf | back to summary |
|---|---|
| public static JConsoleContext. | |
| values | back to summary |
|---|---|
| public static JConsoleContext. | |