类 FileSystemServiceDiscovery
- java.lang.Object
-
- org.apache.dubbo.registry.client.AbstractServiceDiscovery
-
- org.apache.dubbo.registry.client.FileSystemServiceDiscovery
-
- 所有已实现的接口:
Comparable<Prioritized>,Prioritized,ServiceDiscovery
public class FileSystemServiceDiscovery extends AbstractServiceDiscovery
File SystemServiceDiscoveryimplementation- 从以下版本开始:
- 2.7.5
- 另请参阅:
FileSystemDynamicConfiguration
-
-
字段概要
-
从接口继承的字段 org.apache.dubbo.common.lang.Prioritized
COMPARATOR, MAX_PRIORITY, MIN_PRIORITY, NORMAL_PRIORITY
-
-
构造器概要
构造器 构造器 说明 FileSystemServiceDiscovery()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voiddoDestroy()voiddoInitialize(URL registryURL)voiddoRegister(ServiceInstance serviceInstance)voiddoUnregister(ServiceInstance serviceInstance)voiddoUpdate(ServiceInstance serviceInstance)List<ServiceInstance>getInstances(String serviceName)Gets allservice instancesby the specified service name.Set<String>getServices()Gets all service namesURLgetUrl()voidonConfigChanged(ConfigChangedEvent event)-
从类继承的方法 org.apache.dubbo.registry.client.AbstractServiceDiscovery
destroy, getLocalInstance, initialize, isDestroy, register, unregister, update
-
从接口继承的方法 org.apache.dubbo.common.lang.Prioritized
compareTo, getPriority
-
从接口继承的方法 org.apache.dubbo.registry.client.ServiceDiscovery
addServiceInstancesChangedListener, createListener, dispatchServiceInstancesChangedEvent, dispatchServiceInstancesChangedEvent, dispatchServiceInstancesChangedEvent, dispatchServiceInstancesChangedEvent, getDefaultPageSize, getDelay, getInstances, getInstances, getInstances, removeServiceInstancesChangedListener, toString
-
-
-
-
方法详细资料
-
doInitialize
public void doInitialize(URL registryURL) throws Exception
- 指定者:
doInitialize在类中AbstractServiceDiscovery- 抛出:
Exception
-
onConfigChanged
public void onConfigChanged(ConfigChangedEvent event)
-
doDestroy
public void doDestroy() throws Exception- 指定者:
doDestroy在类中AbstractServiceDiscovery- 抛出:
Exception
-
getInstances
public List<ServiceInstance> getInstances(String serviceName)
从接口复制的说明:ServiceDiscoveryGets allservice instancesby the specified service name.- 参数:
serviceName- the service name- 返回:
- non-null
List
-
getUrl
public URL getUrl()
-
doRegister
public void doRegister(ServiceInstance serviceInstance) throws RuntimeException
- 指定者:
doRegister在类中AbstractServiceDiscovery- 抛出:
RuntimeException
-
doUpdate
public void doUpdate(ServiceInstance serviceInstance) throws RuntimeException
- 指定者:
doUpdate在类中AbstractServiceDiscovery- 抛出:
RuntimeException
-
doUnregister
public void doUnregister(ServiceInstance serviceInstance) throws RuntimeException
- 指定者:
doUnregister在类中AbstractServiceDiscovery- 抛出:
RuntimeException
-
getServices
public Set<String> getServices()
从接口复制的说明:ServiceDiscoveryGets all service names- 返回:
- non-null read-only
Set
-
-