Package java.rmi.activation

Examples of java.rmi.activation.ActivationGroupID


            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

        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);
            System.out.println("Il gruppo del Server di Autenticazione e' stato creato,  registrato col sistema d'attivazione, ed ha identificativo = " + AUTH_ACTIVATION_GROUP_ID.hashCode());

            ActivationDesc dsServer = new ActivationDesc(SERVER_ACTIVATION_GROUP_ID, server_centrale, implCodebase, null);
            ServerInterface stub_server = (ServerInterface) Activatable.register(dsServer);
            System.out.println("E' stato creato l'activation descriptor del Server Centrale che e' stato registrato col demone d'attivazione");
View Full Code Here

             // directory, so it has to be last.
               if (log != null) log.deletePersistentStore();
  
             if (activationID != null) {
           /* inactive will set current group ID to null */
           ActivationGroupID gid = ActivationGroup.currentGroupID();
           try {
               Activatable.inactive(activationID);
           } catch (RemoteException e) { // ignore
           } catch (ActivationException e) { // ignore
           }
View Full Code Here

     */
    private ActivationGroupID getGroupID(ActivationID id)
        throws UnknownObjectException
    {
        synchronized (idTable) {
            ActivationGroupID groupID = idTable.get(id);
            if (groupID != null) {
                return groupID;
            }
        }
        throw new UnknownObjectException("unknown object: " + id);
View Full Code Here

     * object's group is not registered.
     */
    private GroupEntry getGroupEntry(ActivationID id)
        throws UnknownObjectException
    {
        ActivationGroupID gid = getGroupID(id);
        synchronized (groupTable) {
            GroupEntry entry = groupTable.get(gid);
            if (entry != null) {
                return entry;
            }
View Full Code Here

            throws ActivationException, UnknownGroupException, RemoteException
        {
            checkShutdown();
            RegistryImpl.checkAccess("ActivationSystem.registerObject");

            ActivationGroupID groupID = desc.getGroupID();
            ActivationID id = new ActivationID(activatorStub);
            getGroupEntry(groupID).registerObject(id, desc, true);
            return id;
        }
View Full Code Here

        {
            checkShutdown();
            RegistryImpl.checkAccess("ActivationSystem.registerGroup");
            checkArgs(desc, null);

            ActivationGroupID id = new ActivationGroupID(systemStub);
            GroupEntry entry = new GroupEntry(id, desc);
            // table insertion must take place before log update
            synchronized (groupTable) {
                groupTable.put(id, entry);
            }
View Full Code Here

            if (System.getSecurityManager() == null) {
                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);
View Full Code Here

            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();

            System.err.println("Invoke activeGroup with inst1");
            system.activeGroup(groupID, inst1, 0);
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.