public String toFullString() { return _groupId + '/' + _artifactId + '/' + toString(); }
public String toFullString() { return _groupId + '/' + _artifactId + '/' + toString(); }
public String toFullString() { return _groupId + '/' + _artifactId + '/' + toString(); }
public String toFullString() { return _groupId + '/' + _artifactId + '/' + toString(); }
public String toFullString() { return _groupId + '/' + _artifactId + '/' + toString(); }
public String toFullString() { return _groupId + '/' + _artifactId + '/' + toString(); }
@Override public void serialize(MetricRegistry registry, JsonGenerator json, SerializerProvider provider) throws IOException { json.writeStartObject(); json.writeStringField("version", VERSION.toString()); json.writeObjectField("gauges", registry.getGauges()); json.writeObjectField("counters", registry.getCounters()); json.writeObjectField("histograms", registry.getHistograms()); json.writeObjectField("meters", registry.getMeters()); json.writeObjectField("timers", registry.getTimers()); json.writeEndObject(); } }
@Override public void serialize(MetricRegistry registry, JsonGenerator json, SerializerProvider provider) throws IOException { json.writeStartObject(); json.writeStringField("version", VERSION.toString()); json.writeObjectField("gauges", registry.getGauges(filter)); json.writeObjectField("counters", registry.getCounters(filter)); json.writeObjectField("histograms", registry.getHistograms(filter)); json.writeObjectField("meters", registry.getMeters(filter)); json.writeObjectField("timers", registry.getTimers(filter)); json.writeEndObject(); } }
@Override public void serialize(MeterRegistry registry, JsonGenerator json, SerializerProvider provider) throws IOException { json.writeStartObject(); json.writeStringField("version", VERSION.toString()); json.writeObjectField("gauges", meters(registry, Gauge.class, matchingNames, matchingTags)); json.writeObjectField("counters", meters(registry, Counter.class, matchingNames, matchingTags)); json.writeObjectField("functionCounters", meters(registry, FunctionCounter.class, matchingNames, matchingTags)); json.writeObjectField("timers", meters(registry, Timer.class, matchingNames, matchingTags)); json.writeObjectField("functionTimers", meters(registry, FunctionTimer.class, matchingNames, matchingTags)); json.writeObjectField("longTaskTimers", meters(registry, LongTaskTimer.class, matchingNames, matchingTags)); json.writeObjectField("distributionSummaries", meters(registry, DistributionSummary.class, matchingNames, matchingTags)); json.writeEndObject(); }
@Override public void serialize(MetricRegistry registry, JsonGenerator json, SerializerProvider provider) throws IOException { json.writeStartObject(); json.writeStringField("name", registry.getName()); json.writeStringField("version", VERSION.toString()); json.writeObjectField("gauges", registry.getGauges()); json.writeObjectField("counters", registry.getCounters()); json.writeObjectField("histograms", registry.getHistograms()); json.writeObjectField("meters", registry.getMeters()); json.writeObjectField("timers", registry.getTimers()); json.writeEndObject(); } }
private void checkJacksonVersion() { int neededMajor = 2; int neededMinor = 9; int currentMajor = this.version().getMajorVersion(); int currentMinor = this.version().getMinorVersion(); if (currentMajor < neededMajor || (currentMajor == neededMajor && currentMinor < neededMinor)) { throw new RuntimeException( String.format("iiif-apis requires Jackson >= 2.9.0. The version on your classpath is %s", this.version().toString())); } }