private static void serializeCounter(DataOutput out, QueryScopeInfo info, String name, Counter counter) throws IOException { long count = counter.getCount(); serializeMetricInfo(out, info); out.writeUTF(name); out.writeLong(count); }
private static void serializeCounter(DataOutput out, QueryScopeInfo info, String name, Counter counter) throws IOException { long count = counter.getCount(); serializeMetricInfo(out, info); out.writeUTF(name); out.writeLong(count); }
private static void serializeMeter(DataOutput out, QueryScopeInfo info, String name, Meter meter) throws IOException { serializeMetricInfo(out, info); out.writeUTF(name); out.writeDouble(meter.getRate()); }
private static void serializeMeter(DataOutput out, QueryScopeInfo info, String name, Meter meter) throws IOException { serializeMetricInfo(out, info); out.writeUTF(name); out.writeDouble(meter.getRate()); }
private static void serializeGauge(DataOutput out, QueryScopeInfo info, String name, Gauge<?> gauge) throws IOException { Object value = gauge.getValue(); if (value == null) { throw new NullPointerException("Value returned by gauge " + name + " was null."); } String stringValue = value.toString(); if (stringValue == null) { throw new NullPointerException("toString() of the value returned by gauge " + name + " returned null."); } serializeMetricInfo(out, info); out.writeUTF(name); out.writeUTF(stringValue); }
private static void serializeCounter(DataOutput out, QueryScopeInfo info, String name, Counter counter) throws IOException { long count = counter.getCount(); serializeMetricInfo(out, info); out.writeUTF(name); out.writeLong(count); }
private static void serializeMeter(DataOutput out, QueryScopeInfo info, String name, Meter meter) throws IOException { serializeMetricInfo(out, info); out.writeUTF(name); out.writeDouble(meter.getRate()); }
private static void serializeMeter(DataOutput out, QueryScopeInfo info, String name, Meter meter) throws IOException { serializeMetricInfo(out, info); out.writeUTF(name); out.writeDouble(meter.getRate()); }
private static void serializeCounter(DataOutput out, QueryScopeInfo info, String name, Counter counter) throws IOException { long count = counter.getCount(); serializeMetricInfo(out, info); out.writeUTF(name); out.writeLong(count); }
private static void serializeGauge(DataOutput out, QueryScopeInfo info, String name, Gauge<?> gauge) throws IOException { Object value = gauge.getValue(); if (value == null) { throw new NullPointerException("Value returned by gauge " + name + " was null."); } String stringValue = value.toString(); if (stringValue == null) { throw new NullPointerException("toString() of the value returned by gauge " + name + " returned null."); } serializeMetricInfo(out, info); out.writeUTF(name); out.writeUTF(stringValue); }
private static void serializeGauge(DataOutput out, QueryScopeInfo info, String name, Gauge<?> gauge) throws IOException { Object value = gauge.getValue(); if (value == null) { throw new NullPointerException("Value returned by gauge " + name + " was null."); } String stringValue = value.toString(); if (stringValue == null) { throw new NullPointerException("toString() of the value returned by gauge " + name + " returned null."); } serializeMetricInfo(out, info); out.writeUTF(name); out.writeUTF(stringValue); }
private static void serializeGauge(DataOutput out, QueryScopeInfo info, String name, Gauge<?> gauge) throws IOException { Object value = gauge.getValue(); if (value == null) { throw new NullPointerException("Value returned by gauge " + name + " was null."); } String stringValue = gauge.getValue().toString(); if (stringValue == null) { throw new NullPointerException("toString() of the value returned by gauge " + name + " returned null."); } serializeMetricInfo(out, info); out.writeUTF(name); out.writeUTF(stringValue); }
private static void serializeHistogram(DataOutput out, QueryScopeInfo info, String name, Histogram histogram) throws IOException { HistogramStatistics stat = histogram.getStatistics(); long min = stat.getMin(); long max = stat.getMax(); double mean = stat.getMean(); double median = stat.getQuantile(0.5); double stddev = stat.getStdDev(); double p75 = stat.getQuantile(0.75); double p90 = stat.getQuantile(0.90); double p95 = stat.getQuantile(0.95); double p98 = stat.getQuantile(0.98); double p99 = stat.getQuantile(0.99); double p999 = stat.getQuantile(0.999); serializeMetricInfo(out, info); out.writeUTF(name); out.writeLong(min); out.writeLong(max); out.writeDouble(mean); out.writeDouble(median); out.writeDouble(stddev); out.writeDouble(p75); out.writeDouble(p90); out.writeDouble(p95); out.writeDouble(p98); out.writeDouble(p99); out.writeDouble(p999); }
private static void serializeHistogram(DataOutput out, QueryScopeInfo info, String name, Histogram histogram) throws IOException { HistogramStatistics stat = histogram.getStatistics(); long min = stat.getMin(); long max = stat.getMax(); double mean = stat.getMean(); double median = stat.getQuantile(0.5); double stddev = stat.getStdDev(); double p75 = stat.getQuantile(0.75); double p90 = stat.getQuantile(0.90); double p95 = stat.getQuantile(0.95); double p98 = stat.getQuantile(0.98); double p99 = stat.getQuantile(0.99); double p999 = stat.getQuantile(0.999); serializeMetricInfo(out, info); out.writeUTF(name); out.writeLong(min); out.writeLong(max); out.writeDouble(mean); out.writeDouble(median); out.writeDouble(stddev); out.writeDouble(p75); out.writeDouble(p90); out.writeDouble(p95); out.writeDouble(p98); out.writeDouble(p99); out.writeDouble(p999); }
private static void serializeHistogram(DataOutput out, QueryScopeInfo info, String name, Histogram histogram) throws IOException { HistogramStatistics stat = histogram.getStatistics(); long min = stat.getMin(); long max = stat.getMax(); double mean = stat.getMean(); double median = stat.getQuantile(0.5); double stddev = stat.getStdDev(); double p75 = stat.getQuantile(0.75); double p90 = stat.getQuantile(0.90); double p95 = stat.getQuantile(0.95); double p98 = stat.getQuantile(0.98); double p99 = stat.getQuantile(0.99); double p999 = stat.getQuantile(0.999); serializeMetricInfo(out, info); out.writeUTF(name); out.writeLong(min); out.writeLong(max); out.writeDouble(mean); out.writeDouble(median); out.writeDouble(stddev); out.writeDouble(p75); out.writeDouble(p90); out.writeDouble(p95); out.writeDouble(p98); out.writeDouble(p99); out.writeDouble(p999); }
private static void serializeHistogram(DataOutput out, QueryScopeInfo info, String name, Histogram histogram) throws IOException { HistogramStatistics stat = histogram.getStatistics(); long min = stat.getMin(); long max = stat.getMax(); double mean = stat.getMean(); double median = stat.getQuantile(0.5); double stddev = stat.getStdDev(); double p75 = stat.getQuantile(0.75); double p90 = stat.getQuantile(0.90); double p95 = stat.getQuantile(0.95); double p98 = stat.getQuantile(0.98); double p99 = stat.getQuantile(0.99); double p999 = stat.getQuantile(0.999); serializeMetricInfo(out, info); out.writeUTF(name); out.writeLong(min); out.writeLong(max); out.writeDouble(mean); out.writeDouble(median); out.writeDouble(stddev); out.writeDouble(p75); out.writeDouble(p90); out.writeDouble(p95); out.writeDouble(p98); out.writeDouble(p99); out.writeDouble(p999); }