Package org.distributeme.core
Interface RegistryConnector
- All Known Implementing Classes:
DebugRegistryConnector,DistributemeRegistryConnector
public interface RegistryConnector
Interface to allow multiple registry implementations and appropriate connectors.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanbind(ServiceDescriptor service) Bind a service at the registry.booleannotifyBind(Location location, ServiceDescriptor descriptor) booleannotifyUnbind(Location location, ServiceDescriptor descriptor) resolve(ServiceDescriptor toResolve, Location loc) Resolve a service in the registry.voidsetCustomTagProviderClassList(List<String> customTagProviderClassList) Set custom tag provider class list (only Consul).voidsetTagableSystemProperties(Map<String, String> tagableSystemProperties) Set tagable system properties (only Consul).booleanunbind(ServiceDescriptor service) Unbind a service from the registry.
-
Method Details
-
describeRegistry
String describeRegistry() -
bind
Bind a service at the registry.- Parameters:
service-- Returns:
-
notifyBind
-
notifyUnbind
-
unbind
Unbind a service from the registry.- Parameters:
service-- Returns:
-
resolve
Resolve a service in the registry.- Parameters:
toResolve-loc-- Returns:
-
setTagableSystemProperties
Set tagable system properties (only Consul).- Parameters:
tagableSystemProperties-
-
setCustomTagProviderClassList
Set custom tag provider class list (only Consul).- Parameters:
customTagProviderClassList-
-