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 instance
Registration.- Author:
- Spencer Gibb, Tim Ysewyn
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic EurekaRegistration.Builderbuilder(CloudEurekaInstanceConfig instanceConfig) com.netflix.appinfo.ApplicationInfoManagerorg.springframework.beans.factory.ObjectProvider<com.netflix.appinfo.HealthCheckHandler>getHost()intintgetPort()intprotected <T> TgetTargetObject(Object proxy, Class<T> targetClass) getUri()booleanisSecure()voidsetHealthCheckHandler(org.springframework.beans.factory.ObjectProvider<com.netflix.appinfo.HealthCheckHandler> healthCheckHandler) voidsetNonSecurePort(int port) voidsetSecurePort(int port) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.cloud.client.ServiceInstance
getScheme
-
Method Details
-
builder
-
getInstanceId
- Specified by:
getInstanceIdin interfaceorg.springframework.cloud.client.ServiceInstance
-
getServiceId
- Specified by:
getServiceIdin interfaceorg.springframework.cloud.client.ServiceInstance
-
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
- Specified by:
getUriin interfaceorg.springframework.cloud.client.ServiceInstance
-
getMetadata
- Specified by:
getMetadatain interfaceorg.springframework.cloud.client.ServiceInstance
-
getEurekaClient
-
getTargetObject
- Throws:
Exception
-
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()
-