main/src/main/java/org/onap/policy/pap/main/rest/HealthCheckProvider.java
/**
     * Performs the health check of PAP service.
     *
     * @return Report containing health check status
     */
Performs the health check of PAP service.
@return Report containing health check status
Performs the health check of PAP service . @return Report containing health check status
public HealthCheckReport performHealthCheck() {
        final HealthCheckReport report = new HealthCheckReport();
        report.setName(NAME);
        report.setUrl(URL);
        boolean alive = Registry.get(PapConstants.REG_PAP_ACTIVATOR, PapActivator.class).isAlive();
        report.setHealthy(alive);
        report.setCode(alive ? 200 : 500);
        report.setMessage(alive ? ALIVE : NOT_ALIVE);
        return report;
    }
public HealthCheckReport performHealthCheck ( ) { final HealthCheckReport report = new HealthCheckReport ( ) ; report . setName ( NAME ) ; report . setUrl ( URL ) ; boolean alive = Registry . get ( PapConstants . REG_PAP_ACTIVATOR , PapActivator . class ) . isAlive ( ) ; report . setHealthy ( alive ) ; report . setCode ( alive ? 200 : 500 ) ; report . setMessage ( alive ? ALIVE : NOT_ALIVE ) ; return report ; }
Performs the health check of PAP service.
Performs the health check of PAP service .