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

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


        }
       
        logger.warning("Received message from server: " + message);

        if (message instanceof SasProviderLaunchMessage) {
            SasProviderLaunchMessage msg = (SasProviderLaunchMessage) message;

            logger.warning("Received launch message from server");
            logger.warning("execCap = " + msg.getExecutionCapability());
            logger.warning("appName = " + msg.getAppName());
            logger.warning("command = " + msg.getCommand());

            if (listener == null) {
                logger.warning("No provider listener is registered.");
                sendResponse(msg.getMessageID(), null);
            }

            logger.warning("Attempting to launch X app");
            String connInfo = listener.launch(msg.getAppName(), msg.getCommand(),
                                              this, msg.getMessageID(), msg.getCellID());
            logger.warning("connInfo = " + connInfo);
            sendResponse(msg.getMessageID(), connInfo);

        } else if (message instanceof SasProviderAppStopMessage) {
            SasProviderAppStopMessage msg = (SasProviderAppStopMessage) message;

            logger.warning("Received app stop message from server");
            logger.warning("launchMsgID= " + msg.getLaunchMessageID());

            listener.appStop(this, msg.getLaunchMessageID());

        } else {
            throw new RuntimeException("Unexpected message type "+message.getClass().getName());
        }
    }
View Full Code Here


        logger.severe("Provider tryLaunch, clientID = " + clientID);
        logger.severe("command = " + command);

        ManagedReference thisRef = AppContext.getDataManager().createReference(this);

        SasProviderLaunchMessage msg = new SasProviderLaunchMessage(executionCapability, appName, command, cellID);

        // Record this message so we can match it up with its corresponding status message
        logger.info("message ID = " + msg.getMessageID());
        SasProviderConnectionHandler.addProviderMessageInFlight(msg.getMessageID(), thisRef, cellID);

        // Now send the message. The response will come back asynchronously via the
        // SasProviderConnectionHandler and it will report the launch status to the
        // SasServer.appLaunchResult method
        //
View Full Code Here

TOP

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

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.