From 9c89270400d122d6ea1db5899b72fd8a9af62e86 Mon Sep 17 00:00:00 2001 From: chrisrohr <51920+chrisrohr@users.noreply.github.com> Date: Mon, 14 Dec 2020 14:54:56 -0500 Subject: [PATCH] Fix table javadoc in MonitoredJobHealthCheck --- .../util/health/MonitoredJobHealthCheck.java | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/src/main/java/org/kiwiproject/dropwizard/util/health/MonitoredJobHealthCheck.java b/src/main/java/org/kiwiproject/dropwizard/util/health/MonitoredJobHealthCheck.java index 97d06565..526a2579 100644 --- a/src/main/java/org/kiwiproject/dropwizard/util/health/MonitoredJobHealthCheck.java +++ b/src/main/java/org/kiwiproject/dropwizard/util/health/MonitoredJobHealthCheck.java @@ -1,5 +1,15 @@ package org.kiwiproject.dropwizard.util.health; +import static com.google.common.base.Preconditions.checkArgument; +import static java.util.Objects.isNull; +import static org.kiwiproject.base.KiwiPreconditions.requireNotNull; +import static org.kiwiproject.base.KiwiStrings.f; +import static org.kiwiproject.metrics.health.HealthCheckResults.newResultBuilder; +import static org.kiwiproject.metrics.health.HealthCheckResults.newUnhealthyResult; +import static org.kiwiproject.metrics.health.HealthCheckResults.newUnhealthyResultBuilder; + +import java.time.Instant; + import com.codahale.metrics.health.HealthCheck; import com.google.common.annotations.VisibleForTesting; import io.dropwizard.util.Duration; @@ -11,20 +21,13 @@ import org.kiwiproject.base.KiwiEnvironment; import org.kiwiproject.dropwizard.util.job.MonitoredJob; -import java.time.Instant; - -import static com.google.common.base.Preconditions.checkArgument; -import static java.util.Objects.isNull; -import static org.kiwiproject.base.KiwiPreconditions.requireNotNull; -import static org.kiwiproject.base.KiwiStrings.f; -import static org.kiwiproject.metrics.health.HealthCheckResults.*; - /** * Health check that monitors a {@link MonitoredJob} to ensure that it is running on schedule and not encountering * errors while running. *

* Builder Parameters: * + * * * *
Monitored Job Health Check Builder Params
NameDefault