use of se.inera.intyg.webcert.web.service.monitoring.dto.HealthStatus in project webcert by sklintyg.
the class HealthCheckApiController method checkUptime.
@GET
@Path("/uptime")
@Produces(MediaType.APPLICATION_XML)
public Response checkUptime() {
HealthStatus status = healthCheck.checkUptime();
String xmlResponse = buildXMLResponse(status);
return Response.ok(xmlResponse).build();
}
use of se.inera.intyg.webcert.web.service.monitoring.dto.HealthStatus in project webcert by sklintyg.
the class HealthCheckApiController method checkDB.
@GET
@Path("/db")
@Produces(MediaType.APPLICATION_XML)
public Response checkDB() {
HealthStatus status = healthCheck.checkDB();
String xmlResponse = buildXMLResponse(status);
return Response.ok(xmlResponse).build();
}
use of se.inera.intyg.webcert.web.service.monitoring.dto.HealthStatus in project webcert by sklintyg.
the class HealthCheckApiController method checkSignatureQueue.
@GET
@Path("/signature-queue")
@Produces(MediaType.APPLICATION_XML)
public Response checkSignatureQueue() {
HealthStatus status = healthCheck.checkSignatureQueue();
String xmlResponse = buildXMLResponse(status);
return Response.ok(xmlResponse).build();
}
use of se.inera.intyg.webcert.web.service.monitoring.dto.HealthStatus in project webcert by sklintyg.
the class HealthCheckServiceImpl method checkIntygstjanst.
@Override
public HealthStatus checkIntygstjanst() {
Stopwatch stopWatch = Stopwatch.createStarted();
boolean ok = pingIntygstjanst();
stopWatch.stop();
HealthStatus status = createStatusWithTiming(ok, stopWatch);
logStatus("pingIntygstjanst", status);
return status;
}
use of se.inera.intyg.webcert.web.service.monitoring.dto.HealthStatus in project webcert by sklintyg.
the class HealthCheckServiceImpl method checkJMS.
@Override
public HealthStatus checkJMS() {
Stopwatch stopWatch = Stopwatch.createStarted();
boolean ok = checkJmsConnection();
stopWatch.stop();
HealthStatus status = createStatusWithTiming(ok, stopWatch);
logStatus("getJMSStatus", status);
return status;
}
Aggregations