| 程序包 | 说明 |
|---|---|
| org.apache.dubbo.registry | |
| org.apache.dubbo.registry.client |
* The inspiration of service registration and discovery comes from
Spring Cloud Commons.
|
| org.apache.dubbo.registry.client.migration | |
| org.apache.dubbo.registry.integration | |
| org.apache.dubbo.registry.support |
| 限定符和类型 | 类和说明 |
|---|---|
class |
ListenerRegistryWrapper |
| 限定符和类型 | 方法和说明 |
|---|---|
Registry |
ListenerRegistryWrapper.getRegistry() |
Registry |
RegistryFactoryWrapper.getRegistry(URL url) |
Registry |
RegistryFactory.getRegistry(URL url)
Connect to the registry
Connecting the registry needs to support the contract:
1. |
| 构造器和说明 |
|---|
ListenerRegistryWrapper(Registry registry,
List<RegistryServiceListener> listeners) |
| 限定符和类型 | 类和说明 |
|---|---|
class |
ServiceDiscoveryRegistry
Being different to the traditional registry,
ServiceDiscoveryRegistry that is a new service-oriented
Registry based on ServiceDiscovery, it will not interact in the external registry directly,
but store the urls that Dubbo services exported and referenced into WritableMetadataService
when ServiceDiscoveryRegistry.register(URL) and ServiceDiscoveryRegistry.subscribe(URL, NotifyListener) methods are executed. |
| 构造器和说明 |
|---|
MigrationInvoker(ClusterInvoker<T> invoker,
ClusterInvoker<T> serviceDiscoveryInvoker,
RegistryProtocol registryProtocol,
Cluster cluster,
Registry registry,
Class<T> type,
URL url,
URL consumerUrl) |
MigrationInvoker(RegistryProtocol registryProtocol,
Cluster cluster,
Registry registry,
Class<T> type,
URL url,
URL consumerUrl) |
ServiceDiscoveryMigrationInvoker(RegistryProtocol registryProtocol,
Cluster cluster,
Registry registry,
Class<T> type,
URL url,
URL consumerUrl) |
| 限定符和类型 | 方法和说明 |
|---|---|
Registry |
DynamicDirectory.getRegistry() |
| 限定符和类型 | 方法和说明 |
|---|---|
<T> ClusterInvoker<T> |
RegistryProtocol.getInvoker(Cluster cluster,
Registry registry,
Class<T> type,
URL url) |
<T> ClusterInvoker<T> |
InterfaceCompatibleRegistryProtocol.getInvoker(Cluster cluster,
Registry registry,
Class<T> type,
URL url) |
<T> ClusterInvoker<T> |
RegistryProtocol.getServiceDiscoveryInvoker(Cluster cluster,
Registry registry,
Class<T> type,
URL url) |
<T> ClusterInvoker<T> |
InterfaceCompatibleRegistryProtocol.getServiceDiscoveryInvoker(Cluster cluster,
Registry registry,
Class<T> type,
URL url) |
void |
DynamicDirectory.setRegistry(Registry registry) |
| 限定符和类型 | 类和说明 |
|---|---|
class |
AbstractRegistry
AbstractRegistry.
|
class |
FailbackRegistry
FailbackRegistry.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static Registry |
AbstractRegistryFactory.getDefaultNopRegistryIfNotSupportServiceDiscovery() |
static Registry |
AbstractRegistryFactory.getRegistry(String key) |
Registry |
AbstractRegistryFactory.getRegistry(URL url) |
| 限定符和类型 | 方法和说明 |
|---|---|
static Collection<Registry> |
AbstractRegistryFactory.getRegistries()
Get all registries
|
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
AbstractRegistryFactory.removeDestroyedRegistry(Registry toRm) |
Copyright © 2011–2021 The Apache Software Foundation. All rights reserved.