Package com.sun.cldc.isolate

Examples of com.sun.cldc.isolate.Isolate


    /**
     * Tests passing illegal arguments.
     */
    void testIllegals2() throws InterruptedIOException, IOException {
        boolean thrown;
        Isolate is = Isolate.currentIsolate();
        Link sendLink = Link.newLink(is, is);
        Link l = Link.newLink(is, is);

        thrown = false;
        try {
View Full Code Here


            }
            break;

        case EventTypes.NATIVE_MIDLET_GETINFO_REQUEST:
            int isolateId = midlet.getIsolateId();
            Isolate task = null;
            Isolate[] allTasks = Isolate.getIsolates();

            for (int i = 0; i < allTasks.length; i++) {
                if (allTasks[i].id() == isolateId) {
                    task = allTasks[i];
                    break;
                }
            }

            if (task != null) {
                /* Structure to hold run time information about a midlet. */
                RuntimeInfo runtimeInfo = new RuntimeInfo();

                runtimeInfo.memoryTotal    = task.totalMemory();
                runtimeInfo.memoryReserved = task.reservedMemory();
                runtimeInfo.usedMemory     = task.usedMemory();
                runtimeInfo.priority       = task.getPriority();
                // there is no Isolate API now
                runtimeInfo.profileName    = null;

                saveRuntimeInfoInNative(runtimeInfo);
            }
View Full Code Here

        IsolateSynch.init();

        // Create the slave isolate and start it.

        try {
            iso = new Isolate(slave, new String[0]);
            iso.start();
        } catch (IsolateStartupException ise) {
            throw new RuntimeException("can't start isolate");
        }
View Full Code Here

TOP

Related Classes of com.sun.cldc.isolate.Isolate

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.