01: /*
02: * Copyright (C) The MX4J Contributors.
03: * All rights reserved.
04: *
05: * This software is distributed under the terms of the MX4J License version 1.0.
06: * See the terms of the MX4J License in the documentation provided with this software.
07: */
08:
09: package javax.management.remote;
10:
11: import javax.management.Notification;
12:
13: /**
14: * @version $Revision: 1.6 $
15: */
16: public class JMXConnectionNotification extends Notification {
17: public static final String OPENED = "jmx.remote.connection.opened";
18: public static final String CLOSED = "jmx.remote.connection.closed";
19: public static final String FAILED = "jmx.remote.connection.failed";
20: public static final String NOTIFS_LOST = "jmx.remote.connection.notifs.lost";
21:
22: private static final long serialVersionUID = -2331308725952627538l;
23:
24: /**
25: * @serial The connection ID for this notification
26: */
27: private String connectionId;
28:
29: public JMXConnectionNotification(String type, Object source,
30: String connectionId, long sequenceNumber, String message,
31: Object userData) {
32: super (type, source, sequenceNumber, System.currentTimeMillis(),
33: message);
34: setUserData(userData);
35: this .connectionId = connectionId;
36: }
37:
38: public String getConnectionId() {
39: return connectionId;
40: }
41: }
|