Examples of ZooKeeperHealthCheck


Examples of com.datasift.dropwizard.zookeeper.health.ZooKeeperHealthCheck

        final Auth auth = getAuth();
        if (auth != null) {
            client.addAuthInfo(auth.getScheme(), auth.getId().getBytes());
        }

        environment.healthChecks().register(name, new ZooKeeperHealthCheck(client, namespace));
        environment.lifecycle().manage(new ManagedZooKeeper(client));

        return client;
    }
View Full Code Here

Examples of com.datasift.dropwizard.zookeeper.health.ZooKeeperHealthCheck

        final ZooKeeperConfiguration.Auth auth = configuration.getAuth();
        if (auth != null) {
            client.addAuthInfo(auth.getScheme(), auth.getId());
        }

        environment.addHealthCheck(new ZooKeeperHealthCheck(client, quorumSpec, namespace, name));
        environment.manage(new ManagedZooKeeper(client));

        return client;
    }
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.