Ejemplo n.º 1
0
 @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;
 }
Ejemplo n.º 2
0
 @Override
 public boolean isHealthCheckInitializing() {
   return instance != null
       && HealthcheckConstants.HEALTH_STATE_INITIALIZING.equals(instance.getHealthState());
 }