Class AbstractRegistryFactory
java.lang.Object
org.apache.dubbo.registry.support.AbstractRegistryFactory
- All Implemented Interfaces:
RegistryFactory,ScopeModelAware
- Direct Known Subclasses:
ServiceDiscoveryRegistryFactory
public abstract class AbstractRegistryFactory
extends Object
implements RegistryFactory, ScopeModelAware
AbstractRegistryFactory. (SPI, Singleton, ThreadSafe)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetRegistry(URL url) Connect to the registryvoidsetApplicationModel(ApplicationModel applicationModel) Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.dubbo.rpc.model.ScopeModelAware
setFrameworkModel, setModuleModel, setScopeModel
-
Constructor Details
-
AbstractRegistryFactory
public AbstractRegistryFactory()
-
-
Method Details
-
setApplicationModel
- Specified by:
setApplicationModelin interfaceScopeModelAware
-
getRegistry
Description copied from interface:RegistryFactoryConnect to the registryConnecting the registry needs to support the contract:
1. When the check=false is set, the connection is not checked, otherwise the exception is thrown when disconnection
2. Support username:password authority authentication on URL.
3. Support the backup=10.20.153.10 candidate registry cluster address.
4. Support file=registry.cache local disk file cache.
5. Support the timeout=1000 request timeout setting.
6. Support session=60000 session timeout or expiration settings.- Specified by:
getRegistryin interfaceRegistryFactory- Parameters:
url- Registry address, is not allowed to be empty- Returns:
- Registry reference, never return empty value
-