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