Package java.rmi.activation

Examples of java.rmi.activation.ActivationGroupID


             // 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


      + absDir + "] does not exist.");
        }

        File cookieFile = new File(log, GROUP_COOKIE_FILE);
        ObjectInputStream ois = null;
        ActivationGroupID obj = null;
        try {
//TODO - lock out strategy for concurrent r/w file access
            ois = new ObjectInputStream(
                      new BufferedInputStream(
                         new FileInputStream(cookieFile)));
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

            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

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.