public class EurekaRegistration extends Object implements org.springframework.cloud.client.serviceregistry.Registration
Modifier and Type | Class and Description |
---|---|
static class |
EurekaRegistration.Builder |
Modifier and Type | Method and Description |
---|---|
static EurekaRegistration.Builder |
builder(CloudEurekaInstanceConfig instanceConfig) |
com.netflix.appinfo.ApplicationInfoManager |
getApplicationInfoManager() |
CloudEurekaClient |
getEurekaClient() |
com.netflix.appinfo.HealthCheckHandler |
getHealthCheckHandler() |
String |
getHost() |
CloudEurekaInstanceConfig |
getInstanceConfig() |
Map<String,String> |
getMetadata() |
int |
getNonSecurePort() |
int |
getPort() |
int |
getSecurePort() |
String |
getServiceId() |
protected <T> T |
getTargetObject(Object proxy,
Class<T> targetClass) |
URI |
getUri() |
boolean |
isSecure() |
void |
setHealthCheckHandler(com.netflix.appinfo.HealthCheckHandler healthCheckHandler) |
void |
setNonSecurePort(int port) |
void |
setSecurePort(int port) |
public static EurekaRegistration.Builder builder(CloudEurekaInstanceConfig instanceConfig)
public String getServiceId()
getServiceId
in interface org.springframework.cloud.client.ServiceInstance
public String getHost()
getHost
in interface org.springframework.cloud.client.ServiceInstance
public int getPort()
getPort
in interface org.springframework.cloud.client.ServiceInstance
public boolean isSecure()
isSecure
in interface org.springframework.cloud.client.ServiceInstance
public URI getUri()
getUri
in interface org.springframework.cloud.client.ServiceInstance
public Map<String,String> getMetadata()
getMetadata
in interface org.springframework.cloud.client.ServiceInstance
public CloudEurekaClient getEurekaClient()
protected <T> T getTargetObject(Object proxy, Class<T> targetClass) throws Exception
Exception
public CloudEurekaInstanceConfig getInstanceConfig()
public com.netflix.appinfo.ApplicationInfoManager getApplicationInfoManager()
public com.netflix.appinfo.HealthCheckHandler getHealthCheckHandler()
public void setHealthCheckHandler(com.netflix.appinfo.HealthCheckHandler healthCheckHandler)
public void setNonSecurePort(int port)
public int getNonSecurePort()
public void setSecurePort(int port)
public int getSecurePort()
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.