类 CuratorFrameworkUtils
- java.lang.Object
-
- org.apache.dubbo.registry.zookeeper.util.CuratorFrameworkUtils
-
public abstract class CuratorFrameworkUtils extends Object
Curator Framework Utilities Class- 从以下版本开始:
- 2.7.5
-
-
构造器概要
构造器 构造器 说明 CuratorFrameworkUtils()
-
方法概要
所有方法 静态方法 具体方法 修饰符和类型 方法 说明 static List<ServiceInstance>build(Collection<org.apache.curator.x.discovery.ServiceInstance<ZookeeperInstance>> instances)static ServiceInstancebuild(org.apache.curator.x.discovery.ServiceInstance<ZookeeperInstance> instance)static org.apache.curator.x.discovery.ServiceInstance<ZookeeperInstance>build(ServiceInstance serviceInstance)static org.apache.curator.framework.CuratorFrameworkbuildCuratorFramework(URL connectionURL)static org.apache.curator.RetryPolicybuildRetryPolicy(URL connectionURL)static org.apache.curator.x.discovery.ServiceDiscovery<ZookeeperInstance>buildServiceDiscovery(org.apache.curator.framework.CuratorFramework curatorFramework, String basePath)static StringgenerateId(String host, int port)
-
-
-
方法详细资料
-
buildServiceDiscovery
public static org.apache.curator.x.discovery.ServiceDiscovery<ZookeeperInstance> buildServiceDiscovery(org.apache.curator.framework.CuratorFramework curatorFramework, String basePath)
-
buildCuratorFramework
public static org.apache.curator.framework.CuratorFramework buildCuratorFramework(URL connectionURL) throws Exception
- 抛出:
Exception
-
buildRetryPolicy
public static org.apache.curator.RetryPolicy buildRetryPolicy(URL connectionURL)
-
build
public static List<ServiceInstance> build(Collection<org.apache.curator.x.discovery.ServiceInstance<ZookeeperInstance>> instances)
-
build
public static ServiceInstance build(org.apache.curator.x.discovery.ServiceInstance<ZookeeperInstance> instance)
-
build
public static org.apache.curator.x.discovery.ServiceInstance<ZookeeperInstance> build(ServiceInstance serviceInstance)
-
-