Package com.netflix.suro.thrift

Examples of com.netflix.suro.thrift.ServiceStatus


            if (inputManager.getInput("thrift") != null) {
                if (client == null) {
                    client = getClient("localhost", config.getPort(), 5000);
                }

                ServiceStatus status = client.getStatus();
                if (status != ServiceStatus.ALIVE) {
                    throw new RuntimeException("NOT ALIVE!!!");
                }
            }
View Full Code Here


            transport.open();

            TProtocol protocol = new TBinaryProtocol(transport);

            client = new SuroServer.Client(protocol);
            ServiceStatus status = client.getStatus();
            if (status != ServiceStatus.ALIVE) {
                transport.close();
                throw new RuntimeException(server + " IS NOT ALIVE!!!");
            }
        }
View Full Code Here

TOP

Related Classes of com.netflix.suro.thrift.ServiceStatus

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.