public abstract class CuratorFrameworkUtils extends Object
| 构造器和说明 |
|---|
CuratorFrameworkUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static List<ServiceInstance> |
build(Collection<org.apache.curator.x.discovery.ServiceInstance<ZookeeperInstance>> instances) |
static org.apache.curator.x.discovery.ServiceInstance<ZookeeperInstance> |
build(ServiceInstance serviceInstance) |
static ServiceInstance |
build(org.apache.curator.x.discovery.ServiceInstance<ZookeeperInstance> instance) |
static org.apache.curator.framework.CuratorFramework |
buildCuratorFramework(org.apache.dubbo.common.URL connectionURL) |
static org.apache.curator.RetryPolicy |
buildRetryPolicy(org.apache.dubbo.common.URL connectionURL) |
static org.apache.curator.x.discovery.ServiceDiscovery<ZookeeperInstance> |
buildServiceDiscovery(org.apache.curator.framework.CuratorFramework curatorFramework,
String basePath) |
static String |
generateId(String host,
int port) |
public static org.apache.curator.x.discovery.ServiceDiscovery<ZookeeperInstance> buildServiceDiscovery(org.apache.curator.framework.CuratorFramework curatorFramework, String basePath)
public static org.apache.curator.framework.CuratorFramework buildCuratorFramework(org.apache.dubbo.common.URL connectionURL)
throws Exception
Exceptionpublic static org.apache.curator.RetryPolicy buildRetryPolicy(org.apache.dubbo.common.URL connectionURL)
public static List<ServiceInstance> build(Collection<org.apache.curator.x.discovery.ServiceInstance<ZookeeperInstance>> instances)
public static ServiceInstance build(org.apache.curator.x.discovery.ServiceInstance<ZookeeperInstance> instance)
public static org.apache.curator.x.discovery.ServiceInstance<ZookeeperInstance> build(ServiceInstance serviceInstance)
Copyright © 2011–2023 The Apache Software Foundation. All rights reserved.