Browse Source

Add missing get for totalOutboundConnections (#88234)

- Have you signed the [contributor license agreement](https://www.elastic.co/contributor-agreement)? *YES*
- Have you followed the [contributor guidelines](https://github.com/elastic/elasticsearch/blob/master/CONTRIBUTING.md)? *YES*
- If submitting code, have you built your formula locally prior to submission with `gradle check`? *YES*
- If submitting code, is your pull request against master? Unless there is a good reason otherwise, we prefer pull requests against master and will backport as needed. *YES*
- If submitting code, have you checked that your submission is for an [OS and architecture that we support](https://www.elastic.co/support/matrix#show_os)? *YES*
Gabi Davar 3 years ago
parent
commit
5fb143deb5

+ 8 - 0
server/src/main/java/org/elasticsearch/transport/TransportStats.java

@@ -103,6 +103,14 @@ public class TransportStats implements Writeable, ToXContentFragment {
         return serverOpen();
     }
 
+    public long totalOutboundConnections() {
+        return this.totalOutboundConnections;
+    }
+
+    public long getTotalOutboundConnections() {
+        return totalOutboundConnections();
+    }
+
     public long rxCount() {
         return rxCount;
     }