public class DiscoveryManager
extends java.lang.Object
The configuration file is searched for in the classpath with the name specified by the property eureka.client.props and with the suffix .properties. If the property is not specified, eureka-client.properties is assumed as the default.
| Modifier and Type | Method and Description |
|---|---|
DiscoveryClient |
getDiscoveryClient()
Get the
DiscoveryClient. |
EurekaClientConfig |
getEurekaClientConfig()
Get the instance of
EurekaClientConfig this instance was initialized with. |
EurekaInstanceConfig |
getEurekaInstanceConfig()
Get the instance of
EurekaInstanceConfig this instance was initialized with. |
static DiscoveryManager |
getInstance() |
LookupService |
getLookupService() |
void |
initComponent(EurekaInstanceConfig config,
EurekaClientConfig eurekaConfig)
Initializes the Discovery Client with the given configuration.
|
void |
setDiscoveryClient(DiscoveryClient discoveryClient) |
void |
setEurekaClientConfig(EurekaClientConfig eurekaClientConfig) |
void |
setEurekaInstanceConfig(EurekaInstanceConfig eurekaInstanceConfig) |
void |
shutdownComponent()
Shuts down the Discovery Client which unregisters the
information about this instance from the Discovery Server.
|
public static DiscoveryManager getInstance()
public void setDiscoveryClient(DiscoveryClient discoveryClient)
public void setEurekaClientConfig(EurekaClientConfig eurekaClientConfig)
public void setEurekaInstanceConfig(EurekaInstanceConfig eurekaInstanceConfig)
public void initComponent(EurekaInstanceConfig config, EurekaClientConfig eurekaConfig)
config - the instance info configuration that will be used for
registration with Eureka.eurekaConfig - the eureka client configuration of the instance.public void shutdownComponent()
public LookupService getLookupService()
public DiscoveryClient getDiscoveryClient()
DiscoveryClient.public EurekaClientConfig getEurekaClientConfig()
EurekaClientConfig this instance was initialized with.EurekaClientConfig this instance was initialized with.public EurekaInstanceConfig getEurekaInstanceConfig()
EurekaInstanceConfig this instance was initialized with.EurekaInstanceConfig this instance was initialized with.