public class RestTemplateEurekaHttpClient extends Object implements com.netflix.discovery.shared.transport.EurekaHttpClient
Modifier and Type | Field and Description |
---|---|
protected org.apache.commons.logging.Log |
logger |
Constructor and Description |
---|
RestTemplateEurekaHttpClient(org.springframework.web.client.RestTemplate restTemplate,
String serviceUrl) |
Modifier and Type | Method and Description |
---|---|
com.netflix.discovery.shared.transport.EurekaHttpResponse<Void> |
cancel(String appName,
String id) |
com.netflix.discovery.shared.transport.EurekaHttpResponse<Void> |
deleteStatusOverride(String appName,
String id,
com.netflix.appinfo.InstanceInfo info) |
com.netflix.discovery.shared.transport.EurekaHttpResponse<com.netflix.discovery.shared.Application> |
getApplication(String appName) |
com.netflix.discovery.shared.transport.EurekaHttpResponse<com.netflix.discovery.shared.Applications> |
getApplications(String... regions) |
com.netflix.discovery.shared.transport.EurekaHttpResponse<com.netflix.discovery.shared.Applications> |
getDelta(String... regions) |
com.netflix.discovery.shared.transport.EurekaHttpResponse<com.netflix.appinfo.InstanceInfo> |
getInstance(String id) |
com.netflix.discovery.shared.transport.EurekaHttpResponse<com.netflix.appinfo.InstanceInfo> |
getInstance(String appName,
String id) |
com.netflix.discovery.shared.transport.EurekaHttpResponse<com.netflix.discovery.shared.Applications> |
getSecureVip(String secureVipAddress,
String... regions) |
String |
getServiceUrl() |
com.netflix.discovery.shared.transport.EurekaHttpResponse<com.netflix.discovery.shared.Applications> |
getVip(String vipAddress,
String... regions) |
com.netflix.discovery.shared.transport.EurekaHttpResponse<Void> |
register(com.netflix.appinfo.InstanceInfo info) |
com.netflix.discovery.shared.transport.EurekaHttpResponse<com.netflix.appinfo.InstanceInfo> |
sendHeartBeat(String appName,
String id,
com.netflix.appinfo.InstanceInfo info,
com.netflix.appinfo.InstanceInfo.InstanceStatus overriddenStatus) |
void |
shutdown() |
com.netflix.discovery.shared.transport.EurekaHttpResponse<Void> |
statusUpdate(String appName,
String id,
com.netflix.appinfo.InstanceInfo.InstanceStatus newStatus,
com.netflix.appinfo.InstanceInfo info) |
public RestTemplateEurekaHttpClient(org.springframework.web.client.RestTemplate restTemplate, String serviceUrl)
public String getServiceUrl()
public com.netflix.discovery.shared.transport.EurekaHttpResponse<Void> register(com.netflix.appinfo.InstanceInfo info)
register
in interface com.netflix.discovery.shared.transport.EurekaHttpClient
public com.netflix.discovery.shared.transport.EurekaHttpResponse<Void> cancel(String appName, String id)
cancel
in interface com.netflix.discovery.shared.transport.EurekaHttpClient
public com.netflix.discovery.shared.transport.EurekaHttpResponse<com.netflix.appinfo.InstanceInfo> sendHeartBeat(String appName, String id, com.netflix.appinfo.InstanceInfo info, com.netflix.appinfo.InstanceInfo.InstanceStatus overriddenStatus)
sendHeartBeat
in interface com.netflix.discovery.shared.transport.EurekaHttpClient
public com.netflix.discovery.shared.transport.EurekaHttpResponse<Void> statusUpdate(String appName, String id, com.netflix.appinfo.InstanceInfo.InstanceStatus newStatus, com.netflix.appinfo.InstanceInfo info)
statusUpdate
in interface com.netflix.discovery.shared.transport.EurekaHttpClient
public com.netflix.discovery.shared.transport.EurekaHttpResponse<Void> deleteStatusOverride(String appName, String id, com.netflix.appinfo.InstanceInfo info)
deleteStatusOverride
in interface com.netflix.discovery.shared.transport.EurekaHttpClient
public com.netflix.discovery.shared.transport.EurekaHttpResponse<com.netflix.discovery.shared.Applications> getApplications(String... regions)
getApplications
in interface com.netflix.discovery.shared.transport.EurekaHttpClient
public com.netflix.discovery.shared.transport.EurekaHttpResponse<com.netflix.discovery.shared.Applications> getDelta(String... regions)
getDelta
in interface com.netflix.discovery.shared.transport.EurekaHttpClient
public com.netflix.discovery.shared.transport.EurekaHttpResponse<com.netflix.discovery.shared.Applications> getVip(String vipAddress, String... regions)
getVip
in interface com.netflix.discovery.shared.transport.EurekaHttpClient
public com.netflix.discovery.shared.transport.EurekaHttpResponse<com.netflix.discovery.shared.Applications> getSecureVip(String secureVipAddress, String... regions)
getSecureVip
in interface com.netflix.discovery.shared.transport.EurekaHttpClient
public com.netflix.discovery.shared.transport.EurekaHttpResponse<com.netflix.discovery.shared.Application> getApplication(String appName)
getApplication
in interface com.netflix.discovery.shared.transport.EurekaHttpClient
public com.netflix.discovery.shared.transport.EurekaHttpResponse<com.netflix.appinfo.InstanceInfo> getInstance(String appName, String id)
getInstance
in interface com.netflix.discovery.shared.transport.EurekaHttpClient
public com.netflix.discovery.shared.transport.EurekaHttpResponse<com.netflix.appinfo.InstanceInfo> getInstance(String id)
getInstance
in interface com.netflix.discovery.shared.transport.EurekaHttpClient
public void shutdown()
shutdown
in interface com.netflix.discovery.shared.transport.EurekaHttpClient
Copyright © 2020 Pivotal Software, Inc.. All rights reserved.