This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.


javax.management.remote
class JMXConnectionNotification

java.lang.Object extended by java.util.EventObject extended by javax.management.Notification extended by javax.management.remote.JMXConnectionNotification
All Implemented Interfaces:
Serializable

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 {@link JMXConnectorServer}) and by connector clients (instances of {@link 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 {@link System#currentTimeMillis()}) indicating when the notification was constructed.


Field Summary
static String CLOSED
          Notification type string for a connection-closed notification.
static String FAILED
          Notification type string for a connection-failed notification.
static String NOTIFS_LOST
          Notification type string for a connection that has possibly lost notifications.
static String OPENED
          Notification type string for a connection-opened notification.
 
Fields inherited from class javax.management.Notification
source
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
JMXConnectionNotification(String type, Object source, String connectionId, long sequenceNumber, String message, Object userData)

          Constructs a new connection notification.
 
Method Summary
 String

          The connection ID to which this notification pertains.
 
Methods inherited from class javax.management.Notification
getMessage, getSequenceNumber, getTimeStamp, getType, getUserData, setSequenceNumber, setSource, setTimeStamp, setUserData, toString
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLOSED

public static final String CLOSED

Notification type string for a connection-closed notification.


FAILED

public static final String FAILED

Notification type string for a connection-failed notification.


NOTIFS_LOST

public static final String NOTIFS_LOST

Notification type string for a connection that has possibly lost notifications.


OPENED

public static final String OPENED

Notification type string for a connection-opened notification.

Constructor Detail

JMXConnectionNotification

public JMXConnectionNotification(String type,
                                 Object source,
                                 String connectionId,
                                 long sequenceNumber,
                                 String message,
                                 Object userData)
Constructs a new connection notification. The {@link #getSource() source} of the notification depends on whether it is being sent by a connector server or a connector client:

Parameters:
type - the type of the notification. This is usually one of the constants {@link #OPENED}, {@link #CLOSED}, {@link #FAILED}, {@link #NOTIFS_LOST}. It is not an error for it to be a different string.
source - the connector server or client emitting the notification.
connectionId - the ID of the connection within its connector server.
sequenceNumber - a non-negative integer. It is expected but not required that this number will be greater than any previous sequenceNumber in a notification from this source.
message - an unspecified text message, typically containing a human-readable description of the event. Can be null.
userData - an object whose type and meaning is defined by the connector server. Can be null.
Method Detail

getConnectionId

public String getConnectionId()

The connection ID to which this notification pertains.

Returns:
the connection ID.


This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.
This page displays the Jadeite version of the documention, which is derived from the offical documentation that contains this copyright notice:
Copyright 2008 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.
The official Sun™ documentation can be found here at http://java.sun.com/javase/6/docs/api/.