com.netflix.karyon.server.eureka
Class EurekaHandler

java.lang.Object
  extended by 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
           
 
Constructor Summary
EurekaHandler(EurekaHealthCheckCallback eurekaHealthCheckCallback, HealthCheckInvocationStrategy healthCheckInvocationStrategy)
           
 
Method Summary
 void markAsDown()
           
 void markAsUp()
           
 void postConfig()
           
 void register()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected static final org.slf4j.Logger logger
Constructor Detail

EurekaHandler

@Inject
public EurekaHandler(EurekaHealthCheckCallback eurekaHealthCheckCallback,
                            HealthCheckInvocationStrategy healthCheckInvocationStrategy)
Method Detail

postConfig

@PostConstruct
public void postConfig()

register

public void register()

markAsUp

public void markAsUp()

markAsDown

public void markAsDown()