Package org.jdesktop.wonderland.client.comms

Examples of org.jdesktop.wonderland.client.comms.SessionStatusListener


        frame.connected(true);

        // Listen for session disconnected and remove session physics and
        // collision systems
        curSession.addSessionStatusListener(new SessionStatusListener() {

            public void sessionStatusChanged(
                    WonderlandSession session, Status status) {
                if (status == Status.DISCONNECTED) {
                    ServerSessionManager serverSessionManager =
View Full Code Here


            // log in to the session
            session.login(loginControl.getLoginParameters());

            // the session was created successfully.  Add it to our list of
            // sessions, and add a listener to remove it when it disconnects
            session.addSessionStatusListener(new SessionStatusListener() {
                public void sessionStatusChanged(WonderlandSession session,
                                                 Status status)
                {
                    synchronized (ServerSessionManager.this) {
                        if (status.equals(Status.DISCONNECTED)) {
View Full Code Here

        }

        // add a listener that will remove the primary session if the session
        // disconnects
        if (primarySession != null) {
            primarySession.addSessionStatusListener(new SessionStatusListener() {
                public void sessionStatusChanged(WonderlandSession session,
                                                 Status status)
                {
                    if (status == Status.DISCONNECTED) {
                        synchronized (primarySessionLock) {
View Full Code Here

            throw new RuntimeException("Unable to create session.");
        }

        // add a listener that will attempt to log in again when the server
        // disconnects
        curSession.addSessionStatusListener(new SessionStatusListener() {
            public void sessionStatusChanged(WonderlandSession session,
                                             WonderlandSession.Status status)
            {
                // Give the subclass a chance to clean up before we reconnect
                cleanup();
View Full Code Here

TOP

Related Classes of org.jdesktop.wonderland.client.comms.SessionStatusListener

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.