Package io.fathom.auto.processes

Examples of io.fathom.auto.processes.Pid


                // TODO: Poll loop with timeout?
                TimeSpan.seconds(2).sleep();

                File pidFile = getPidFile(instanceDir);

                Pid pid = Pid.read(pidFile);
                if (pid == null) {
                    throw new IOException("Process started, but could not read pid from file");
                }

                return new HorizonProcess(config, pid);
View Full Code Here


    }

    public static HorizonProcess find(HorizonConfig config) throws IOException {
        File pidFile = getPidFile(config.getInstanceDir());

        Pid pid = Pid.read(pidFile);
        if (pid == null) {
            return null;
        }

        HorizonProcess process = new HorizonProcess(config, pid);
View Full Code Here

                // TODO: Poll loop with timeout?
                TimeSpan.seconds(2).sleep();

                File pidFile = getPidFile(instanceDir);

                Pid pid = Pid.read(pidFile);
                if (pid == null) {
                    throw new IOException("Process started, but could not read pid from file");
                }

                return new CloudServerProcess(config, pid);
View Full Code Here

    }

    public static CloudServerProcess find(FathomCloudConfig config) throws IOException {
        File pidFile = getPidFile(config.getInstanceDir());

        Pid pid = Pid.read(pidFile);
        if (pid == null) {
            return null;
        }

        CloudServerProcess process = new CloudServerProcess(config, pid);
View Full Code Here

        } else {
            if (execution.getExitCode() == 0) {
                log.info("Zookeeper started OK");

                File pidFile = getPidFile(instanceDir);
                Pid pid = Pid.read(pidFile);
                if (pid == null) {
                    throw new IOException("Zookeeper started, but could not read pid from file");
                }

                return new ZookeeperProcess(config, pid);
View Full Code Here

    public static ZookeeperProcess find(ZookeeperConfig config) throws IOException {
        File instanceDir = config.getInstanceDir();
        File pidFile = getPidFile(instanceDir);

        Pid pid = Pid.read(pidFile);
        if (pid == null) {
            log.info("No zookeeper pid");
            return null;
        }
View Full Code Here

TOP

Related Classes of io.fathom.auto.processes.Pid

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.