Package com.gainmatrix.lib.time

Examples of com.gainmatrix.lib.time.ChronometerTimer.elapsed()


                boolean succeed = exitCode == definition.getExpectedExitCode();
                return produceSuccessResult(stdOutCapturer, stdErrCapturer, exitCode, succeed);
            }

            // Check timeout
            if ((definition.getTimeoutMs() > 0) && (timer.elapsed() > definition.getTimeoutMs())) {
                return produceTimeoutResult(stdOutCapturer, stdErrCapturer);
            }

            // Make a pause
            try {
View Full Code Here


            }

            // Are there any other pending nodes?
            if (nodeIterator.hasNext()) {
                // Check timeout
                if ((scheduleExecution.getTimeout() > 0) && (timer.elapsed() > scheduleExecution.getTimeout())) {
                    LOGGER.debug("Execution [{}] is timed out", scheduleExecution.getId());
                    return ScheduleExecutionStatus.TIMEOUT;
                }
            } else {
                if (scheduleExecution.isAllNodes() && (succeedNodes == scheduleExecution.getNodes().size())) {
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.