Class EurekaRegistration
- java.lang.Object
-
- org.springframework.cloud.netflix.eureka.serviceregistry.EurekaRegistration
-
- All Implemented Interfaces:
org.springframework.cloud.client.ServiceInstance,org.springframework.cloud.client.serviceregistry.Registration
public class EurekaRegistration extends Object implements org.springframework.cloud.client.serviceregistry.Registration
Eureka-specific implementation of service instanceRegistration.- Author:
- Spencer Gibb, Tim Ysewyn
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEurekaRegistration.BuilderA builder forEurekaRegistrationobjects.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EurekaRegistration.Builderbuilder(CloudEurekaInstanceConfig instanceConfig)com.netflix.appinfo.ApplicationInfoManagergetApplicationInfoManager()CloudEurekaClientgetEurekaClient()org.springframework.beans.factory.ObjectProvider<com.netflix.appinfo.HealthCheckHandler>getHealthCheckHandler()StringgetHost()CloudEurekaInstanceConfiggetInstanceConfig()StringgetInstanceId()Map<String,String>getMetadata()intgetNonSecurePort()intgetPort()intgetSecurePort()StringgetServiceId()protected <T> TgetTargetObject(Object proxy, Class<T> targetClass)URIgetUri()booleanisSecure()voidsetHealthCheckHandler(org.springframework.beans.factory.ObjectProvider<com.netflix.appinfo.HealthCheckHandler> healthCheckHandler)voidsetNonSecurePort(int port)voidsetSecurePort(int port)
-
-
-
Method Detail
-
builder
public static EurekaRegistration.Builder builder(CloudEurekaInstanceConfig instanceConfig)
-
getInstanceId
public String getInstanceId()
- Specified by:
getInstanceIdin interfaceorg.springframework.cloud.client.ServiceInstance
-
getServiceId
public String getServiceId()
- Specified by:
getServiceIdin interfaceorg.springframework.cloud.client.ServiceInstance
-
getHost
public String getHost()
- Specified by:
getHostin interfaceorg.springframework.cloud.client.ServiceInstance
-
getPort
public int getPort()
- Specified by:
getPortin interfaceorg.springframework.cloud.client.ServiceInstance
-
isSecure
public boolean isSecure()
- Specified by:
isSecurein interfaceorg.springframework.cloud.client.ServiceInstance
-
getUri
public URI getUri()
- Specified by:
getUriin interfaceorg.springframework.cloud.client.ServiceInstance
-
getMetadata
public Map<String,String> getMetadata()
- Specified by:
getMetadatain interfaceorg.springframework.cloud.client.ServiceInstance
-
getEurekaClient
public CloudEurekaClient getEurekaClient()
-
getTargetObject
protected <T> T getTargetObject(Object proxy, Class<T> targetClass) throws Exception
- Throws:
Exception
-
getInstanceConfig
public CloudEurekaInstanceConfig getInstanceConfig()
-
getApplicationInfoManager
public com.netflix.appinfo.ApplicationInfoManager getApplicationInfoManager()
-
getHealthCheckHandler
public org.springframework.beans.factory.ObjectProvider<com.netflix.appinfo.HealthCheckHandler> getHealthCheckHandler()
-
setHealthCheckHandler
public void setHealthCheckHandler(org.springframework.beans.factory.ObjectProvider<com.netflix.appinfo.HealthCheckHandler> healthCheckHandler)
-
setNonSecurePort
public void setNonSecurePort(int port)
-
getNonSecurePort
public int getNonSecurePort()
-
setSecurePort
public void setSecurePort(int port)
-
getSecurePort
public int getSecurePort()
-
-