Notification emitted when a client connection is opened or
closed or when notifications are lost. These notifications are
sent by connector servers (instances of JMXConnectorServer
)
and by connector clients (instances of JMXConnector
). For
certain connectors, a session can consist of a sequence of
connections. Connection-opened and connection-closed notifications
will be sent for each one.
The notification type is one of the following:
Type | Meaning |
---|---|
jmx.remote.connection.opened |
A new client connection has been opened. |
jmx.remote.connection.closed |
A client connection has been closed. |
jmx.remote.connection.failed |
A client connection has failed unexpectedly. |
jmx.remote.connection.notifs.lost |
A client connection has potentially lost notifications. This notification only appears on the client side. |
The timeStamp
of the notification is a time value
(consistent with System#currentTimeMillis()
) indicating
when the notification was constructed.
Modifier and Type | Field and Description |
---|---|
public static final String | CLOSED
Notification type string for a connection-closed notification. |
private final String | |
public static final String | FAILED
Notification type string for a connection-failed notification. |
public static final String | NOTIFS_LOST
Notification type string for a connection that has possibly lost notifications. |
public static final String | OPENED
Notification type string for a connection-opened notification. |
private static final long |
Access | Constructor and Description |
---|---|
public | JMXConnectionNotification(String
the type of the notification. This is usually one
of the constants type, Object OPENED , CLOSED , FAILED , NOTIFS_LOST . It is not an error for it to
be a different string.the connector server or client emitting the
notification. source, String the ID of the connection within its
connector server. connectionId, long a non-negative integer. It is expected
but not required that this number will be greater than any
previous sequenceNumber, String sequenceNumber in a notification from
this source.an unspecified text message, typically containing
a human-readable description of the event. Can be null. message, Object an object whose type and meaning is defined by
the connector server. Can be null. userData)Constructs a new connection notification. |
CLOSED | back to summary |
---|---|
public static final String CLOSED Notification type string for a connection-closed notification. |
connectionId | back to summary |
---|---|
private final String connectionId
|
FAILED | back to summary |
---|---|
public static final String FAILED Notification type string for a connection-failed notification. |
NOTIFS_LOST | back to summary |
---|---|
public static final String NOTIFS_LOST Notification type string for a connection that has possibly lost notifications. |
OPENED | back to summary |
---|---|
public static final String OPENED Notification type string for a connection-opened notification. |
serialVersionUID | back to summary |
---|---|
private static final long serialVersionUID |
JMXConnectionNotification | back to summary |
---|---|
public JMXConnectionNotification(String type, Object source, String connectionId, long sequenceNumber, String message, Object userData) Constructs a new connection notification. The
|
getConnectionId | back to summary |
---|---|
public String getConnectionId() The connection ID to which this notification pertains.
|
nonNull | back to summary |
---|---|
private static Object nonNull(Object arg) |