com.netflix.karyon.server.eureka
Class EurekaHealthCheckCallback

java.lang.Object
  extended by com.netflix.karyon.server.eureka.EurekaHealthCheckCallback
All Implemented Interfaces:
com.netflix.appinfo.HealthCheckCallback

public class EurekaHealthCheckCallback
extends java.lang.Object
implements com.netflix.appinfo.HealthCheckCallback


Field Summary
protected static org.slf4j.Logger logger
           
 
Constructor Summary
EurekaHealthCheckCallback(HealthCheckInvocationStrategy healthCheckInvocationStrategy)
           
 
Method Summary
 boolean isHealthy()
           
protected  boolean isHealthy(int healthStatus)
          Asserts whether the given status signifies healthy for eureka.
 
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

EurekaHealthCheckCallback

@Inject
public EurekaHealthCheckCallback(HealthCheckInvocationStrategy healthCheckInvocationStrategy)
Method Detail

isHealthy

public boolean isHealthy()
Specified by:
isHealthy in interface com.netflix.appinfo.HealthCheckCallback

isHealthy

protected boolean isHealthy(int healthStatus)
Asserts whether the given status signifies healthy for eureka.

Parameters:
healthStatus - Health status to assert.
Returns:
true if the status means healthy.