Package java.rmi.activation

Examples of java.rmi.activation.ActivationGroupID


            RMIObjectInputStream ois = new RMIObjectInputStream(
                    new BufferedInputStream(System.in));
            // rmi.log.55=ois = {0}
            rlog.log(RMILog.VERBOSE, Messages.getString("rmi.log.55", ois)); //$NON-NLS-1$
            ActivationGroupID agid = (ActivationGroupID) ois.readObject();
            // rmi.log.57=agid = {0}
            rlog.log(RMILog.VERBOSE, Messages.getString("rmi.log.57", agid)); //$NON-NLS-1$
            ActivationGroupDesc agdesc = (ActivationGroupDesc) ois.readObject();
            // rmi.log.74=agdesc = {0}
            rlog.log(RMILog.VERBOSE, Messages.getString("rmi.log.74", agdesc)); //$NON-NLS-1$
View Full Code Here


            rLog.log(persistenceDebugLevel, Messages.getString("rmi.log.75") + op //$NON-NLS-1$
                    + ", " + name + ", " + mkey.get() + ", " + mval.get()); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$

            if (op == PUT) {
                if (name.equals("group")) { //$NON-NLS-1$
                    ActivationGroupID agid = (ActivationGroupID) mkey
                            .get();
                    // rmi.log.76=Restore agid: {0}
                    rLog.log(persistenceDebugLevel, Messages.getString("rmi.log.76", //$NON-NLS-1$
                            agid));
                    ActivationGroupDesc agdesc = (ActivationGroupDesc) mval
                            .get();

                    ActivationGroupInfo agi = new ActivationGroupInfo(
                            agid, agdesc);
                    // rmi.log.77=Restore agi: {0}
                    rLog.log(persistenceDebugLevel, Messages.getString("rmi.log.77", agi)); //$NON-NLS-1$
                    groupInfoByGroupId.put(agid, agi);
                    // rmi.log.78=The data were put into groupID2groupInfo_H
                    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$

                    ActivationGroupID agid = adesc.getGroupID();
                    // rmi.log.57=agid = {0}
                    rLog.log(persistenceDebugLevel, Messages.getString("rmi.log.57", agid)); //$NON-NLS-1$

                    ActivationGroupInfo agi =
                        (ActivationGroupInfo) groupInfoByGroupId.get(agid);
View Full Code Here

            Enumeration e0 = h0.keys();
            while (e0.hasMoreElements()) {

                MarshalledObject mo_agid = (MarshalledObject) e0
                        .nextElement();
                ActivationGroupID agid = (ActivationGroupID) mo_agid.get();
                // rmi.log.76=Restore agid: {0}
                rLog.log(persistenceDebugLevel, Messages.getString("rmi.log.76", agid)); //$NON-NLS-1$

                ActivationGroupDesc agdesc = (ActivationGroupDesc) h0
                        .get(mo_agid);

                // rmi.log.82=Restore agdesc: {0}
                rLog.log(persistenceDebugLevel, Messages.getString("rmi.log.82", //$NON-NLS-1$
                        agdesc));
                ActivationGroupInfo agi = new ActivationGroupInfo(agid,
                        agdesc);
                // rmi.log.77=Restore agi: {0}
                rLog.log(persistenceDebugLevel, Messages.getString("rmi.log.77") + agi); //$NON-NLS-1$
                groupInfoByGroupId.put(agid, agi);
                // rmi.log.78=The data were put into groupID2groupInfo_H
                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);
                groupIDByActivationID.put(aid, agid);
            }
View Full Code Here

     *********************************************************************/

    public ActivationGroupID registerGroup(ActivationGroupDesc agdesc)
            throws ActivationException {
        waitStartup();
        ActivationGroupID agid = new ActivationGroupID(this);
        ActivationGroupInfo agi = new ActivationGroupInfo(agid, agdesc);
        if (groupInfoByGroupId.containsKey(agid)) {
            // rmi.2E=This group is already registered.
            throw new ActivationException(Messages.getString("rmi.2E")); //$NON-NLS-1$
        }
View Full Code Here

     * @throws RemoteException  if remote call fails
     */
    public ActivationDesc getActivationDesc(ActivationID aID)
            throws UnknownObjectException {
        waitStartup();
        ActivationGroupID agid = (ActivationGroupID) groupIDByActivationID
                .get(aID);
        ActivationGroupInfo info = (ActivationGroupInfo) groupInfoByGroupId
                .get(agid);
        ActivationDesc adesc = info.getActivationDesc(aID);

View Full Code Here

    public ActivationID registerObject(ActivationDesc adesc) {
        waitStartup();
        // rmi.log.4B=ActivationSystemImpl.registerObject():
        rLog.log(commonDebugLevel,Messages.getString("rmi.log.4B")); //$NON-NLS-1$
        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);
View Full Code Here

    }

    public ActivationDesc setActivationDesc(ActivationID id,
            ActivationDesc desc) {
        waitStartup();
        ActivationGroupID agid = (ActivationGroupID) groupIDByActivationID
                .get(id);
        ActivationGroupInfo agi = (ActivationGroupInfo) groupInfoByGroupId
                .get(agid);
        return agi.setActivationDesc(id, desc);
    }
View Full Code Here

    /**
     * @param aID the ActivationID of the object that should be removed.
     */
    public void unregisterObject(ActivationID aID) {
        waitStartup();
        ActivationGroupID gID = (ActivationGroupID) groupIDByActivationID
                .get(aID);
        ActivationGroupInfo gInfo = (ActivationGroupInfo) groupInfoByGroupId
                .get(gID);
        gInfo.unregisterObject(aID);
    }
View Full Code Here

        waitStartup();

        // rmi.log.56=Rmid.activeObject: {0}; {1}
        rLog.log(commonDebugLevel, Messages.getString("rmi.log.56", //$NON-NLS-1$
                id, obj));
        ActivationGroupID agid = (ActivationGroupID) groupIDByActivationID
                .get(id);
        // rmi.log.57=agid = {0}
        rLog.log(commonDebugLevel, Messages.getString("rmi.log.57", agid)); //$NON-NLS-1$

        ActivationGroupInfo agi = (ActivationGroupInfo) groupInfoByGroupId
View Full Code Here

        agi.inactive(incarnation);
    }

    public void inactiveObject(ActivationID aID) {
        waitStartup();
        ActivationGroupID gID = (ActivationGroupID) groupIDByActivationID
                .get(aID);
        ActivationGroupInfo gInfo = (ActivationGroupInfo) groupInfoByGroupId
                .get(gID);
        gInfo.inactiveObject(aID);
    }
View Full Code Here

TOP

Related Classes of java.rmi.activation.ActivationGroupID

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.