类 AbstractServiceDiscovery
- java.lang.Object
-
- org.apache.dubbo.registry.client.AbstractServiceDiscovery
-
- 所有已实现的接口:
Comparable<Prioritized>,Prioritized,ServiceDiscovery
- 直接已知子类:
FileSystemServiceDiscovery
public abstract class AbstractServiceDiscovery extends Object implements ServiceDiscovery
-
-
字段概要
-
从接口继承的字段 org.apache.dubbo.common.lang.Prioritized
COMPARATOR, MAX_PRIORITY, MIN_PRIORITY, NORMAL_PRIORITY
-
-
构造器概要
构造器 构造器 说明 AbstractServiceDiscovery()
-
方法概要
所有方法 实例方法 抽象方法 具体方法 修饰符和类型 方法 说明 abstract voiddoRegister(ServiceInstance serviceInstance)It should be implement in kinds of service discovers.abstract voiddoUpdate(ServiceInstance serviceInstance)It should be implement in kinds of service discovers.ServiceInstancegetLocalInstance()voidregister(ServiceInstance serviceInstance)Registers an instance ofServiceInstance.voidupdate(ServiceInstance serviceInstance)Updates the registeredServiceInstance.-
从接口继承的方法 org.apache.dubbo.common.lang.Prioritized
compareTo, getPriority
-
从接口继承的方法 org.apache.dubbo.registry.client.ServiceDiscovery
addServiceInstancesChangedListener, destroy, dispatchServiceInstancesChangedEvent, dispatchServiceInstancesChangedEvent, dispatchServiceInstancesChangedEvent, dispatchServiceInstancesChangedEvent, getDefaultPageSize, getInstances, getInstances, getInstances, getInstances, getServices, getUrl, initialize, removeServiceInstancesChangedListener, toString, unregister
-
-
-
-
方法详细资料
-
getLocalInstance
public ServiceInstance getLocalInstance()
- 指定者:
getLocalInstance在接口中ServiceDiscovery
-
register
public final void register(ServiceInstance serviceInstance) throws RuntimeException
从接口复制的说明:ServiceDiscoveryRegisters an instance ofServiceInstance.- 指定者:
register在接口中ServiceDiscovery- 参数:
serviceInstance- an instance ofServiceInstanceto be registered- 抛出:
RuntimeException- if failed
-
doRegister
public abstract void doRegister(ServiceInstance serviceInstance)
It should be implement in kinds of service discovers.
-
update
public final void update(ServiceInstance serviceInstance) throws RuntimeException
从接口复制的说明:ServiceDiscoveryUpdates the registeredServiceInstance.- 指定者:
update在接口中ServiceDiscovery- 参数:
serviceInstance- the registeredServiceInstance- 抛出:
RuntimeException- if failed
-
doUpdate
public abstract void doUpdate(ServiceInstance serviceInstance)
It should be implement in kinds of service discovers.
-
-