Package org.erlide.runtime.api

Examples of org.erlide.runtime.api.IOtpRpc


        expect(nodeProxy, process, 0, State.TERMINATED);
    }

    @Test
    public void shutdownIsDetected() {
        final IOtpRpc site = nodeProxy.getOtpRpc();
        try {
            site.cast("erlang", "halt", "i", 0);
        } catch (final RpcException e1) {
        }
        expect(nodeProxy, process, 0, State.TERMINATED);
    }
View Full Code Here


        expect(nodeProxy, process, 0, State.TERMINATED);
    }

    @Test
    public void exitCodeIsDetected() {
        final IOtpRpc site = nodeProxy.getOtpRpc();
        try {
            site.cast("erlang", "halt", "i", 3);
        } catch (final RpcException e1) {
        }
        expect(nodeProxy, process, 3, State.TERMINATED);
    }
View Full Code Here

        final OtpNodeProxy runtime2 = new OtpNodeProxy(data);
        runtime2.startAsync();
        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

        final List<ICompletionProposal> result = new ArrayList<ICompletionProposal>();
        final IErlProject aProject = project;
        if (aProject == null) {
            return result;
        }
        final IOtpRpc backend = BackendCore.getBuildBackend(aProject);
        if (options.flags.contains(Kinds.DECLARED_FUNCTIONS)) {
            addSorted(
                    options.prefix,
                    result,
                    getDeclaredFunctions(options.offset, options.prefix,
View Full Code Here

            final String fileNames = names.size() + " modules [" + getFileNames(names)
                    + "]";
            monitor.subTask(fileNames);
            ErlLogger.trace("dialyzer", "run %s", fileNames);

            final IOtpRpc b = backend.getOtpRpc();
            final RpcFuture future = ErlideDialyze.dialyze(b, files, pltPaths,
                    includeDirs, fromSource, noCheckPLT);

            while (!future.isDone()) {
                // check cancellation
View Full Code Here

        return nodeProxy.getNodeName();
    }

    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()) {
            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

     *
     * @throws CoreException
     *             detailed exception about the loading process errors
     */
    private void initWrangler() throws CoreException {
        final IOtpRpc mb = getBackend();
        RpcResult res = mb.call_noexception("wrangler_refacs", "init_eclipse", "",
                new Object[0]);
        ErlLogger.debug("Wrangler app started:\n" + res);
        res = mb.call_noexception("wrangler_error_logger", "init", "x",
                new OtpErlangList());

        ErlLogger.debug("Error logger started:" + res);
    }
View Full Code Here

TOP

Related Classes of org.erlide.runtime.api.IOtpRpc

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.