Search in sources :

Example 1 with InMemoryZookeeperClient

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;
}
Also used : InMemoryZookeeperClient(com.navercorp.pinpoint.collector.cluster.zookeeper.InMemoryZookeeperClient) ZookeeperProfilerClusterManager(com.navercorp.pinpoint.collector.cluster.zookeeper.ZookeeperProfilerClusterManager) ClusterPointRepository(com.navercorp.pinpoint.collector.cluster.ClusterPointRepository)

Aggregations

ClusterPointRepository (com.navercorp.pinpoint.collector.cluster.ClusterPointRepository)1 InMemoryZookeeperClient (com.navercorp.pinpoint.collector.cluster.zookeeper.InMemoryZookeeperClient)1 ZookeeperProfilerClusterManager (com.navercorp.pinpoint.collector.cluster.zookeeper.ZookeeperProfilerClusterManager)1