Class: javax.management.remote.JMXConnectionNotification
- public class JMXConnectionNotification
- extends Notification
Notification emitted when a client connection is opened or closed or when notifications are lost. These notifications are sent by connector servers (instances of javax.management.remote.JMXConnectorServer) and by connector clients (instances of javax.management.remote.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.
Inheritance
Superclass tree:- java.lang.Object
- java.util.EventObject
- javax.management.Notification
- javax.management.remote.JMXConnectionNotification
Methods
-
JMXConnectionNotificationtop
public JMXConnectionNotification(String type, Object source, String connectionId, long sequenceNumber, String message, Object userData)Constructs a new connection notification. The source of the notification depends on whether it is being sent by a connector server or a connector client:- For a connector server, if it is registered in an MBean server, the source is the javax.management.ObjectName under which it is registered. Otherwise, it is a reference to the connector server object itself, an instance of a subclass of javax.management.remote.JMXConnectorServer.
- For a connector client, the source is a reference to the connector client object, an instance of a class implementing javax.management.remote.JMXConnector.
-
getConnectionIdtop
public String getConnectionId()The connection ID to which this notification pertains.
-
nonNulltop
Fields
-
CLOSED
public static final String CLOSED = "jmx.remote.connection.closed"Notification type string for a connection-closed notification.
-
FAILED
public static final String FAILED = "jmx.remote.connection.failed"Notification type string for a connection-failed notification.
-
NOTIFS_LOST
public static final String NOTIFS_LOST = "jmx.remote.connection.notifs.lost"Notification type string for a connection that has possibly lost notifications.
-
OPENED
public static final String OPENED = "jmx.remote.connection.opened"Notification type string for a connection-opened notification.
-
connectionId
final private String connectionId -
serialVersionUID
static final private long serialVersionUID = -2331308725952627538
