Package org.erlide.runtime.api

Examples of org.erlide.runtime.api.IOtpRpc.call()


                }
            }

            final OtpErlangList nodesList = new OtpErlangList(
                    nodeAtoms.toArray(new OtpErlangAtom[nodeAtoms.size()]));
            final OtpErlangList procList = (OtpErlangList) backend.call(MODULE_NAME,
                    FUNCTION_NAME, "x", nodesList);
            final TracedProcess[] processes = new TracedProcess[procList.arity()];

            for (int i = 0; i < procList.arity(); i++) {
                final OtpErlangTuple tuple = (OtpErlangTuple) procList.elementAt(i);
View Full Code Here


                return null;
            }
            try {

                final IOtpRpc backend = getBackend();
                final OtpErlangTuple tuple = (OtpErlangTuple) backend.call(
                        Constants.ERLANG_HELPER_MODULE, Constants.FUN_STR2MS, "s",
                        new OtpErlangString(newText));
                if (((OtpErlangAtom) tuple.elementAt(0)).atomValue().equals("ok")) {
                    // correct match spec - update
                    ((MatchSpec) getValue()).setFunctionString(newText);
View Full Code Here

        assertThat("bad exit value", val, is(-1));
        assertThat("not running", nodeProxy.isRunning(), is(true));
        final IOtpRpc site = nodeProxy.getOtpRpc();
        OtpErlangObject r;
        try {
            r = site.call("erlang", "now", "");
        } catch (final RpcException e) {
            r = null;
        }
        assertThat("rpc", r, is(not(nullValue())));
        try {
View Full Code Here

        runtime2.awaitRunning();

        final IOtpRpc site = runtime2.getOtpRpc();
        OtpErlangObject r;
        try {
            r = site.call("erlang", "now", "");
        } catch (final RpcException e) {
            r = null;
        }
        assertThat("rpc", r, is(not(nullValue())));
        try {
View Full Code Here

    }

    protected boolean startErlideApps(final OtpErlangPid jRex, final boolean watch) {
        try {
            final IOtpRpc site = getOtpRpc();
            site.call("erlide_common_app", "init", "poiii", jRex, watch,
                    SystemConfiguration.getInstance().getWarnProcessSizeLimitMB(),
                    SystemConfiguration.getInstance().getKillProcessSizeLimitMB(),
                    SystemConfiguration.getInstance().getMaxParallelBuilds());
            // TODO should use extension point!
            switch (data.getContext()) {
View Full Code Here

                    SystemConfiguration.getInstance().getKillProcessSizeLimitMB(),
                    SystemConfiguration.getInstance().getMaxParallelBuilds());
            // TODO should use extension point!
            switch (data.getContext()) {
            case IDE:
                site.call("erlide_builder_app", "init", "");
                site.call("erlide_ide_app", "init", "");
                break;
            default:
            }
            // site.call("erlide_tracer", "start", "");
View Full Code Here

                    SystemConfiguration.getInstance().getMaxParallelBuilds());
            // TODO should use extension point!
            switch (data.getContext()) {
            case IDE:
                site.call("erlide_builder_app", "init", "");
                site.call("erlide_ide_app", "init", "");
                break;
            default:
            }
            // site.call("erlide_tracer", "start", "");
            return true;
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.