- java.lang.Object
-
- java.util.EventObject
-
- javax.management.Notification
-
- 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
JMXConnectorServer
) and by connector clients (instances ofJMXConnector
). 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 withSystem.currentTimeMillis()
) indicating when the notification was constructed.- Since:
- 1.5
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field and Description 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
-
-
Constructor Summary
Constructors Constructor and Description JMXConnectionNotification(String type, Object source, String connectionId, long sequenceNumber, String message, Object userData)
Constructs a new connection notification.
-
Method Summary
Methods Modifier and Type Method and Description String
getConnectionId()
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
-
-
-
-
Field Detail
-
OPENED
public static final String OPENED
Notification type string for a connection-opened notification.
- See Also:
- Constant Field Values
-
CLOSED
public static final String CLOSED
Notification type string for a connection-closed notification.
- See Also:
- Constant Field Values
-
FAILED
public static final String FAILED
Notification type string for a connection-failed notification.
- See Also:
- Constant Field Values
-
NOTIFS_LOST
public static final String NOTIFS_LOST
Notification type string for a connection that has possibly lost notifications.
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
JMXConnectionNotification
public JMXConnectionNotification(String type, Object source, String connectionId, long sequenceNumber, String message, Object userData)
Constructs a new connection notification. Thesource
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
ObjectName
under which it is registered. Otherwise, it is a reference to the connector server object itself, an instance of a subclass ofJMXConnectorServer
. - For a connector client, the source is a reference to the
connector client object, an instance of a class implementing
JMXConnector
.
- Parameters:
type
- the type of the notification. This is usually one of the constantsOPENED
,CLOSED
,FAILED
,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 previoussequenceNumber
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.- Throws:
NullPointerException
- iftype
,source
, orconnectionId
is null.IllegalArgumentException
- ifsequenceNumber
is negative.
- For a connector server, if it is registered in an MBean
server, the source is the
-
-
Method Detail
-
getConnectionId
public String getConnectionId()
The connection ID to which this notification pertains.
- Returns:
- the connection ID.
-
-
Nederlandse vertaling
U hebt gevraagd om deze site in het Nederlands te bezoeken. Voor nu wordt alleen de interface vertaald, maar nog niet alle inhoud.Als je me wilt helpen met vertalingen, is je bijdrage welkom. Het enige dat u hoeft te doen, is u op de site registreren en mij een bericht sturen waarin u wordt gevraagd om u toe te voegen aan de groep vertalers, zodat u de gewenste pagina's kunt vertalen. Een link onderaan elke vertaalde pagina geeft aan dat u de vertaler bent en heeft een link naar uw profiel.
Bij voorbaat dank.
Document heeft de 11/06/2005 gemaakt, de laatste keer de 04/03/2020 gewijzigd
Bron van het afgedrukte document:https://www.gaudry.be/nl/java-api-rf-javax/management/remote/JMXConnectionNotification.html
De infobrol is een persoonlijke site waarvan de inhoud uitsluitend mijn verantwoordelijkheid is. De tekst is beschikbaar onder CreativeCommons-licentie (BY-NC-SA). Meer info op de gebruiksvoorwaarden en de auteur.
Referenties
Deze verwijzingen en links verwijzen naar documenten die geraadpleegd zijn tijdens het schrijven van deze pagina, of die aanvullende informatie kunnen geven, maar de auteurs van deze bronnen kunnen niet verantwoordelijk worden gehouden voor de inhoud van deze pagina.
De auteur Deze site is als enige verantwoordelijk voor de manier waarop de verschillende concepten, en de vrijheden die met de referentiewerken worden genomen, hier worden gepresenteerd. Vergeet niet dat u meerdere broninformatie moet doorgeven om het risico op fouten te verkleinen.