Package javax.management.remote.message

Examples of javax.management.remote.message.HandshakeEndMessage


      }

            // Send client handshake end
            //
            Object ccontext = (Object) env.get("jmx.remote.context");
            HandshakeEndMessage cend = new HandshakeEndMessage(ccontext, null);
      if (logger.traceOn()) {
    logger.trace("connectionOpen",
           ">>>>> Handshake End <<<<<");
    logger.trace("connectionOpen",
           "Client Context Object [ " + ccontext + " ]");
      }
            mc.writeMessage(cend);

            // Wait for server handshake end
            //
            HandshakeEndMessage send = null;
            msg = mc.readMessage();
            if (msg instanceof HandshakeEndMessage) {
                send = (HandshakeEndMessage) msg;
            } else if (msg instanceof HandshakeErrorMessage) {
                // Throw exception and let GenericConnector
                // close the connection
                //
                sendError = false;
                error = (HandshakeErrorMessage) msg;
                throwExceptionOnError(error);
            } else {
                throw new IOException("Unexpected message: " +
                                      msg.getClass().getName());
            }
            Object scontext = send.getContext();
            connectionId = send.getConnectionId();
      if (logger.traceOn()) {
    logger.trace("connectionOpen",
           "Server Context Object [ " + scontext + " ]");
    logger.trace("connectionOpen",
           "Server Connection Id [ " + connectionId + " ]");
View Full Code Here

TOP

Related Classes of javax.management.remote.message.HandshakeEndMessage

Copyright © 2018 www.massapicom. 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.