Package com.fasterxml.clustermate.service.metrics

Examples of com.fasterxml.clustermate.service.metrics.SerializedMetrics


            // or, enable/disable indentation explicitly
            String indentStr = request.getQueryParameter(QUERY_PARAM_INDENT);
            if (indentStr != null && indentStr.length() > 0) {
                indent = Boolean.valueOf(indentStr.trim());
            }
            SerializedMetrics ser = _accessor.getMetrics(forceRefresh, full);
            response = (ServletServiceResponse) response.ok()
                    .setContentTypeJson();
            response.writeRaw(indent ? ser.getIndented() : ser.getRaw());
        } catch (Exception e) {
            String msg = "Failed to serialize Metrics: "+e;
            LOG.warn(msg, e);
            response = (ServletServiceResponse) response
                .internalError(msg)
View Full Code Here


            // or, enable/disable indentation explicitly
            String indentStr = request.getQueryParameter(QUERY_PARAM_INDENT);
            if (indentStr != null && indentStr.length() > 0) {
                indent = Boolean.valueOf(indentStr.trim());
            }
            SerializedMetrics ser = _accessor.getMetrics(forceRefresh, full);
            response = (ServletServiceResponse) response.ok()
                    .setContentTypeJson();
            response.writeRaw(indent ? ser.getIndented() : ser.getRaw());
        } catch (Exception e) {
            String msg = "Failed to serialize Metrics: "+e;
            LOG.warn(msg, e);
            response = (ServletServiceResponse) response
                .internalError(msg)
View Full Code Here

            // or, enable/disable indentation explicitly
            String indentStr = request.getQueryParameter(QUERY_PARAM_INDENT);
            if (indentStr != null && indentStr.length() > 0) {
                indent = Boolean.valueOf(indentStr.trim());
            }
            SerializedMetrics ser = _accessor.getMetrics(forceRefresh, full);
            response = (ServletServiceResponse) response.ok()
                    .setContentTypeJson();
            response.writeRaw(indent ? ser.getIndented() : ser.getRaw());
        } catch (Exception e) {
            String msg = "Failed to serialize Metrics: "+e;
            LOG.warn(msg, e);
            response = (ServletServiceResponse) response
                .internalError(msg)
View Full Code Here

TOP

Related Classes of com.fasterxml.clustermate.service.metrics.SerializedMetrics

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.