ServiceDiscoveryFactory implementation with cache, the subclass
should implement AbstractServiceDiscoveryFactory.createDiscovery(URL) method to create an instance of ServiceDiscoveryServiceInstancesChangedListener for specified serviceURLs from the specified ServiceInstanceServiceDiscoveryRegistry if supportedServiceInstance before registering to Registry.the service instanceSPI implementation of ServiceDiscoveryFactory to get the
instance of ServiceDiscovery via the protocol from the URL that will connect
the infrastructure of Service registration and discovery.ServiceInstance.ServiceDiscoveryServiceInstancesChangedEventServiceInstancesChangedEventServiceInstancesChangedEventServiceInstancesChangedEventServiceDiscovery implementationThrowableMetadataServiceProxyFactoryServiceInstance.ServiceDiscoveryFactory by the protocolservice instances by the specified service name.pagination of service instances by the specified service name.pagination of service instances by the specified service name.service instances by the specified service namesurl's parameters of MetadataService's Metadataurls' parameters of MetadataService's MetadataWritableMetadataService instance.ServiceDiscoverythe metadata of
service instance and protocolMetadataService proxy via the specified ServiceInstance
WritableMetadataServiceServiceDiscovery on which the Event initially occurred.ServiceDiscoveryservice instanceurlServiceInstance.ServiceDiscoveryDubbo eventMetadataService : "dubbo.metadata-service."MetadataService's URLURLs property name of MetadataService :
"dubbo.metadata-service.urls", which is used to be compatible with Dubbo Spring Cloud and
discovery the metadata of instanceMetadataService proxyServiceInstanceMetadataCustomizer to customize the urls of MetadataService
into the service instances' metadataprotocols into
the metadata of service instanceServiceInstanceSelector implementation based on Random algorithmServiceInstanceCustomizer to refresh metadata.ServiceInstance.StringSubscribedURLsSynthesizer implementation for REST protocolServiceInstance by the specified service instancesService Discovery destroyed.Service Discovery is destroying.Event class for ServiceDiscoveryService Discovery met with some exceptionServiceDiscoveryService Discovery initializedService Discovery is initializing.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.the service instance on ServiceInstancePreRegisteredEventDubbo event for an service instanceServiceInstance.getMetadata() the service instances' metadata}metadata of the service instanceservice instance
registeredservice instance
unregisteredservice instance
registeredinstances of one service has been changed.Event ListenerServiceInstance Selectorservice instance
unregisteredservice instanceFailbackRegistry skips Failback.URLsURLs or notURLsServiceInstance.ServiceInstance.URLsCopyright © 2011–2019 The Apache Software Foundation. All rights reserved.