Examples of createReference()


Examples of com.sun.sgs.app.DataManager.createReference()

        // notify listeners for all users
        for (ManagedReference<UserListener> listenerRef : userListeners) {
            AppContext.getTaskManager().scheduleTask(
                    new UserListenerNotifier(listenerRef,
                                             dm.createReference(user),
                                             null,
                                             clientID,
                                             NotificationType.LOGIN));
        }
    }
View Full Code Here

Examples of com.sun.sgs.app.DataManager.createReference()

       
        // add listener notification tasks to the queue, starting with
        // per-user listeners
        for (ManagedReference<UserListener> listener : user.getUserListeners()) {
            tasks.add(new UserListenerNotifier(listener,
                                               dm.createReference(user),
                                               dm.createReference(tasks),
                                               clientID,
                                               NotificationType.LOGOUT));
        }
       
View Full Code Here

Examples of com.sun.sgs.app.DataManager.createReference()

        // add listener notification tasks to the queue, starting with
        // per-user listeners
        for (ManagedReference<UserListener> listener : user.getUserListeners()) {
            tasks.add(new UserListenerNotifier(listener,
                                               dm.createReference(user),
                                               dm.createReference(tasks),
                                               clientID,
                                               NotificationType.LOGOUT));
        }
       
        // next add global listeners
View Full Code Here

Examples of com.sun.sgs.app.DataManager.createReference()

        }
       
        // next add global listeners
        for (ManagedReference<UserListener> listener : userListeners) {
            tasks.add(new UserListenerNotifier(listener,
                                               dm.createReference(user),
                                               dm.createReference(tasks),
                                               clientID,
                                               NotificationType.LOGOUT));
        }
View Full Code Here

Examples of com.sun.sgs.app.DataManager.createReference()

       
        // next add global listeners
        for (ManagedReference<UserListener> listener : userListeners) {
            tasks.add(new UserListenerNotifier(listener,
                                               dm.createReference(user),
                                               dm.createReference(tasks),
                                               clientID,
                                               NotificationType.LOGOUT));
        }

        // now that we have collected all logout tasks, start running them
View Full Code Here

Examples of com.sun.sgs.app.DataManager.createReference()

                                               NotificationType.LOGOUT));
        }

        // now that we have collected all logout tasks, start running them
        AppContext.getTaskManager().scheduleTask(
                new LogoutTask(clientID, dm.createReference(tasks)));
    }

    /**
     * Cleanup when all logouts for a given id are finished
     * @param id the id to cleanup
View Full Code Here

Examples of com.sun.sgs.app.DataManager.createReference()

         *       in the deque
         */
        void setNext(Element<E> next) {
            DataManager dm = AppContext.getDataManager();
            ManagedReference<Element<E>> ref =
                    (next == null) ? null : dm.createReference(next);

            dm.markForUpdate(this);
            nextElement = ref;
        }

View Full Code Here

Examples of com.sun.sgs.app.DataManager.createReference()

         *       in the deque
         */
        void setPrev(Element<E> prev) {
            DataManager dm = AppContext.getDataManager();
            ManagedReference<Element<E>> ref =
                    (prev == null) ? null : dm.createReference(prev);

            dm.markForUpdate(this);
            prevElement = ref;
        }

View Full Code Here

Examples of com.sun.sgs.app.DataManager.createReference()

    public String getIDFor(ProximityListenerSrv listener) {
        // issue #1101: if the listener is a managed object, generate
        // and ID based on the ID of the underlying managed object.
        if (listener instanceof ManagedObject) {
            DataManager dm = AppContext.getDataManager();
            return cellID + "." + dm.createReference(listener).getId();
        } else {
            // the object is not a managed object, so return a newly assigned
            // id
            return cellID + "." + nextID++;
        }
View Full Code Here

Examples of com.sun.sgs.app.DataManager.createReference()

     */
    public ScalableDeque() {
        backingMap = new ScalableHashMap<Element<E>, Long>();

        DataManager dm = AppContext.getDataManager();
        backingMapRef = dm.createReference(backingMap);

        // initialize the pointers to the front and end of the deque
        // to null.  However, the reference to these pointers will
        // always be non-null
        ManagedSerializable<ManagedReference<Element<E>>> head =
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.