com.netflix.karyon.server.eureka
Class EurekaHandler
java.lang.Object
com.netflix.karyon.server.eureka.EurekaHandler
@AutoBindSingleton
public class EurekaHandler
- extends java.lang.Object
A handler for integrating with Eureka. This handler can be disabled
by setting a property PropertyNames.DISABLE_EUREKA_INTEGRATION
as true
.
If enabled, this class registers the application with eureka as a cloud instance iff the value of the property
PropertyNames.EUREKA_DATACENTER_TYPE_PROP_NAME
is set to DataCenterInfo.Name#Amazon
or
DataCenterInfo.Name#Netflix
. In such a case, this class uses CloudInstanceConfig
to register with
eureka. Otherwise MyDataCenterInstanceConfig
is used as eureka config.
- See Also:
KaryonServer
Field Summary |
protected static org.slf4j.Logger |
logger
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
protected static final org.slf4j.Logger logger
EurekaHandler
@Inject
public EurekaHandler(EurekaHealthCheckCallback eurekaHealthCheckCallback,
HealthCheckInvocationStrategy healthCheckInvocationStrategy)
postConfig
@PostConstruct
public void postConfig()
register
public void register()
markAsUp
public void markAsUp()
markAsDown
public void markAsDown()