Package org.jdesktop.wonderland.server.spatial

Examples of org.jdesktop.wonderland.server.spatial.UniverseManager


                        new ServerProximityListenerWrapper(cellID, listener, id),
                        localBounds, id);

        proximityListeners.put(listener, rec);
      
        UniverseManager mgr = AppContext.getManager(UniverseManager.class);
        CellMO cell = cellRef.get();
        rec.setLive(isLive, cell, mgr);
    }
View Full Code Here


        }

        ServerProximityListenerRecord rec = proximityListeners.remove(listener);

        if (rec != null) {
            UniverseManager mgr = AppContext.getManager(UniverseManager.class);
            CellMO cell = cellRef.get();
            rec.setLive(false, cell, mgr);
        }

  // clean up the binding the wrapper created
View Full Code Here

    public void setLive(boolean isLive) {
        super.setLive(isLive);
        this.isLive = isLive;

        if (isLive) {
            UniverseManager mgr = AppContext.getManager(UniverseManager.class);
            CellMO cell = cellRef.get();
            for (ServerProximityListenerRecord rec : proximityListeners.values()) {
                rec.setLive(isLive, cell, mgr);
            }
        } else {
            UniverseManager mgr = AppContext.getManager(UniverseManager.class);
            CellMO cell = cellRef.get();
             for (ServerProximityListenerRecord rec : proximityListeners.values()) {
                rec.setLive(isLive, cell, mgr);
             }
         }
View Full Code Here

    public static void initialize() {
        logger.fine("CellManagerMO Initializing");

        // add a listener that will be notified of any cell creation
        // in the system
        UniverseManager universe = AppContext.getManager(UniverseManager.class);
        universe.addCellListener(new CellCreationListener());

        // register the cell channel message listener
        CommsManager cm = WonderlandContext.getCommsManager();
        cm.registerClientHandler(new CellChannelConnectionHandler());
       
View Full Code Here

    private static final Logger logger =
            Logger.getLogger(SecurityServerPlugin.class.getName());

    public void initialize() {
        // add our listener to the universe manager
        UniverseManager um = AppContext.getManager(UniverseManager.class);
        um.addCellListener(new SecurityCellMOListener());
    }
View Full Code Here

        CellResourceManagerInternal crmi =
                AppContext.getManager(CellResourceManagerInternal.class);
        crmi.updateCellResource(cellID, owners, permissions);

        // update the cell cache as well
        UniverseManager um = AppContext.getManager(UniverseManager.class);
        um.revalidateCell(cellRef.get());

        // send a message to clients notifying them of the change
        if (channelRef != null) {
            channelRef.get().sendAll(null, new PermissionsChangedMessage());
        }
View Full Code Here

        for (String username : igm.getUsernames()) {
            resolver.invalidate(username);
        }

        // invalidate the cell cache for each user in the message
        UniverseManager um = AppContext.getManager(UniverseManager.class);
        for (String username : igm.getUsernames()) {
            UserMO user = UserManager.getUserMO(username);
            if (user != null) {
                for (ManagedReference<AvatarCellMO> avatars : user.getAllAvatars()) {
                    um.viewRevalidate(avatars.get());
                }
            }
        }
        // send an OK back to the sender
        sender.send(clientID, new OKMessage(message.getMessageID()));
View Full Code Here

TOP

Related Classes of org.jdesktop.wonderland.server.spatial.UniverseManager

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.