com.netflix.karyon.spi
Class DefaultHealthCheckHandler

java.lang.Object
  extended by com.netflix.karyon.spi.DefaultHealthCheckHandler
All Implemented Interfaces:
HealthCheckHandler

public class DefaultHealthCheckHandler
extends java.lang.Object
implements HealthCheckHandler

Default health check handler implementation which always returns healthy.


Constructor Summary
DefaultHealthCheckHandler()
           
 
Method Summary
 int getStatus()
          Checks the health of the application and returns a status code, which can be directly consumed as a HTTP status code.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultHealthCheckHandler

public DefaultHealthCheckHandler()
Method Detail

getStatus

public int getStatus()
Description copied from interface: HealthCheckHandler
Checks the health of the application and returns a status code, which can be directly consumed as a HTTP status code.
Kayon considers any status code >= 200 and < 300 as healthy.

Specified by:
getStatus in interface HealthCheckHandler
Returns:
The health status of the application.