接口的使用
org.apache.dubbo.registry.client.ServiceInstance
-
使用ServiceInstance的程序包 程序包 说明 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.event.listener org.apache.dubbo.registry.client.metadata -
-
org.apache.dubbo.registry.client中ServiceInstance的使用
实现ServiceInstance的org.apache.dubbo.registry.client中的类 修饰符和类型 类 说明 classDefaultServiceInstanceThe default implementation ofServiceInstance.返回ServiceInstance的org.apache.dubbo.registry.client中的方法 修饰符和类型 方法 说明 ServiceInstanceInstanceAddressURL. getInstance()ServiceInstanceOverrideInstanceAddressURL. getInstance()ServiceInstanceAbstractServiceDiscovery. getLocalInstance()ServiceInstanceServiceDiscovery. getLocalInstance()返回变量类型为ServiceInstance的类型的org.apache.dubbo.registry.client中的方法 修饰符和类型 方法 说明 List<ServiceInstance>NopServiceDiscovery. getInstances(String serviceName)List<ServiceInstance>ServiceDiscovery. getInstances(String serviceName)参数类型为ServiceInstance的org.apache.dubbo.registry.client中的方法 修饰符和类型 方法 说明 voidServiceInstanceCustomizer. customize(ServiceInstance serviceInstance, ApplicationModel applicationModel)Customizesthe service instancevoidNopServiceDiscovery. doRegister(ServiceInstance serviceInstance)voidNopServiceDiscovery. doUnregister(ServiceInstance serviceInstance)类型变量类型为ServiceInstance的org.apache.dubbo.registry.client中的方法参数 修饰符和类型 方法 说明 MetadataInfoAbstractServiceDiscovery. getRemoteMetadata(String revision, List<ServiceInstance> instances)MetadataInfoServiceDiscovery. getRemoteMetadata(String revision, List<ServiceInstance> instances)参数类型为ServiceInstance的org.apache.dubbo.registry.client中的构造器 构造器 说明 InstanceAddressURL(ServiceInstance instance, MetadataInfo metadataInfo)InstanceAddressURL(ServiceInstance instance, MetadataInfo metadataInfo, String protocol) -
org.apache.dubbo.registry.client.event中ServiceInstance的使用
返回变量类型为ServiceInstance的类型的org.apache.dubbo.registry.client.event中的方法 修饰符和类型 方法 说明 List<ServiceInstance>ServiceInstancesChangedEvent. getServiceInstances()类型变量类型为ServiceInstance的org.apache.dubbo.registry.client.event中的构造器参数 构造器 说明 ServiceInstancesChangedEvent(String serviceName, List<ServiceInstance> serviceInstances) -
org.apache.dubbo.registry.client.event.listener中ServiceInstance的使用
返回变量类型为ServiceInstance的类型的org.apache.dubbo.registry.client.event.listener中的方法 修饰符和类型 方法 说明 Map<String,List<ServiceInstance>>ServiceInstancesChangedListener. getAllInstances() -
org.apache.dubbo.registry.client.metadata中ServiceInstance的使用
参数类型为ServiceInstance的org.apache.dubbo.registry.client.metadata中的方法 修饰符和类型 方法 说明 List<URL>MetadataServiceURLBuilder. build(ServiceInstance serviceInstance)Build theURLsfrom the specifiedServiceInstanceList<URL>SpringCloudMetadataServiceURLBuilder. build(ServiceInstance serviceInstance)List<URL>StandardMetadataServiceURLBuilder. build(ServiceInstance serviceInstance)voidProtocolPortsMetadataCustomizer. customize(ServiceInstance serviceInstance, ApplicationModel applicationModel)voidServiceInstanceHostPortCustomizer. customize(ServiceInstance serviceInstance, ApplicationModel applicationModel)voidServiceInstanceMetadataCustomizer. customize(ServiceInstance serviceInstance, ApplicationModel applicationModel)static voidServiceInstanceMetadataUtils. customizeInstance(ServiceInstance instance, ApplicationModel applicationModel)static DefaultServiceInstance.EndpointServiceInstanceMetadataUtils. getEndpoint(ServiceInstance serviceInstance, String protocol)Get the property value of port by the specifiedthe metadata of service instanceand protocolstatic StringServiceInstanceMetadataUtils. getExportedServicesRevision(ServiceInstance serviceInstance)The revision for all exported Dubbo services from the specifiedServiceInstance.static MetadataInfoMetadataUtils. getMetadata(String revision, ServiceInstance instance, MetadataReport metadataReport)static StringServiceInstanceMetadataUtils. getMetadataStorageType(ServiceInstance serviceInstance)Get the metadata storage type specified by the peer instance.static StringServiceInstanceMetadataUtils. getRemoteCluster(ServiceInstance serviceInstance)static booleanServiceInstanceMetadataUtils. hasEndpoints(ServiceInstance serviceInstance)static booleanServiceInstanceMetadataUtils. isValidInstance(ServiceInstance instance)static org.apache.dubbo.registry.client.metadata.MetadataUtils.ProxyHolderMetadataUtils. referProxy(ServiceInstance instance)static voidServiceInstanceMetadataUtils. setEndpoints(ServiceInstance serviceInstance, Map<String,Integer> protocolPorts)static voidServiceInstanceMetadataUtils. setMetadataStorageType(ServiceInstance serviceInstance, String metadataType)Set the metadata storage type in specifiedservice instance类型变量类型为ServiceInstance的org.apache.dubbo.registry.client.metadata中的方法参数 修饰符和类型 方法 说明 static MetadataInfoMetadataUtils. getRemoteMetadata(String revision, List<ServiceInstance> instances, MetadataReport metadataReport)
-