Package io.apigee.trireme.core.internal

Examples of io.apigee.trireme.core.internal.NodeExitException


        @JSFunction
        @SuppressWarnings("unused")
        public void abort()
            throws NodeExitException
        {
            throw new NodeExitException(NodeExitException.Reason.FATAL);
        }
View Full Code Here


            throws NodeExitException
        {
            ProcessImpl self = (ProcessImpl)thisObj;
            if (args.length >= 1) {
                int code = (Integer)Context.jsToJava(args[0], Integer.class);
                throw new NodeExitException(NodeExitException.Reason.NORMAL, code);
            } else {
                throw new NodeExitException(NodeExitException.Reason.NORMAL, 0);
            }
        }
View Full Code Here

    {
        while (moduleResult == null) {
            if (result != null) {
                ScriptStatus ss = getResult();
                throw new ExecutionException(
                  new NodeExitException(NodeExitException.Reason.NORMAL, ss.getExitCode()));
            }
            wait();
        }
        return moduleResult;
    }
View Full Code Here

        while ((now < expiration) && (result == null)) {
            synchronized (this) {
                if (result != null) {
                    ScriptStatus ss = getResult();
                    throw new ExecutionException(
                        new NodeExitException(NodeExitException.Reason.NORMAL, ss.getExitCode()));
                }
                wait(expiration - now);
            }
            now = System.currentTimeMillis();
        }
View Full Code Here

TOP

Related Classes of io.apigee.trireme.core.internal.NodeExitException

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.