public interface ServiceDiscovery
| Modifier and Type | Interface and Description |
|---|---|
static interface |
ServiceDiscovery.Cluster
A handle to the service discovery result.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
CONFIG_DIR_PROPERTY |
| Modifier and Type | Method and Description |
|---|---|
Map<String,ServiceDiscovery.Cluster> |
discover(GatewayConfig gwConfig,
ServiceDiscoveryConfig config)
Discover details of all the clusters known to the target registry.
|
ServiceDiscovery.Cluster |
discover(GatewayConfig gwConfig,
ServiceDiscoveryConfig config,
String clusterName)
Discover details for a single cluster.
|
String |
getType()
This is the type specified in a simple descriptor to indicate which ServiceDiscovery implementation to employ.
|
static final String CONFIG_DIR_PROPERTY
String getType()
Map<String,ServiceDiscovery.Cluster> discover(GatewayConfig gwConfig, ServiceDiscoveryConfig config)
gwConfig - The gateway configurationconfig - The configuration for the discovery invocationServiceDiscovery.Cluster discover(GatewayConfig gwConfig, ServiceDiscoveryConfig config, String clusterName)
gwConfig - The gateway configurationconfig - The configuration for the discovery invocationclusterName - The name of a particular clusterCopyright © 2022 The Apache Software Foundation. All rights reserved.