private boolean isApplicable() { return getContext().hasPlugin(VERTX_MAVEN_PLUGIN_GROUP, VERTX_MAVEN_PLUGIN_ARTIFACT) || getContext().hasDependency(VERTX_GROUPID, null); }
private Probe discoverThorntailHealthCheck(int initialDelay) { if (getContext().hasDependency(IO_THORNTAIL, "thorntail-kernel")) { // if there's thorntail-kernel, it's Thorntail v4 return null; } if (getContext().hasDependency(IO_THORNTAIL, "monitor") || getContext().hasDependency(IO_THORNTAIL, "microprofile-health")) { Integer port = getPort(); // scheme must be in upper case in k8s String scheme = getScheme().toUpperCase(); String path = getPath(); return new ProbeBuilder() .withNewHttpGet().withNewPort(port).withPath(path).withScheme(scheme).endHttpGet() .withFailureThreshold(getFailureThreshold()) .withSuccessThreshold(getSuccessThreshold()) .withInitialDelaySeconds(initialDelay).build(); } return null; }
private Probe discoverWildFlySwarmHealthCheck(int initialDelay) { if (getContext().hasDependency("org.wildfly.swarm", "monitor") || getContext().hasDependency("org.wildfly.swarm", "microprofile-health")) { Integer port = getPort(); // scheme must be in upper case in k8s String scheme = getScheme().toUpperCase(); String path = getPath(); // lets default to adding a wildfly swarm health check return new ProbeBuilder() .withNewHttpGet().withNewPort(port).withPath(path).withScheme(scheme).endHttpGet() .withFailureThreshold(getFailureThreshold()) .withSuccessThreshold(getSuccessThreshold()) .withInitialDelaySeconds(initialDelay).build(); } return null; }
ProjectClassLoaders cls = getContext().getProjectClassLoaders(); if (cls.isClassInCompileClasspath(false, "io.fabric8.funktion.runtime.Main") || getContext().hasDependency( "io.fabric8.funktion", null)) { return "funktion"; getContext().hasDependency( "org.wildfly.swarm", null)) { return "wildfly-swarm"; getContext().hasDependency( "io.thorntail", null)) {