Package org.jdesktop.wonderland.common.comms.messages

Examples of org.jdesktop.wonderland.common.comms.messages.SessionInitializationMessage


       
        /**
         * Set success in the protocol selection phase.
         */
        public synchronized void setProtocolSuccess() {
            SessionInitializationMessage initMessage = null;
           
            try {
                initMessage = getInternalClient().waitForInitialization();
            } catch (InterruptedException ie) {
                // ignore -- treat as a null init message
            }
           
            if (initMessage == null) {
                // no initialization message means there has been a login
                // problem of some sort
                setFailure("No initialization message.");
            } else {
                // we got an initialization message.  Read the session id
                // and then notify everyone that login has succeeded
                setID(initMessage.getSessionID());
                setUserID(initMessage.getUserID());
                setSessionInitialized();
            }
        }
View Full Code Here


        // managed object.  This id is guaranteed by Darkstar to be unique
        // across the whole Darkstar cluster.
        sessionID = sessionRef.getId();
        WonderlandIdentity userID =
               AppContext.getManager(ClientIdentityManager.class).getClientID();
        Message sim = new SessionInitializationMessage(sessionID, userID);
        sendToSession(SESSION_INTERNAL_CLIENT_ID, sim);
    }
View Full Code Here

TOP

Related Classes of org.jdesktop.wonderland.common.comms.messages.SessionInitializationMessage

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.