summaryrefslogtreecommitdiffstats
path: root/jrt
diff options
context:
space:
mode:
authorBjørn Christian Seime <bjorncs@verizonmedia.com>2019-01-29 14:48:52 +0100
committerBjørn Christian Seime <bjorncs@verizonmedia.com>2019-01-29 14:51:34 +0100
commit555b3b6473335dfd0931de5594918d36ea621339 (patch)
tree4058ff0af88971d3cde10d197d00e619854f3452 /jrt
parent7ab7ef084c10547ad1e3456144d769c53849d7e0 (diff)
Report values from initial snapshot
Initialize JrtMetrics with empty snapshot so that the values of the first real snapshot are reported.
Diffstat (limited to 'jrt')
-rw-r--r--jrt/src/com/yahoo/jrt/TransportMetrics.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/jrt/src/com/yahoo/jrt/TransportMetrics.java b/jrt/src/com/yahoo/jrt/TransportMetrics.java
index 507a925572f..70d5cbcea04 100644
--- a/jrt/src/com/yahoo/jrt/TransportMetrics.java
+++ b/jrt/src/com/yahoo/jrt/TransportMetrics.java
@@ -87,6 +87,8 @@ public class TransportMetrics {
}
public static class Snapshot {
+ public static final Snapshot EMPTY = new Snapshot(0, 0, 0, 0, 0, 0);
+
private final long tlsCertificateVerificationFailures;
private final long peerAuthorizationFailures;
private final long serverTlsConnectionsEstablished;