Package java.rmi.activation

Examples of java.rmi.activation.ActivationID


     *    checkInactiveGroup();
     * }
     */
    private void acquireLock(ActivationID id) {

        ActivationID waitForID;

        for (;;) {

            synchronized (lockedIDs) {
                int index = lockedIDs.indexOf(id);
                if (index < 0) {
                    lockedIDs.add(id);
                    return;
                } else {
                    waitForID = lockedIDs.get(index);
                }
            }

            synchronized (waitForID) {
                synchronized (lockedIDs) {
                    int index = lockedIDs.indexOf(waitForID);
                    if (index < 0) continue;
                    ActivationID actualID = lockedIDs.get(index);
                    if (actualID != waitForID)
                        /*
                         * don't wait on an id that won't be notified.
                         */
                        continue;
View Full Code Here


        }
    }

    private static class FakeActivatable extends Activatable {
        FakeActivatable() throws RemoteException {
            super(new ActivationID(new FakeActivator()), 0);
        }
View Full Code Here

     *
     * @return
     */
    public boolean remoteEquals(RemoteRef ref) {
        if (ref instanceof ActivatableRef) {
            ActivationID id = ((ActivatableRef)ref).id;
            return this.id.equals(id);
        }
        return false;
    }
View Full Code Here

        public synchronized void unregister() {
            Enumeration keys = objectInfoByActivationID.keys();

            while (keys.hasMoreElements()) {
                ActivationID id = (ActivationID) keys.nextElement();

                objectInfoByActivationID.remove(id);
                groupIDByActivationID.remove(id);
            }
        }
View Full Code Here

                    rLog.log(persistenceDebugLevel, Messages.getString("rmi.log.78")); //$NON-NLS-1$
                }
                if (name.equals("object")) { //$NON-NLS-1$
                    // rmi.log.79=Trying to restore ActivationID:
                    rLog.log(persistenceDebugLevel, Messages.getString("rmi.log.79")); //$NON-NLS-1$
                    ActivationID aid = (ActivationID) mkey.get();
                    // rmi.log.0F=aid = {0}
                    rLog.log(persistenceDebugLevel, Messages.getString("rmi.log.0F", aid)); //$NON-NLS-1$
                    ActivationDesc adesc = (ActivationDesc) mval.get();
                    // rmi.log.7A=adesc = {0}
                    rLog.log(persistenceDebugLevel, Messages.getString("rmi.log.7A", adesc)); //$NON-NLS-1$
View Full Code Here

                    (ActivationGroupInfo) groupInfoByGroupId.get(agid);
                ActivationGroupDesc agdesc = agi.getActivationGroupDesc();
                h0.put(mo_agid, agdesc);
                Enumeration e1 = agi.objectInfoByActivationID.keys();
                while (e1.hasMoreElements()) {
                    ActivationID aid = (ActivationID) e1.nextElement();
                    ObjectInfo oi = (ObjectInfo) agi.objectInfoByActivationID
                            .get(aid);
                    ActivationDesc adesc = oi.getActivationDesc();
                    h1.put(aid, adesc);
                }
View Full Code Here

                rLog.log(persistenceDebugLevel, Messages.getString("rmi.log.78")); //$NON-NLS-1$
            }

            Enumeration e1 = h1.keys();
            while (e1.hasMoreElements()) {
                ActivationID aid = (ActivationID) e1.nextElement();
                ActivationDesc adesc = (ActivationDesc) h1.get(aid);
                ActivationGroupID agid = adesc.getGroupID();
                ActivationGroupInfo agi =
                    (ActivationGroupInfo) groupInfoByGroupId.get(agid);
                agi.registerObject(aid, adesc);
View Full Code Here

        ActivationGroupID agid = adesc.getGroupID();
        // rmi.log.4C=agid : {0}
        rLog.log(commonDebugLevel, Messages.getString("rmi.log.4C", agid)); //$NON-NLS-1$
        // rmi.log.4D=Activator stub = {0}
        rLog.log(commonDebugLevel, Messages.getString("rmi.log.4D", thisStub)); //$NON-NLS-1$
        ActivationID aid = new ActivationID((Activator) thisStub);
        // rmi.log.4E=aid : {0}
        rLog.log(commonDebugLevel, Messages.getString("rmi.log.4E", aid)); //$NON-NLS-1$
        // rmi.log.4C=agid : {0}
        rLog.log(commonDebugLevel, Messages.getString("rmi.log.4C", agid)); //$NON-NLS-1$
View Full Code Here

        ActivationGroupID agid = adesc.getGroupID();
        // rmi.log.4C=agid : {0}
        rLog.log(commonDebugLevel, Messages.getString("rmi.log.4C", agid)); //$NON-NLS-1$
        // rmi.log.4D=Activator stub = {0}
        rLog.log(commonDebugLevel, Messages.getString("rmi.log.4D", thisStub)); //$NON-NLS-1$
        ActivationID aid = new ActivationID((Activator) thisStub);
        // rmi.log.4E=aid : {0}
        rLog.log(commonDebugLevel, Messages.getString("rmi.log.4E", aid)); //$NON-NLS-1$
        // rmi.log.4C=agid : {0}
        rLog.log(commonDebugLevel, Messages.getString("rmi.log.4C", agid)); //$NON-NLS-1$
View Full Code Here

        public synchronized void unregister() {
            Enumeration keys = objectInfoByActivationID.keys();

            while (keys.hasMoreElements()) {
                ActivationID id = (ActivationID) keys.nextElement();

                objectInfoByActivationID.remove(id);
                groupIDByActivationID.remove(id);
            }
        }
View Full Code Here

TOP

Related Classes of java.rmi.activation.ActivationID

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.