public static HealthIndicatorStatus unhealthy(String name, Map<String, Object> attr) { return create(name, false, attr, null); }
public static HealthIndicatorStatus healthy(String name, Map<String, Object> attr) { return create(name, true, attr, null); }
public static HealthIndicatorStatus unhealthy(String name, Map<String, Object> attr, Throwable t) { return create(name, false, attr, t); }
public static HealthIndicatorStatus healthy(String name) { return create(name, true, Collections.<String, Object>emptyMap(), null); }
public static HealthIndicatorStatus unhealthy(String name) { return create(name, false, Collections.<String, Object>emptyMap(), null); }
public static HealthIndicatorStatus unhealthy(String name, Throwable t) { return create(name, false, Collections.<String, Object>emptyMap(), t); }
/** * * Create a healthy status * * @return a healthy status */ protected final HealthIndicatorStatus healthy() { return HealthIndicatorStatuses.create(getName(), true, Collections.<String, Object> emptyMap(), null); }
/** * * Create an unhealthy status * * @return a unhealthy status */ protected final HealthIndicatorStatus unhealthy(Map<String, Object> attr, Throwable t) { return HealthIndicatorStatuses.create(getName(), false, attr, t); }
/** * * Create an unhealthy status * * @return a unhealthy status */ protected final HealthIndicatorStatus unhealthy(Throwable t) { return HealthIndicatorStatuses.create(getName(), false, Collections.<String, Object> emptyMap(), t); }
/** * * Create a healthy status * * @param attr Map of the attributes describing status * @return a healthy status */ protected final HealthIndicatorStatus healthy(Map<String, Object> attr) { return HealthIndicatorStatuses.create(getName(), true, attr, null); }
/** * * Create an unhealthy status * * @return a unhealthy status */ protected final HealthIndicatorStatus unhealthy() { return HealthIndicatorStatuses.create(getName(), false, Collections.<String, Object> emptyMap(), null); }
/** * * Create an unhealthy status * * @return a unhealthy status */ protected final HealthIndicatorStatus unhealthy(Map<String, Object> attr) { return HealthIndicatorStatuses.create(getName(), false, attr, null); }