Package java.rmi.activation

Examples of java.rmi.activation.ActivationGroupDesc


            return oldDesc;
        }

        public synchronized ActivationGroupDesc setActivationGroupDesc(
                ActivationGroupID id, ActivationGroupDesc desc) {
            ActivationGroupDesc oldDesc = agdesc;
            agdesc = desc;
            return oldDesc;
        }
View Full Code Here


            // 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$
            long incarnation = ois.readLong();
            // rmi.log.7B=incarnation = {0}
            rlog.log(RMILog.VERBOSE, Messages.getString("rmi.log.7B", incarnation)); //$NON-NLS-1$
View Full Code Here

                    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}
View Full Code Here

                ActivationGroupID agid = (ActivationGroupID) e0
                        .nextElement();
                MarshalledObject mo_agid = new MarshalledObject(agid);
                ActivationGroupInfo agi =
                    (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
View Full Code Here

                        .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));
View Full Code Here

        authProp.put("java.security.policy", policyGroup);
        authProp.put("chat.impl.codebase", implCodebase);
        authProp.put("java.class.path", "no_classpath");
        authProp.put("java.rmi.dgc.leaseValue", "10000");

        ActivationGroupDesc dsServerGroup = new ActivationGroupDesc(serverProp, null);
        ActivationGroupDesc dsAuthGroup = new ActivationGroupDesc(authProp, null);

        try {
            ActivationGroupID SERVER_ACTIVATION_GROUP_ID = ActivationGroup.getSystem().registerGroup(dsServerGroup);
            System.out.println("Il gruppo del Server Centrale e' stato creato,  registrato col sistema d'attivazione, ed ha identificativo = " + SERVER_ACTIVATION_GROUP_ID.hashCode());
            ActivationGroupID AUTH_ACTIVATION_GROUP_ID = ActivationGroup.getSystem().registerGroup(dsAuthGroup);
View Full Code Here

                ActivationGroupDesc desc,
                boolean addRecord)
            throws UnknownGroupException, ActivationException
        {
            checkRemoved();
            ActivationGroupDesc oldDesc = this.desc;
            this.desc = desc;
            // state update should occur before log update
            if (addRecord) {
                addLogRecord(new LogUpdateGroupDesc(id, desc));
            }
View Full Code Here

                System.setSecurityManager(new SecurityManager());
            }
            // read group id, descriptor, and incarnation number from stdin
            MarshalInputStream in = new MarshalInputStream(System.in);
            ActivationGroupID id  = (ActivationGroupID)in.readObject();
            ActivationGroupDesc desc = (ActivationGroupDesc)in.readObject();
            long incarnation = in.readLong();

            // create and set group for the VM
            ActivationGroup.createGroup(id, desc, incarnation);
        } catch (Exception e) {
View Full Code Here

            RMID.removeLog();
            rmid = RMID.createRMID();
            rmid.start();

            System.err.println("Create group descriptor");
            ActivationGroupDesc groupDesc =
                new ActivationGroupDesc(null, null);
            ActivationSystem system = ActivationGroup.getSystem();
            System.err.println("Register group descriptor");
            ActivationGroupID groupID = system.registerGroup(groupDesc);
            inst1 = new FakeInstantiator();
            inst2 = new FakeInstantiator();
View Full Code Here

            // 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$
            long incarnation = ois.readLong();
            // rmi.log.7B=incarnation = {0}
            rlog.log(RMILog.VERBOSE, Messages.getString("rmi.log.7B", incarnation)); //$NON-NLS-1$
View Full Code Here

TOP

Related Classes of java.rmi.activation.ActivationGroupDesc

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.