Examples of PhoenixAbstractMetric


Examples of org.apache.phoenix.metrics.PhoenixAbstractMetric

              @Nullable
              public PhoenixAbstractMetric apply(@Nullable final AbstractMetric input) {
                if (input == null) {
                  return null;
                }
                return new PhoenixAbstractMetric() {

                  @Override
                  public Number value() {
                    return input.value();
                  }
View Full Code Here

Examples of org.apache.phoenix.metrics.PhoenixAbstractMetric

    public static PhoenixMetricsRecord createRecord(long traceid, long parentid, long spanid,
            String desc, long startTime, long endTime, String hostname, String... tags) {
        PhoenixMetricRecordImpl record =
                new PhoenixMetricRecordImpl(TracingCompat.getTraceMetricName(traceid), desc);
        PhoenixAbstractMetric span = new PhoenixMetricImpl(MetricInfo.SPAN.traceName, spanid);
        record.addMetric(span);

        PhoenixAbstractMetric parent = new PhoenixMetricImpl(MetricInfo.PARENT.traceName, parentid);
        record.addMetric(parent);

        PhoenixAbstractMetric start = new PhoenixMetricImpl(MetricInfo.START.traceName, startTime);
        record.addMetric(start);

        PhoenixAbstractMetric end = new PhoenixMetricImpl(MetricInfo.END.traceName, endTime);
        record.addMetric(end);

        int tagCount = 0;
        for (String annotation : tags) {
            PhoenixMetricTag tag =
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.