Package com.betfair.tornjak.monitor

Examples of com.betfair.tornjak.monitor.StatusAggregator


        if (monitorRegistry == null) {
            logger.log(Level.SEVERE, "MonitorRegistry is null");
            throw new HealthException(ResponseCode.InternalError, HealthExceptionErrorCodeEnum.NULL);
        }
        StatusAggregator agg = monitorRegistry.getStatusAggregator();
        if (agg == null) {
            logger.log(Level.SEVERE, "StatusAggregator is null");
            throw new HealthException(ResponseCode.InternalError, HealthExceptionErrorCodeEnum.NULL);
        }
        Status status = agg.getStatus();
        if (status == null) {
            logger.log(Level.SEVERE, "Status is null");
            throw new HealthException(ResponseCode.InternalError, HealthExceptionErrorCodeEnum.NULL);
        }
        if (status.equals(Status.FAIL)) {
View Full Code Here


                return "text/html";
            }

            public void render(Map model, HttpServletRequest request,
                               HttpServletResponse response) throws Exception {
                StatusAggregator sa = monitorRegistry.getStatusAggregator();
                Status status = (sa == null) ? FAIL : sa.getStatus();
                // webping only supports OK or FAIL response
                if (status == WARN) {
                    status = OK;
                }
                response.getWriter().print(webping.replace("${status}", status.name()));
View Full Code Here

TOP

Related Classes of com.betfair.tornjak.monitor.StatusAggregator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.