Package org.jnode.vm.isolate

Examples of org.jnode.vm.isolate.VmIsolate$AppSupport


        try {
            classPath.add(0, new File(".").toURI().toURL());
            Field field = newIsolate.getClass().getDeclaredField("impl");
            field.setAccessible(true);
            VmIsolate vmi = (VmIsolate) field.get(newIsolate);
            vmi.setClasspath(classPath.toArray(new URL[classPath.size()]));
        } catch (Exception x) {
            x.printStackTrace();
            return;
        }
View Full Code Here


    private static final String str_header = "      Id  Creator State    Main class";
    @Override
    public void execute() throws Exception {
        final PrintWriter out = getOutput().getPrintWriter();
        out.println(str_header);
        VmIsolate root = VmIsolate.getRoot();
        if (root != null) {
            out.println(format(String.valueOf(root.getId()), 8, false) + ' ' +
                format("0", 8, false) + ' ' +
                format(String.valueOf(root.getState()), 8, true));
        }
        for (VmIsolate iso : VmIsolate.getVmIsolates()) {
            out.println(format(String.valueOf(iso.getId()), 8, false) + ' ' +
                format(String.valueOf(iso.getCreator().getId()), 8, false) + ' ' +
                format(String.valueOf(iso.getState()), 8, true) + ' ' +
View Full Code Here

     */
    public Isolate(StreamBindings bindings, Properties properties, String mainClass, String... args) {
        Properties defaultProperties = AccessController.doPrivileged(new GetPropertiesAction());
        if(properties != null)
            defaultProperties.putAll(properties);
        this.impl = new VmIsolate(this, bindings.getBindings(), defaultProperties, mainClass, args);
    }
View Full Code Here

TOP

Related Classes of org.jnode.vm.isolate.VmIsolate$AppSupport

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.