|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.netflix.discovery.DiscoveryManager
public class DiscoveryManager
Discovery Manager configures Discovery Client based on the properties specified.
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.
| Method Summary | |
|---|---|
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 |
shutdownComponent()
Shuts down the Discovery Client which unregisters the information about this instance from the Discovery Server. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static DiscoveryManager getInstance()
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.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||