类 AbstractRegistryFactory
- java.lang.Object
-
- com.alibaba.dubbo.registry.support.AbstractRegistryFactory
-
- 所有已实现的接口:
RegistryFactory
- 直接已知子类:
DubboRegistryFactory
,MulticastRegistryFactory
,RedisRegistryFactory
,ZookeeperRegistryFactory
public abstract class AbstractRegistryFactory extends Object implements RegistryFactory
AbstractRegistryFactory. (SPI, Singleton, ThreadSafe)- 另请参阅:
RegistryFactory
-
-
构造器概要
构造器 构造器 说明 AbstractRegistryFactory()
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 static void
destroyAll()
Close all created registriesstatic Collection<Registry>
getRegistries()
Get all registriesRegistry
getRegistry(URL url)
Connect to the registry
-
-
-
方法详细资料
-
getRegistries
public static Collection<Registry> getRegistries()
Get all registries- 返回:
- all registries
-
destroyAll
public static void destroyAll()
Close all created registries
-
getRegistry
public Registry getRegistry(URL url)
从接口复制的说明:RegistryFactory
Connect to the registryConnecting the registry needs to support the contract:
1. When the check=false is set, the connection is not checked, otherwise the exception is thrown when disconnection
2. Support username:password authority authentication on URL.
3. Support the backup=10.20.153.10 candidate registry cluster address.
4. Support file=registry.cache local disk file cache.
5. Support the timeout=1000 request timeout setting.
6. Support session=60000 session timeout or expiration settings.- 指定者:
getRegistry
在接口中RegistryFactory
- 参数:
url
- Registry address, is not allowed to be empty- 返回:
- Registry reference, never return empty value
-
-