| Package | Description |
|---|---|
| org.apache.dubbo.registry.client |
* The inspiration of service registration and discovery comes from
Spring Cloud Commons.
|
| org.apache.dubbo.registry.client.event | |
| org.apache.dubbo.registry.client.metadata | |
| org.apache.dubbo.registry.client.metadata.proxy | |
| org.apache.dubbo.registry.client.selector |
| Modifier and Type | Class and Description |
|---|---|
class |
DefaultServiceInstance
The default implementation of
ServiceInstance. |
| Modifier and Type | Method and Description |
|---|---|
default Map<String,Page<ServiceInstance>> |
ServiceDiscovery.getInstances(Iterable<String> serviceNames,
int offset,
int requestSize)
batch-get all
service instances by the specified service names |
default List<ServiceInstance> |
ServiceDiscovery.getInstances(String serviceName)
Gets all
service instances by the specified service name. |
List<ServiceInstance> |
FileSystemServiceDiscovery.getInstances(String serviceName) |
default Page<ServiceInstance> |
ServiceDiscovery.getInstances(String serviceName,
int offset,
int pageSize)
Gets the
pagination of service instances by the specified service name. |
default Page<ServiceInstance> |
ServiceDiscovery.getInstances(String serviceName,
int offset,
int pageSize,
boolean healthyOnly)
Get the
pagination of service instances by the specified service name. |
| Modifier and Type | Method and Description |
|---|---|
void |
ServiceInstanceMetadataCustomizer.customize(ServiceInstance serviceInstance) |
void |
ServiceInstanceCustomizer.customize(ServiceInstance serviceInstance)
Customizes
the service instance |
void |
ServiceDiscovery.register(ServiceInstance serviceInstance)
Registers an instance of
ServiceInstance. |
void |
FileSystemServiceDiscovery.register(ServiceInstance serviceInstance) |
void |
ServiceDiscovery.unregister(ServiceInstance serviceInstance)
Unregisters an instance of
ServiceInstance. |
void |
FileSystemServiceDiscovery.unregister(ServiceInstance serviceInstance) |
void |
ServiceDiscovery.update(ServiceInstance serviceInstance)
Updates the registered
ServiceInstance. |
void |
FileSystemServiceDiscovery.update(ServiceInstance serviceInstance) |
| Modifier and Type | Method and Description |
|---|---|
default void |
ServiceDiscovery.dispatchServiceInstancesChangedEvent(String serviceName,
Collection<ServiceInstance> serviceInstances)
Dispatch the
ServiceInstancesChangedEvent |
| Modifier and Type | Method and Description |
|---|---|
ServiceInstance |
ServiceInstanceEvent.getServiceInstance()
Get current
service instance |
| Modifier and Type | Method and Description |
|---|---|
Collection<ServiceInstance> |
ServiceInstancesChangedEvent.getServiceInstances() |
| Constructor and Description |
|---|
ServiceInstanceEvent(Object source,
ServiceInstance serviceInstance) |
ServiceInstancePreRegisteredEvent(Object source,
ServiceInstance serviceInstance) |
ServiceInstancePreUnregisteredEvent(Object source,
ServiceInstance serviceInstance) |
ServiceInstanceRegisteredEvent(Object source,
ServiceInstance serviceInstance) |
ServiceInstanceUnregisteredEvent(Object source,
ServiceInstance serviceInstance) |
| Constructor and Description |
|---|
ServiceInstancesChangedEvent(String serviceName,
Collection<ServiceInstance> serviceInstances) |
| Modifier and Type | Method and Description |
|---|---|
List<URL> |
MetadataServiceURLBuilder.build(ServiceInstance serviceInstance)
Build the
URLs from the specified ServiceInstance |
List<URL> |
StandardMetadataServiceURLBuilder.build(ServiceInstance serviceInstance)
|
List<URL> |
SpringCloudMetadataServiceURLBuilder.build(ServiceInstance serviceInstance) |
void |
ProtocolPortsMetadataCustomizer.customize(ServiceInstance serviceInstance) |
void |
RefreshServiceMetadataCustomizer.customize(ServiceInstance serviceInstance) |
static String |
ServiceInstanceMetadataUtils.getExportedServicesRevision(ServiceInstance serviceInstance)
The revision for all exported Dubbo services from the specified
ServiceInstance. |
static Map<String,String> |
ServiceInstanceMetadataUtils.getMetadataServiceURLParams(ServiceInstance serviceInstance,
String protocol)
Get the
url's parameters of MetadataService's Metadata |
static Map<String,Map<String,String>> |
ServiceInstanceMetadataUtils.getMetadataServiceURLsParams(ServiceInstance serviceInstance)
Get the multiple
urls' parameters of MetadataService's Metadata |
static String |
ServiceInstanceMetadataUtils.getMetadataStorageType(ServiceInstance serviceInstance)
Get the metadata's storage type is used to which
WritableMetadataService instance. |
static Integer |
ServiceInstanceMetadataUtils.getProtocolPort(ServiceInstance serviceInstance,
String protocol)
Get the property value of port by the specified
the metadata of
service instance and protocol |
static String |
ServiceInstanceMetadataUtils.getSubscribedServicesRevision(ServiceInstance serviceInstance)
The revision for all subscribed Dubbo services from the specified
ServiceInstance. |
static boolean |
ServiceInstanceMetadataUtils.isDubboServiceInstance(ServiceInstance serviceInstance)
Is Dubbo Service instance or not
|
String |
MetadataServiceURLParamsMetadataCustomizer.resolveMetadataPropertyName(ServiceInstance serviceInstance) |
String |
MetadataServiceURLParamsMetadataCustomizer.resolveMetadataPropertyValue(ServiceInstance serviceInstance) |
static void |
ServiceInstanceMetadataUtils.setEndpoints(ServiceInstance serviceInstance,
Map<String,Integer> protocolPortss) |
static void |
ServiceInstanceMetadataUtils.setMetadataStorageType(ServiceInstance serviceInstance,
String metadataType)
Set the metadata storage type in specified
service instance |
| Modifier and Type | Method and Description |
|---|---|
List<URL> |
SubscribedURLsSynthesizer.synthesize(URL subscribedURL,
Collection<ServiceInstance> serviceInstances)
synthesize the subscribed
URLs |
List<URL> |
RestProtocolSubscribedURLsSynthesizer.synthesize(URL subscribedURL,
Collection<ServiceInstance> serviceInstances) |
| Modifier and Type | Method and Description |
|---|---|
MetadataService |
RemoteMetadataServiceProxyFactory.createProxy(ServiceInstance serviceInstance) |
MetadataService |
MetadataServiceProxyFactory.getProxy(ServiceInstance serviceInstance)
Create a
MetadataService proxy via the specified ServiceInstance
WritableMetadataService |
| Constructor and Description |
|---|
RemoteMetadataServiceProxy(ServiceInstance serviceInstance) |
| Modifier and Type | Method and Description |
|---|---|
ServiceInstance |
ServiceInstanceSelector.select(URL registryURL,
List<ServiceInstance> serviceInstances)
Select an instance of
ServiceInstance by the specified service instances |
ServiceInstance |
RandomServiceInstanceSelector.select(URL registryURL,
List<ServiceInstance> serviceInstances) |
| Modifier and Type | Method and Description |
|---|---|
ServiceInstance |
ServiceInstanceSelector.select(URL registryURL,
List<ServiceInstance> serviceInstances)
Select an instance of
ServiceInstance by the specified service instances |
ServiceInstance |
RandomServiceInstanceSelector.select(URL registryURL,
List<ServiceInstance> serviceInstances) |
Copyright © 2011–2019 The Apache Software Foundation. All rights reserved.