类 FailbackRegistry
- java.lang.Object
-
- org.apache.dubbo.registry.support.AbstractRegistry
-
- org.apache.dubbo.registry.support.FailbackRegistry
-
- 所有已实现的接口:
Node,Registry,RegistryService
public abstract class FailbackRegistry extends AbstractRegistry
FailbackRegistry. (SPI, Prototype, ThreadSafe)
-
-
构造器概要
构造器 构造器 说明 FailbackRegistry(URL url)
-
方法概要
所有方法 实例方法 抽象方法 具体方法 修饰符和类型 方法 说明 voiddestroy()abstract voiddoRegister(URL url)abstract voiddoSubscribe(URL url, NotifyListener listener)abstract voiddoUnregister(URL url)abstract voiddoUnsubscribe(URL url, NotifyListener listener)voidreExportRegister(URL url)voidreExportUnregister(URL url)voidregister(URL url)Register data, such as : provider service, consumer address, route rule, override rule and other data.voidremoveFailedRegisteredTask(URL url)voidremoveFailedSubscribed(URL url, NotifyListener listener)voidremoveFailedSubscribedTask(URL url, NotifyListener listener)voidremoveFailedUnregisteredTask(URL url)voidremoveFailedUnsubscribedTask(URL url, NotifyListener listener)voidsubscribe(URL url, NotifyListener listener)Subscribe to eligible registered data and automatically push when the registered data is changed.voidunregister(URL url)Unregistervoidunsubscribe(URL url, NotifyListener listener)Unsubscribe-
从类继承的方法 org.apache.dubbo.registry.support.AbstractRegistry
doSaveProperties, getCacheFile, getCacheProperties, getCacheUrls, getLastCacheChanged, getNotified, getRegistered, getSubscribed, getUrl, lookup, toString
-
从接口继承的方法 org.apache.dubbo.common.Node
isAvailable
-
-
-
-
构造器详细资料
-
FailbackRegistry
public FailbackRegistry(URL url)
-
-
方法详细资料
-
removeFailedRegisteredTask
public void removeFailedRegisteredTask(URL url)
-
removeFailedUnregisteredTask
public void removeFailedUnregisteredTask(URL url)
-
removeFailedSubscribedTask
public void removeFailedSubscribedTask(URL url, NotifyListener listener)
-
removeFailedUnsubscribedTask
public void removeFailedUnsubscribedTask(URL url, NotifyListener listener)
-
removeFailedSubscribed
public void removeFailedSubscribed(URL url, NotifyListener listener)
-
register
public void register(URL url)
从接口复制的说明:RegistryServiceRegister data, such as : provider service, consumer address, route rule, override rule and other data.Registering is required to support the contract:
1. When the URL sets the check=false parameter. When the registration fails, the exception is not thrown and retried in the background. Otherwise, the exception will be thrown.
2. When URL sets the dynamic=false parameter, it needs to be stored persistently, otherwise, it should be deleted automatically when the registrant has an abnormal exit.
3. When the URL sets category=routers, it means classified storage, the default category is providers, and the data can be notified by the classified section.
4. When the registry is restarted, network jitter, data can not be lost, including automatically deleting data from the broken line.
5. Allow URLs which have the same URL but different parameters to coexist,they can't cover each other.- 指定者:
register在接口中RegistryService- 覆盖:
register在类中AbstractRegistry- 参数:
url- Registration information , is not allowed to be empty, e.g: dubbo://10.20.153.10/org.apache.dubbo.foo.BarService?version=1.0.0&application=kylin
-
reExportRegister
public void reExportRegister(URL url)
-
unregister
public void unregister(URL url)
从接口复制的说明:RegistryServiceUnregisterUnregistering is required to support the contract:
1. If it is the persistent stored data of dynamic=false, the registration data can not be found, then the IllegalStateException is thrown, otherwise it is ignored.
2. Unregister according to the full url match.- 指定者:
unregister在接口中RegistryService- 覆盖:
unregister在类中AbstractRegistry- 参数:
url- Registration information , is not allowed to be empty, e.g: dubbo://10.20.153.10/org.apache.dubbo.foo.BarService?version=1.0.0&application=kylin
-
reExportUnregister
public void reExportUnregister(URL url)
-
subscribe
public void subscribe(URL url, NotifyListener listener)
从接口复制的说明:RegistryServiceSubscribe to eligible registered data and automatically push when the registered data is changed.Subscribing need to support contracts:
1. When the URL sets the check=false parameter. When the registration fails, the exception is not thrown and retried in the background.
2. When URL sets category=routers, it only notifies the specified classification data. Multiple classifications are separated by commas, and allows asterisk to match, which indicates that all categorical data are subscribed.
3. Allow interface, group, version, and classifier as a conditional query, e.g.: interface=org.apache.dubbo.foo.BarService&version=1.0.0
4. And the query conditions allow the asterisk to be matched, subscribe to all versions of all the packets of all interfaces, e.g. :interface=*&group=*&version=*&classifier=*
5. When the registry is restarted and network jitter, it is necessary to automatically restore the subscription request.
6. Allow URLs which have the same URL but different parameters to coexist,they can't cover each other.
7. The subscription process must be blocked, when the first notice is finished and then returned.- 指定者:
subscribe在接口中RegistryService- 覆盖:
subscribe在类中AbstractRegistry- 参数:
url- Subscription condition, not allowed to be empty, e.g. consumer://10.20.153.10/org.apache.dubbo.foo.BarService?version=1.0.0&application=kylinlistener- A listener of the change event, not allowed to be empty
-
unsubscribe
public void unsubscribe(URL url, NotifyListener listener)
从接口复制的说明:RegistryServiceUnsubscribeUnsubscribing is required to support the contract:
1. If don't subscribe, ignore it directly.
2. Unsubscribe by full URL match.- 指定者:
unsubscribe在接口中RegistryService- 覆盖:
unsubscribe在类中AbstractRegistry- 参数:
url- Subscription condition, not allowed to be empty, e.g. consumer://10.20.153.10/org.apache.dubbo.foo.BarService?version=1.0.0&application=kylinlistener- A listener of the change event, not allowed to be empty
-
destroy
public void destroy()
- 指定者:
destroy在接口中Node- 覆盖:
destroy在类中AbstractRegistry
-
doRegister
public abstract void doRegister(URL url)
-
doUnregister
public abstract void doUnregister(URL url)
-
doSubscribe
public abstract void doSubscribe(URL url, NotifyListener listener)
-
doUnsubscribe
public abstract void doUnsubscribe(URL url, NotifyListener listener)
-
-