Examples of CreateThreadAction


Examples of org.apache.harmony.rmi.common.CreateThreadAction

        // does not contain dots, so we presume that getHostName()
        // did not return fqdn
        String addr = iaddr.getHostAddress();
        FQDNGetter getter = new FQDNGetter(addr);
        Thread fqdnThread = (Thread) AccessController.doPrivileged(
                new CreateThreadAction(getter, "FQDN getter.", true)); //$NON-NLS-1$

        try {
            synchronized (getter) {
                fqdnThread.start();
                getter.wait(localHostNameTimeout);
View Full Code Here

Examples of org.apache.harmony.rmi.common.CreateThreadAction

                return mgr;
            }
        }
        mgr = new ServerConnectionManager(ep);
        ((Thread) AccessController.doPrivileged(
                new CreateThreadAction(mgr, "ServerConnectionManager[" //$NON-NLS-1$
                        + mgr.getEndpoint() + "]", true))).start(); //$NON-NLS-1$
        if (tmpl == null) {
            tmpl = Endpoint.createTemplate(ep);
        }
        localEps.put(tmpl, mgr);
View Full Code Here

Examples of org.apache.harmony.rmi.common.CreateThreadAction

        /*
         * Start the thread in non-system group
         * (see comment for CreateThreadAction class).
         */
        Thread connThread = (Thread) AccessController.doPrivileged(
                new CreateThreadAction(conn, "Call from " + conn.ep, true, //$NON-NLS-1$
                        false));
        connThread.start();

        if (transportLog.isLoggable(RMILog.VERBOSE)) {
            // rmi.log.10A=Accepted {0}
View Full Code Here

Examples of org.apache.harmony.rmi.common.CreateThreadAction

             * from exiting while unreferencing the object.
             * The thread is started in non-system group
             * (see comment for CreateThreadAction class).
             */
            Thread uThread = ((Thread) AccessController.doPrivileged(
                    new CreateThreadAction(new Runnable() {
                        public void run() {
                            AccessController.doPrivileged(
                                    new PrivilegedAction() {
                                        public Object run() {
                                            ((Unreferenced) obj).unreferenced();
View Full Code Here

Examples of org.apache.harmony.rmi.common.CreateThreadAction

                vmidTable.put(vmid, s);
            }

            if (expTracker == null) {
                (expTracker = (Thread) AccessController.doPrivileged(
                        new CreateThreadAction(new ExpirationTracker(),
                                "ExpirationTracker", true))).start(); //$NON-NLS-1$
            }

            for (int i = 0; i < ids.length; ++i) {
                s.add(ids[i]);
View Full Code Here

Examples of org.apache.harmony.rmi.common.CreateThreadAction

                rref, sref.getObjId(), sref, stub);
        exportedObjs.add(info);

        if (scav == null) {
            (scav = (Thread) AccessController.doPrivileged(
                    new CreateThreadAction(new Scavenger(),
                            "Scavenger", false))).start(); //$NON-NLS-1$
        }

        if (isSystem) {
            rref.makeStrong(true);
View Full Code Here

Examples of org.apache.harmony.rmi.common.CreateThreadAction

        synchronized (callsLock) {
            ++activeCallsNum;

            if (scav == null) {
                (scav = (Thread) AccessController.doPrivileged(
                        new CreateThreadAction(new Scavenger(),
                                "Scavenger", false))).start(); //$NON-NLS-1$
            }
        }
    }
View Full Code Here

Examples of org.apache.harmony.rmi.common.CreateThreadAction

            info.renewTime = System.currentTimeMillis();
        }

        if (lRenewer == null) {
            (lRenewer = (Thread) AccessController.doPrivileged(
                    new CreateThreadAction(new LeaseRenewer(),
                            "LeaseRenewer", true))).start(); //$NON-NLS-1$
        }
    }
View Full Code Here

Examples of org.apache.harmony.rmi.common.CreateThreadAction

                renewTable.remove(id);
                cleanSet.add(id);

                if (cleanCaller == null) {
                    (cleanCaller = ((Thread) AccessController.doPrivileged(
                            new CreateThreadAction(new CleanCaller(this),
                                    "CleanCaller for " + ep, true)))).start(); //$NON-NLS-1$
                } else {
                    AccessController.doPrivileged(
                            new InterruptThreadAction(cleanCaller));
                }
View Full Code Here

Examples of org.apache.harmony.rmi.common.CreateThreadAction

             * from exiting while unreferencing the object.
             * The thread is started in non-system group
             * (see comment for CreateThreadAction class).
             */
            Thread uThread = ((Thread) AccessController.doPrivileged(
                    new CreateThreadAction(new Runnable() {
                        public void run() {
                            AccessController.doPrivileged(
                                    new PrivilegedAction() {
                                        public Object run() {
                                            ((Unreferenced) obj).unreferenced();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.