Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,12 @@ public static Collection<HealthCheck.Result> invoke(CamelContext camelContext) {
/**
* Invokes all the checks and returns a collection of results.
*
* @param camelContext the camel context
* @param camelContext the camel context
* @param exposureLevel level of exposure (full, oneline or default)
*/
public static Collection<HealthCheck.Result> invoke(CamelContext camelContext, String exposureLevel) {
return invoke(camelContext, check -> Map.of(HealthCheck.CHECK_KIND, HealthCheck.Kind.ALL), check -> false, exposureLevel);
return invoke(camelContext, check -> Map.of(HealthCheck.CHECK_KIND, HealthCheck.Kind.ALL), check -> false,
exposureLevel);
}

/**
Expand All @@ -72,7 +73,7 @@ public static Collection<HealthCheck.Result> invokeReadiness(CamelContext camelC
/**
* Invokes the readiness checks and returns a collection of results.
*
* @param camelContext the camel context
* @param camelContext the camel context
* @param exposureLevel level of exposure (full, oneline or default)
*/
public static Collection<HealthCheck.Result> invokeReadiness(CamelContext camelContext, String exposureLevel) {
Expand All @@ -91,7 +92,7 @@ public static Collection<HealthCheck.Result> invokeLiveness(CamelContext camelCo
/**
* Invokes the liveness checks and returns a collection of results.
*
* @param camelContext the camel context
* @param camelContext the camel context
* @param exposureLevel level of exposure (full, oneline or default)
*/
public static Collection<HealthCheck.Result> invokeLiveness(CamelContext camelContext, String exposureLevel) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
import java.io.PrintWriter;
import java.io.StringWriter;
import java.util.Collection;
import java.util.Comparator;
import java.util.Map;
import java.util.stream.Stream;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
import java.lang.management.MemoryMXBean;
import java.lang.management.RuntimeMXBean;
import java.lang.management.ThreadMXBean;
import java.util.Collection;
import java.util.List;
import java.util.Locale;
import java.util.Map;
Expand All @@ -40,9 +39,6 @@
import org.apache.camel.ExtendedCamelContext;
import org.apache.camel.Route;
import org.apache.camel.console.DevConsole;
import org.apache.camel.health.HealthCheck;
import org.apache.camel.health.HealthCheckHelper;
import org.apache.camel.health.HealthCheckRegistry;
import org.apache.camel.spi.CliConnector;
import org.apache.camel.spi.CliConnectorFactory;
import org.apache.camel.support.PatternHelper;
Expand Down