public class ElasticNetworkInterfaceBinder extends java.lang.Object implements AwsBinder
| Constructor and Description |
|---|
ElasticNetworkInterfaceBinder(EurekaServerConfig serverConfig,
com.netflix.discovery.EurekaClientConfig clientConfig,
PeerAwareInstanceRegistry registry,
com.netflix.appinfo.ApplicationInfoManager applicationInfoManager) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
alreadyBound() |
void |
bind()
Binds an ENI to the instance.
|
java.util.List<java.lang.String> |
getCandidateIps()
Based on shouldUseDnsForFetchingServiceUrls configuration, either retrieves candidates from dns records or from
configuration properties.
|
void |
shutdown() |
void |
start() |
void |
unbind()
Unbind the IP that this instance is associated with.
|
@Inject public ElasticNetworkInterfaceBinder(EurekaServerConfig serverConfig, com.netflix.discovery.EurekaClientConfig clientConfig, PeerAwareInstanceRegistry registry, com.netflix.appinfo.ApplicationInfoManager applicationInfoManager)
@PostConstruct
public void start()
throws java.lang.Exception
@PreDestroy
public void shutdown()
throws java.lang.Exception
public boolean alreadyBound()
throws java.net.MalformedURLException
java.net.MalformedURLExceptionpublic void bind()
throws java.net.MalformedURLException
java.net.MalformedURLExceptionpublic void unbind()
throws java.lang.Exception
java.lang.Exceptionpublic java.util.List<java.lang.String> getCandidateIps()
throws java.net.MalformedURLException
java.net.MalformedURLException