@Override public boolean isUnhealthy() { if (instance != null) { return instance.getHealthState() != null && (instance .getHealthState() .equalsIgnoreCase(HealthcheckConstants.HEALTH_STATE_UNHEALTHY) || instance .getHealthState() .equalsIgnoreCase(HealthcheckConstants.HEALTH_STATE_UPDATING_UNHEALTHY)); } return false; }
@Override public boolean isHealthCheckInitializing() { return instance != null && HealthcheckConstants.HEALTH_STATE_INITIALIZING.equals(instance.getHealthState()); }