Class MultipleServiceDiscovery
java.lang.Object
org.apache.dubbo.registry.multiple.MultipleServiceDiscovery
- All Implemented Interfaces:
Comparable<org.apache.dubbo.common.lang.Prioritized>,org.apache.dubbo.common.lang.Prioritized,ServiceDiscovery,RegistryService
-
Field Summary
FieldsFields inherited from interface org.apache.dubbo.common.lang.Prioritized
COMPARATOR, MAX_PRIORITY, MIN_PRIORITY, NORMAL_PRIORITY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateListener(Set<String> serviceNames) voiddestroy()getInstances(String serviceName) org.apache.dubbo.metadata.MetadataInfoorg.apache.dubbo.metadata.MetadataInfogetLocalMetadata(String revision) org.apache.dubbo.metadata.MetadataInfogetRemoteMetadata(String revision) org.apache.dubbo.metadata.MetadataInfogetRemoteMetadata(String revision, List<ServiceInstance> instances) org.apache.dubbo.common.URLgetUrl()booleanList<org.apache.dubbo.common.URL> lookup(org.apache.dubbo.common.URL url) voidregister()voidregister(org.apache.dubbo.common.URL url) voidsubscribe(org.apache.dubbo.common.URL url, NotifyListener listener) voidvoidunregister(org.apache.dubbo.common.URL url) voidunsubscribe(org.apache.dubbo.common.URL url, NotifyListener listener) voidupdate()Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.dubbo.common.lang.Prioritized
compareTo, getPriorityMethods inherited from interface org.apache.dubbo.registry.client.ServiceDiscovery
getDelay, isAvailable, removeServiceInstancesChangedListener, toString
-
Field Details
-
REGISTRY_PREFIX_KEY
- See Also:
-
-
Constructor Details
-
MultipleServiceDiscovery
public MultipleServiceDiscovery(org.apache.dubbo.common.URL registryURL)
-
-
Method Details
-
getUrl
public org.apache.dubbo.common.URL getUrl()- Specified by:
getUrlin interfaceServiceDiscovery
-
destroy
- Specified by:
destroyin interfaceServiceDiscovery- Throws:
Exception
-
isDestroy
public boolean isDestroy()- Specified by:
isDestroyin interfaceServiceDiscovery
-
register
- Specified by:
registerin interfaceServiceDiscovery- Throws:
RuntimeException
-
update
- Specified by:
updatein interfaceServiceDiscovery- Throws:
RuntimeException
-
unregister
- Specified by:
unregisterin interfaceServiceDiscovery- Throws:
RuntimeException
-
addServiceInstancesChangedListener
public void addServiceInstancesChangedListener(ServiceInstancesChangedListener listener) throws NullPointerException, IllegalArgumentException - Specified by:
addServiceInstancesChangedListenerin interfaceServiceDiscovery- Throws:
NullPointerExceptionIllegalArgumentException
-
createListener
- Specified by:
createListenerin interfaceServiceDiscovery
-
getInstances
- Specified by:
getInstancesin interfaceServiceDiscovery
-
getServices
- Specified by:
getServicesin interfaceServiceDiscovery
-
getLocalInstance
- Specified by:
getLocalInstancein interfaceServiceDiscovery
-
getLocalMetadata
public org.apache.dubbo.metadata.MetadataInfo getLocalMetadata()- Specified by:
getLocalMetadatain interfaceServiceDiscovery
-
getLocalMetadata
- Specified by:
getLocalMetadatain interfaceServiceDiscovery
-
getRemoteMetadata
- Specified by:
getRemoteMetadatain interfaceServiceDiscovery
-
getRemoteMetadata
public org.apache.dubbo.metadata.MetadataInfo getRemoteMetadata(String revision, List<ServiceInstance> instances) - Specified by:
getRemoteMetadatain interfaceServiceDiscovery
-
register
public void register(org.apache.dubbo.common.URL url) - Specified by:
registerin interfaceRegistryService
-
unregister
public void unregister(org.apache.dubbo.common.URL url) - Specified by:
unregisterin interfaceRegistryService
-
subscribe
- Specified by:
subscribein interfaceRegistryService
-
unsubscribe
- Specified by:
unsubscribein interfaceRegistryService
-
lookup
- Specified by:
lookupin interfaceRegistryService
-