接口的使用
org.apache.dubbo.registry.client.ServiceInstance
-
使用ServiceInstance的程序包 程序包 说明 org.apache.dubbo.config.metadata 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.store org.apache.dubbo.registry.client.selector org.apache.dubbo.registry.consul org.apache.dubbo.registry.etcd org.apache.dubbo.registry.eureka The package contains the registry implementations for Netflix Eurekaorg.apache.dubbo.registry.multiple org.apache.dubbo.registry.nacos org.apache.dubbo.registry.nacos.util org.apache.dubbo.registry.sofa org.apache.dubbo.registry.zookeeper org.apache.dubbo.registry.zookeeper.util -
-
org.apache.dubbo.config.metadata中ServiceInstance的使用
参数类型为ServiceInstance的org.apache.dubbo.config.metadata中的方法 修饰符和类型 方法 说明 voidServiceInstancePortCustomizer. customize(ServiceInstance serviceInstance) -
org.apache.dubbo.registry.client中ServiceInstance的使用
实现ServiceInstance的org.apache.dubbo.registry.client中的类 修饰符和类型 类 说明 classDefaultServiceInstanceThe default implementation ofServiceInstance.返回ServiceInstance的org.apache.dubbo.registry.client中的方法 修饰符和类型 方法 说明 ServiceInstanceInstanceAddressURL. getInstance()ServiceInstanceAbstractServiceDiscovery. getLocalInstance()ServiceInstanceServiceDiscovery. getLocalInstance()返回变量类型为ServiceInstance的类型的org.apache.dubbo.registry.client中的方法 修饰符和类型 方法 说明 List<ServiceInstance>FileSystemServiceDiscovery. getInstances(String serviceName)default Map<String,Page<ServiceInstance>>ServiceDiscovery. getInstances(Iterable<String> serviceNames, int offset, int requestSize)batch-get allservice instancesby the specified service namesdefault List<ServiceInstance>ServiceDiscovery. getInstances(String serviceName)Gets allservice instancesby the specified service name.default Page<ServiceInstance>ServiceDiscovery. getInstances(String serviceName, int offset, int pageSize)Gets thepaginationofservice instancesby the specified service name.default Page<ServiceInstance>ServiceDiscovery. getInstances(String serviceName, int offset, int pageSize, boolean healthyOnly)Get thepaginationofservice instancesby the specified service name.参数类型为ServiceInstance的org.apache.dubbo.registry.client中的方法 修饰符和类型 方法 说明 voidServiceInstanceCustomizer. customize(ServiceInstance serviceInstance)Customizesthe service instanceabstract voidAbstractServiceDiscovery. doRegister(ServiceInstance serviceInstance)It should be implement in kinds of service discovers.voidFileSystemServiceDiscovery. doRegister(ServiceInstance serviceInstance)abstract voidAbstractServiceDiscovery. doUpdate(ServiceInstance serviceInstance)It should be implement in kinds of service discovers.voidFileSystemServiceDiscovery. doUpdate(ServiceInstance serviceInstance)voidAbstractServiceDiscovery. register(ServiceInstance serviceInstance)voidServiceDiscovery. register(ServiceInstance serviceInstance)Registers an instance ofServiceInstance.voidFileSystemServiceDiscovery. unregister(ServiceInstance serviceInstance)voidServiceDiscovery. unregister(ServiceInstance serviceInstance)Unregisters an instance ofServiceInstance.voidAbstractServiceDiscovery. update(ServiceInstance serviceInstance)voidServiceDiscovery. update(ServiceInstance serviceInstance)Updates the registeredServiceInstance.类型变量类型为ServiceInstance的org.apache.dubbo.registry.client中的方法参数 修饰符和类型 方法 说明 default voidServiceDiscovery. dispatchServiceInstancesChangedEvent(String serviceName, List<ServiceInstance> serviceInstances)Dispatch theServiceInstancesChangedEvent参数类型为ServiceInstance的org.apache.dubbo.registry.client中的构造器 构造器 说明 InstanceAddressURL(ServiceInstance instance, MetadataInfo metadataInfo) -
org.apache.dubbo.registry.client.event中ServiceInstance的使用
返回ServiceInstance的org.apache.dubbo.registry.client.event中的方法 修饰符和类型 方法 说明 ServiceInstanceServiceInstanceEvent. getServiceInstance()Get currentservice instance返回变量类型为ServiceInstance的类型的org.apache.dubbo.registry.client.event中的方法 修饰符和类型 方法 说明 List<ServiceInstance>ServiceInstancesChangedEvent. getServiceInstances()参数类型为ServiceInstance的org.apache.dubbo.registry.client.event中的构造器 构造器 说明 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)类型变量类型为ServiceInstance的org.apache.dubbo.registry.client.event中的构造器参数 构造器 说明 ServiceInstancesChangedEvent(String serviceName, List<ServiceInstance> serviceInstances) -
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)static voidServiceInstanceMetadataUtils. calInstanceRevision(ServiceDiscovery serviceDiscovery, ServiceInstance instance)voidMetadataServiceURLParamsMetadataCustomizer. customize(ServiceInstance serviceInstance)voidProtocolPortsMetadataCustomizer. customize(ServiceInstance serviceInstance)voidServiceInstanceMetadataCustomizer. customize(ServiceInstance serviceInstance)static StringServiceInstanceMetadataUtils. getExportedServicesRevision(ServiceInstance serviceInstance)The revision for all exported Dubbo services from the specifiedServiceInstance.static MetadataServiceMetadataUtils. getMetadataServiceProxy(ServiceInstance instance, ServiceDiscovery serviceDiscovery)static Map<String,String>ServiceInstanceMetadataUtils. getMetadataServiceURLParams(ServiceInstance serviceInstance, String protocol)Get theurl'sparameters ofMetadataService'sMetadatastatic Map<String,Map<String,String>>ServiceInstanceMetadataUtils. getMetadataServiceURLsParams(ServiceInstance serviceInstance)Get the multipleurls'parameters ofMetadataService'sMetadatastatic StringServiceInstanceMetadataUtils. getMetadataStorageType(ServiceInstance serviceInstance)Get the metadata's storage type is used to whichWritableMetadataServiceinstance.static IntegerServiceInstanceMetadataUtils. getProtocolPort(ServiceInstance serviceInstance, String protocol)Get the property value of port by the specifiedthe metadata of service instanceand protocolstatic StringServiceInstanceMetadataUtils. getRemoteCluster(ServiceInstance serviceInstance)static booleanServiceInstanceMetadataUtils. isDubboServiceInstance(ServiceInstance serviceInstance)Is Dubbo Service instance or notstatic booleanServiceInstanceMetadataUtils. isInstanceUpdated(ServiceInstance instance)static voidServiceInstanceMetadataUtils. resetInstanceUpdateKey(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中的方法参数 修饰符和类型 方法 说明 List<URL>RestProtocolSubscribedURLsSynthesizer. synthesize(URL subscribedURL, Collection<ServiceInstance> serviceInstances)List<URL>SubscribedURLsSynthesizer. synthesize(URL subscribedURL, Collection<ServiceInstance> serviceInstances)synthesize the subscribedURLs -
org.apache.dubbo.registry.client.metadata.store中ServiceInstance的使用
参数类型为ServiceInstance的org.apache.dubbo.registry.client.metadata.store中的方法 修饰符和类型 方法 说明 MetadataInfoRemoteMetadataServiceImpl. getMetadata(ServiceInstance instance) -
org.apache.dubbo.registry.client.selector中ServiceInstance的使用
返回ServiceInstance的org.apache.dubbo.registry.client.selector中的方法 修饰符和类型 方法 说明 ServiceInstanceRandomServiceInstanceSelector. select(URL registryURL, List<ServiceInstance> serviceInstances)ServiceInstanceServiceInstanceSelector. select(URL registryURL, List<ServiceInstance> serviceInstances)Select an instance ofServiceInstanceby the specifiedservice instances类型变量类型为ServiceInstance的org.apache.dubbo.registry.client.selector中的方法参数 修饰符和类型 方法 说明 ServiceInstanceRandomServiceInstanceSelector. select(URL registryURL, List<ServiceInstance> serviceInstances)ServiceInstanceServiceInstanceSelector. select(URL registryURL, List<ServiceInstance> serviceInstances)Select an instance ofServiceInstanceby the specifiedservice instances -
org.apache.dubbo.registry.consul中ServiceInstance的使用
返回变量类型为ServiceInstance的类型的org.apache.dubbo.registry.consul中的方法 修饰符和类型 方法 说明 List<ServiceInstance>ConsulServiceDiscovery. getInstances(String serviceName)参数类型为ServiceInstance的org.apache.dubbo.registry.consul中的方法 修饰符和类型 方法 说明 voidConsulServiceDiscovery. doRegister(ServiceInstance serviceInstance)voidConsulServiceDiscovery. doUpdate(ServiceInstance serviceInstance)voidConsulServiceDiscovery. unregister(ServiceInstance serviceInstance) -
org.apache.dubbo.registry.etcd中ServiceInstance的使用
返回变量类型为ServiceInstance的类型的org.apache.dubbo.registry.etcd中的方法 修饰符和类型 方法 说明 List<ServiceInstance>EtcdServiceDiscovery. getInstances(String serviceName)参数类型为ServiceInstance的org.apache.dubbo.registry.etcd中的方法 修饰符和类型 方法 说明 voidEtcdServiceDiscovery. doRegister(ServiceInstance serviceInstance)voidEtcdServiceDiscovery. doUpdate(ServiceInstance serviceInstance)voidEtcdServiceDiscovery. unregister(ServiceInstance serviceInstance) -
org.apache.dubbo.registry.eureka中ServiceInstance的使用
返回变量类型为ServiceInstance的类型的org.apache.dubbo.registry.eureka中的方法 修饰符和类型 方法 说明 List<ServiceInstance>EurekaServiceDiscovery. getInstances(String serviceName)参数类型为ServiceInstance的org.apache.dubbo.registry.eureka中的方法 修饰符和类型 方法 说明 voidEurekaServiceDiscovery. doRegister(ServiceInstance serviceInstance)voidEurekaServiceDiscovery. doUpdate(ServiceInstance serviceInstance)voidEurekaServiceDiscovery. unregister(ServiceInstance serviceInstance) -
org.apache.dubbo.registry.multiple中ServiceInstance的使用
返回ServiceInstance的org.apache.dubbo.registry.multiple中的方法 修饰符和类型 方法 说明 ServiceInstanceMultipleRegistryServiceDiscovery. getLocalInstance()返回变量类型为ServiceInstance的类型的org.apache.dubbo.registry.multiple中的方法 修饰符和类型 方法 说明 Page<ServiceInstance>MultipleRegistryServiceDiscovery. getInstances(String serviceName, int offset, int pageSize, boolean healthyOnly)参数类型为ServiceInstance的org.apache.dubbo.registry.multiple中的方法 修饰符和类型 方法 说明 voidMultipleRegistryServiceDiscovery. doRegister(ServiceInstance serviceInstance)voidMultipleRegistryServiceDiscovery. doUpdate(ServiceInstance serviceInstance)voidMultipleRegistryServiceDiscovery. unregister(ServiceInstance serviceInstance) -
org.apache.dubbo.registry.nacos中ServiceInstance的使用
返回变量类型为ServiceInstance的类型的org.apache.dubbo.registry.nacos中的方法 修饰符和类型 方法 说明 List<ServiceInstance>NacosServiceDiscovery. getInstances(String serviceName)参数类型为ServiceInstance的org.apache.dubbo.registry.nacos中的方法 修饰符和类型 方法 说明 voidNacosServiceDiscovery. doRegister(ServiceInstance serviceInstance)voidNacosServiceDiscovery. doUpdate(ServiceInstance serviceInstance)voidNacosServiceDiscovery. unregister(ServiceInstance serviceInstance) -
org.apache.dubbo.registry.nacos.util中ServiceInstance的使用
返回ServiceInstance的org.apache.dubbo.registry.nacos.util中的方法 修饰符和类型 方法 说明 static ServiceInstanceNacosNamingServiceUtils. toServiceInstance(com.alibaba.nacos.api.naming.pojo.Instance instance)Convert theInstancetoServiceInstance参数类型为ServiceInstance的org.apache.dubbo.registry.nacos.util中的方法 修饰符和类型 方法 说明 static com.alibaba.nacos.api.naming.pojo.InstanceNacosNamingServiceUtils. toInstance(ServiceInstance serviceInstance)Convert theServiceInstancetoInstance -
org.apache.dubbo.registry.sofa中ServiceInstance的使用
返回变量类型为ServiceInstance的类型的org.apache.dubbo.registry.sofa中的方法 修饰符和类型 方法 说明 Page<ServiceInstance>SofaRegistryServiceDiscovery. getInstances(String serviceName, int offset, int pageSize, boolean healthyOnly)参数类型为ServiceInstance的org.apache.dubbo.registry.sofa中的方法 修饰符和类型 方法 说明 voidSofaRegistryServiceDiscovery. doRegister(ServiceInstance serviceInstance)voidSofaRegistryServiceDiscovery. doUpdate(ServiceInstance serviceInstance)voidSofaRegistryServiceDiscovery. unregister(ServiceInstance serviceInstance) -
org.apache.dubbo.registry.zookeeper中ServiceInstance的使用
返回变量类型为ServiceInstance的类型的org.apache.dubbo.registry.zookeeper中的方法 修饰符和类型 方法 说明 List<ServiceInstance>ZookeeperServiceDiscovery. getInstances(String serviceName)Page<ServiceInstance>ZookeeperServiceDiscovery. getInstances(String serviceName, int offset, int pageSize, boolean healthyOnly)参数类型为ServiceInstance的org.apache.dubbo.registry.zookeeper中的方法 修饰符和类型 方法 说明 voidZookeeperServiceDiscovery. doRegister(ServiceInstance serviceInstance)voidZookeeperServiceDiscovery. doUpdate(ServiceInstance serviceInstance)voidZookeeperServiceDiscovery. unregister(ServiceInstance serviceInstance) -
org.apache.dubbo.registry.zookeeper.util中ServiceInstance的使用
返回ServiceInstance的org.apache.dubbo.registry.zookeeper.util中的方法 修饰符和类型 方法 说明 static ServiceInstanceCuratorFrameworkUtils. build(org.apache.curator.x.discovery.ServiceInstance<ZookeeperInstance> instance)返回变量类型为ServiceInstance的类型的org.apache.dubbo.registry.zookeeper.util中的方法 修饰符和类型 方法 说明 static List<ServiceInstance>CuratorFrameworkUtils. build(Collection<org.apache.curator.x.discovery.ServiceInstance<ZookeeperInstance>> instances)参数类型为ServiceInstance的org.apache.dubbo.registry.zookeeper.util中的方法 修饰符和类型 方法 说明 static org.apache.curator.x.discovery.ServiceInstance<ZookeeperInstance>CuratorFrameworkUtils. build(ServiceInstance serviceInstance)
-