Package org.jdesktop.wonderland.modules.sas.common

Examples of org.jdesktop.wonderland.modules.sas.common.SasProviderLaunchStatusMessage


        logger.info("status = " + status);
        logger.info("launchMessageID = " + launchMessageID);
        logger.info("connInfo = " + connInfo);

        try {
            SasProviderLaunchStatusMessage msg =
                new SasProviderLaunchStatusMessage(status, launchMessageID, connInfo);
            send(msg);
            logger.info("sent success message");
        } catch (Exception ex) {
            logger.warning("Message send error while responding to launch message, msgID = " +
                           launchMessageID);
View Full Code Here


            // the provider is ready to start receiving requests.  Send any
            // queued requests at this point.
            SasServer server = (SasServer) serverRef.get();
            server.providerConnected(sender, clientID);
        } else if (message instanceof SasProviderLaunchStatusMessage) {
            SasProviderLaunchStatusMessage msg = (SasProviderLaunchStatusMessage) message;
            SasProviderLaunchStatusMessage.LaunchStatus status = msg.getStatus();
            MessageID launchMsgID = msg.getLaunchMessageID();
            String connInfo = msg.getConnectionInfo();

            logger.info("ProviderConnectionHandler: Launch status message received");
            logger.info("status = " + status);
            logger.info("launchMsgID = " + launchMsgID);
            logger.info("connInfo = " + connInfo);

            ProviderMessagesInFlight messagesInFlight = getProviderMessagesInFlight();
            ProviderMessagesInFlight.MessageInfo msgInfo = messagesInFlight.getMessageInfo(launchMsgID);
            if (msgInfo == null || msgInfo.providerRef == null) {
                logger.warning("Cannot find provider proxy for message " + launchMsgID);
                return;
            }
            messagesInFlight.removeMessageInfo(launchMsgID);

            // If app launch succeeded, transition the app to the running apps list. It will
            // stay there until the app exits or the provider disconnects
            if (status == SasProviderLaunchStatusMessage.LaunchStatus.SUCCESS) {
                getRunningApps().addAppInfo(launchMsgID, msgInfo.providerRef, msgInfo.cellID);
            }
           
            ProviderProxy provider = (ProviderProxy) msgInfo.providerRef.get();
            provider.appLaunchResult(status, msgInfo.cellID, connInfo);

        } else if (message instanceof SasProviderAppExittedMessage) {
            SasProviderAppExittedMessage msg = (SasProviderAppExittedMessage) message;
            MessageID launchMsgID = msg.getLaunchMessageID();
            int exitValue = msg.getExitValue();

            RunningAppInfo.AppInfo appInfo = getRunningApps().getAppInfo(launchMsgID);
            if (appInfo != null) {
                getRunningApps().removeAppInfo(launchMsgID);
                ProviderProxy provider = (ProviderProxy) appInfo.providerRef.get();
View Full Code Here

TOP

Related Classes of org.jdesktop.wonderland.modules.sas.common.SasProviderLaunchStatusMessage

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.