use of com.navercorp.pinpoint.collector.cluster.zookeeper.InMemoryZookeeperClient in project pinpoint by naver.
the class GrpcCommandServiceTest method creteMemoryClusterManager.
private ZookeeperProfilerClusterManager creteMemoryClusterManager() throws PinpointZookeeperException {
InMemoryZookeeperClient zookeeperClient = new InMemoryZookeeperClient();
zookeeperClient.connect();
String path = ZKPaths.makePath(ZookeeperConstants.DEFAULT_CLUSTER_ZNODE_ROOT_PATH, ZookeeperConstants.COLLECTOR_LEAF_PATH, this.getClass().getSimpleName());
ZookeeperProfilerClusterManager manager = new ZookeeperProfilerClusterManager(zookeeperClient, path, new ClusterPointRepository());
manager.start();
return manager;
}
Aggregations