Examples of checkedGet()


Examples of org.erlide.runtime.rpc.RpcFuture.checkedGet()

            }
            final Job job = new UIJob("async call updater") {
                @Override
                public IStatus runInUIThread(final IProgressMonitor monitor) {
                    try {
                        if (result.checkedGet(1, TimeUnit.MILLISECONDS) == null) {
                            schedule(interval);
                        }
                    } catch (final RpcException e) {
                        ErlLogger.error(e);
                    } catch (final TimeoutException e) {
View Full Code Here

Examples of org.erlide.runtime.rpc.RpcFuture.checkedGet()

            ErlLogger.warn("error compiling erl file: "
                    + resource.getResource().getProjectRelativePath());
            return;
        }
        try {
            final OtpErlangObject result = res.checkedGet();
            completeCompile(project, resource.getResource(), result, b, compilerOptions);
        } catch (final RpcException e) {
            ErlLogger.warn(e);
        }
    }
View Full Code Here

Examples of org.erlide.runtime.rpc.RpcFuture.checkedGet()

            ErlLogger.warn("error compiling yrl file: "
                    + resource.getResource().getProjectRelativePath());
            return;
        }
        try {
            completeCompile(project, resource.getResource(), res.checkedGet(), b,
                    compilerOptions);
        } catch (final RpcException e) {
            ErlLogger.warn(e);
        }
    }
View Full Code Here

Examples of org.erlide.runtime.rpc.RpcFuture.checkedGet()

                            + " is down");
                }

                OtpErlangObject r = null;
                try {
                    r = future.checkedGet(500, TimeUnit.MILLISECONDS);
                } catch (final TimeoutException e) {
                } catch (final RpcTimeoutException e) {
                }
                if (r != null) {
                    processResult(b, r);
View Full Code Here

Examples of org.erlide.runtime.rpc.RpcFuture.checkedGet()

            final Runnable target = new Runnable() {
                @Override
                public void run() {
                    OtpErlangObject result;
                    try {
                        result = future.checkedGet(timeout, TimeUnit.MILLISECONDS);
                        cb.onSuccess(result);
                    } catch (final Exception e) {
                        ErlLogger.error("Could not execute RPC " + module + ":" + fun
                                + " : " + e.getMessage());
                        cb.onFailure(e);
View Full Code Here

Examples of org.erlide.runtime.rpc.RpcFuture.checkedGet()

        OtpErlangObject result;
        try {
            final RpcFuture future = sendRpcCall(localNode, nodeName, false, gleader,
                    module, fun, signature, args0);
            OtpErlangObject result1;
            result1 = future.checkedGet(timeout, TimeUnit.MILLISECONDS);
            if (CHECK_RPC) {
                ErlLogger.debug("RPC result:: " + result1);
            }
            if (isBadRpc(result1)) {
                throw new RpcException(result1.toString());
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.