Examples of JMXConnectionNotification


Examples of javax.management.remote.JMXConnectionNotification

                if (toClose) {
                    // we should close the connection,
                    // but send a failed notif at first
                    final Notification failedNotif =
                            new JMXConnectionNotification(
                            JMXConnectionNotification.FAILED,
                            this,
                            connectionId,
                            clientNotifSeqNo++,
                            "Failed to communicate with the server: "+ioe.toString(),
View Full Code Here

Examples of javax.management.remote.JMXConnectionNotification

            reconnectNotificationListeners(old);

            connectionId = getConnectionId();

            Notification reconnectedNotif =
                    new JMXConnectionNotification(JMXConnectionNotification.OPENED,
                    this,
                    connectionId,
                    clientNotifSeqNo++,
                    "Reconnected to server",
                    null);
View Full Code Here

Examples of javax.management.remote.JMXConnectionNotification

      this.connector = connector;
   }

   public void fireConnectedNotification()
   {
      JMXConnectionNotification notification = new JMXConnectionNotification(JMXConnectionNotification.OPENED,
                                                                             connector,
                                                                             getConnectionId(),
                                                                             sequenceNumber.increment(),
                                                                             "JMXConnector connected",
                                                                             null);
View Full Code Here

Examples of javax.management.remote.JMXConnectionNotification

      return id;
   }

   public void fireClosedNotification()
   {
      JMXConnectionNotification notification = new JMXConnectionNotification(JMXConnectionNotification.CLOSED,
                                                                             connector,
                                                                             getConnectionId(),
                                                                             sequenceNumber.increment(),
                                                                             "JMXConnector closed",
                                                                             null);
View Full Code Here

Examples of javax.management.remote.JMXConnectionNotification

      // reconnecting, to identify the "old" connection.
      //
      connectionId = getConnectionId();

      Notification connectedNotif =
    new JMXConnectionNotification(JMXConnectionNotification.OPENED,
                this,
                connectionId,
                clientNotifSeqNo++,
                "Successful connection",
                null);
View Full Code Here

Examples of javax.management.remote.JMXConnectionNotification

   * never called connect() on the connector, because there's no
   * connection id in that case.  */

  if (savedConnectionId != null) {
      Notification closedNotif =
    new JMXConnectionNotification(JMXConnectionNotification.CLOSED,
                this,
                savedConnectionId,
                clientNotifSeqNo++,
                "Client has been closed",
                null);
View Full Code Here

Examples of javax.management.remote.JMXConnectionNotification

  }

  protected void lostNotifs(String message, long number) {
      final String notifType = JMXConnectionNotification.NOTIFS_LOST;

      final JMXConnectionNotification n =
    new JMXConnectionNotification(notifType,
                RMIConnector.this,
                connectionId,
                clientNotifCounter++,
                message,
                new Long(number));
View Full Code Here

Examples of javax.management.remote.JMXConnectionNotification

    if (toClose) {
        // we should close the connection,
        // but send a failed notif at first
        final Notification failedNotif =
      new JMXConnectionNotification(
          JMXConnectionNotification.FAILED,
          this,
          connectionId,
          clientNotifSeqNo++,
          "Failed to communicate with the server: "+ioe.toString(),
View Full Code Here

Examples of javax.management.remote.JMXConnectionNotification

      reconnectNotificationListeners(old);

      connectionId = getConnectionId();

      Notification reconnectedNotif =
    new JMXConnectionNotification(JMXConnectionNotification.OPENED,
                this,
                connectionId,
                clientNotifSeqNo++,
                "Reconnected to server",
                null);
View Full Code Here

Examples of javax.management.remote.JMXConnectionNotification

        }
    }

    public void handleNotification(Notification notification, Object o) {
        if (notification instanceof JMXConnectionNotification) {
            JMXConnectionNotification cxNotification = (JMXConnectionNotification) notification;
            String type = cxNotification.getType();
            String connectionId = cxNotification.getConnectionId();
            if (JMXConnectionNotification.OPENED.equals(type)) {
                LoginContext context = threadContext.get();
                threadContext.set(null);
                contextMap.put(connectionId, context);
            } else {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.