Package io.fathom.auto.haproxy

Examples of io.fathom.auto.haproxy.HaproxyInstance


    public void run() throws IOException, InterruptedException {
        Thread haproxyThread = new Thread(new Runnable() {
            @Override
            public void run() {
                HaproxyConfig config = new BoundHaproxyConfig(configStore);
                HaproxyInstance instance = new HaproxyInstance(config);
                try {
                    instance.run();
                } catch (Exception e) {
                    log.error("Error during haproxy run; forcing exit", e);
                    System.exit(1);
                }
            }
View Full Code Here


        Thread haproxyThread = new Thread(new Runnable() {
            @Override
            public void run() {
                SimpleHaproxyConfig config = new SimpleHaproxyConfig(secretKeys, defaultHost);
                HaproxyInstance instance = new HaproxyInstance(config);
                try {
                    instance.run();
                } catch (Exception e) {
                    log.error("Error during haproxy run; forcing exit", e);
                    System.exit(1);
                }
            }
        });
        haproxyThread.start();

        Thread horizonThread = new Thread(new Runnable() {
            @Override
            public void run() {
                HorizonInstance instance = new HorizonInstance(configStore);
                try {
                    instance.run();
                } catch (Exception e) {
                    log.error("Error during horizon run; forcing exit", e);
                    System.exit(1);
                }
            }
View Full Code Here

TOP

Related Classes of io.fathom.auto.haproxy.HaproxyInstance

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.