Package org.apache.dubbo.registry.client
Class NopServiceDiscovery
java.lang.Object
org.apache.dubbo.registry.client.AbstractServiceDiscovery
org.apache.dubbo.registry.client.NopServiceDiscovery
- All Implemented Interfaces:
Comparable<Prioritized>,Prioritized,ServiceDiscovery,RegistryService
-
Field Summary
Fields inherited from interface org.apache.dubbo.common.lang.Prioritized
COMPARATOR, MAX_PRIORITY, MIN_PRIORITY, NORMAL_PRIORITY -
Constructor Summary
ConstructorsConstructorDescriptionNopServiceDiscovery(String serviceName, URL registryURL) NopServiceDiscovery(ApplicationModel applicationModel, URL registryURL) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoiddoRegister(ServiceInstance serviceInstance) voiddoUnregister(ServiceInstance serviceInstance) getInstances(String serviceName) Gets all service namesbooleanGet services is the default way for service discovery to be availableMethods inherited from class org.apache.dubbo.registry.client.AbstractServiceDiscovery
destroy, getLocalInstance, getLocalMetadata, getLocalMetadata, getRemoteMetadata, getRemoteMetadata, getUrl, isDestroy, lookup, register, register, subscribe, unregister, unregister, unsubscribe, updateMethods 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
addServiceInstancesChangedListener, createListener, getDelay, removeServiceInstancesChangedListener, toString
-
Constructor Details
-
NopServiceDiscovery
-
NopServiceDiscovery
-
-
Method Details
-
doRegister
- Throws:
RuntimeException
-
doUnregister
-
doDestroy
- Throws:
Exception
-
getServices
Description copied from interface:ServiceDiscoveryGets all service names- Returns:
- non-null read-only
Set
-
getInstances
- Throws:
NullPointerException
-
isAvailable
public boolean isAvailable()Description copied from interface:ServiceDiscoveryGet services is the default way for service discovery to be available
-