org.jboss.pnc.environmentdriver.endpoints.ServiceHealth Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of environment-driver Show documentation
Show all versions of environment-driver Show documentation
Environment driver provides REST endpoints to create and destroy Openshift objects
package org.jboss.pnc.environmentdriver.endpoints;
import javax.enterprise.context.ApplicationScoped;
import org.eclipse.microprofile.health.HealthCheck;
import org.eclipse.microprofile.health.HealthCheckResponse;
import org.eclipse.microprofile.health.Liveness;
import org.eclipse.microprofile.health.Readiness;
/**
* @author Matej Lazar
*/
@Liveness
@Readiness
@ApplicationScoped
public class ServiceHealth implements HealthCheck {
@Override
public HealthCheckResponse call() {
return HealthCheckResponse.up("Running.");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy