Examples of didExit()


Examples of io.fathom.auto.processes.ProcessExecution.didExit()

        log.info("Doing haproxy validate");

        ProcessBuilder pb = new ProcessBuilder(HAPROXY_CMD.getAbsolutePath(), "-c", "-f", configFile.getAbsolutePath());

        ProcessExecution execution = Processes.run(pb, TimeSpan.seconds(10));
        if (!execution.didExit()) {
            log.warn("Timeout while validating haproxy config.");
        } else {
            int exitCode = execution.getExitCode();
            if (exitCode == 0) {
                log.info("Validated config file");
View Full Code Here

Examples of io.fathom.auto.processes.ProcessExecution.didExit()

            ProcessBuilder pb = new ProcessBuilder("/opt/manager/keygen.sh");

            // We allow (a very generous) 2 minutes. SSH keygen isn't trivial...
            ProcessExecution execution = Processes.run(pb, TimeSpan.minutes(2));

            if (!execution.didExit()) {
                throw new IOException("Timeout while starting Process");
            } else {
                if (execution.getExitCode() == 0) {
                    log.info("Process started OK");
                }
View Full Code Here

Examples of io.fathom.auto.processes.ProcessExecution.didExit()

        ProcessBuilder pb = buildLauncherProcess(config);

        ProcessExecution execution = Processes.run(pb, TimeSpan.minutes(1));

        if (!execution.didExit()) {
            throw new IOException("Timeout while starting Process");
        } else {
            if (execution.getExitCode() == 0) {
                log.info("Process started OK");
View Full Code Here

Examples of io.fathom.auto.processes.ProcessExecution.didExit()

        ProcessBuilder pb = buildLauncherProcess(config);

        ProcessExecution execution = Processes.run(pb, TimeSpan.minutes(1));

        if (!execution.didExit()) {
            throw new IOException("Timeout while starting Process");
        } else {
            if (execution.getExitCode() == 0) {
                log.info("Process started OK");
View Full Code Here

Examples of io.fathom.auto.processes.ProcessExecution.didExit()

        ProcessBuilder pb = new ProcessBuilder(args);
        pb.directory(instanceDir);

        ProcessExecution execution = Processes.run(pb, TimeSpan.minutes(1));

        if (!execution.didExit()) {
            throw new IOException("Timeout while starting zookeeper");
        } else {
            if (execution.getExitCode() == 0) {
                log.info("Zookeeper started OK");
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.