/** * Returns the current {@link org.fishwife.jrugged.Status} of the * {@link CircuitBreaker}. In this case, it really refers to the * status of the client service. If the * <code>CircuitBreaker</code> is CLOSED, we report that the * client is UP; if it is HALF_CLOSED, we report that the client * is DEGRADED; if it is OPEN, we report the client is DOWN. * * @return Status the current status of the breaker */ public Status getStatus() { return getServiceStatus().getStatus(); }
public ModelAndView handleRequest(HttpServletRequest req, HttpServletResponse resp) throws Exception { Status currentStatus = monitoredService.getServiceStatus().getStatus(); setResponseCode(currentStatus, resp); setAppropriateWarningHeaders(resp, currentStatus); setCachingHeaders(resp); writeOutCurrentStatusInResponseBody(resp, currentStatus); return null; }