ignite-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [ignite] alex-plekhanov commented on a change in pull request #6898: IGNITE-12211: Client connections system view
Date Tue, 24 Sep 2019 16:00:54 GMT
alex-plekhanov commented on a change in pull request #6898: IGNITE-12211: Client connections
system view
URL: https://github.com/apache/ignite/pull/6898#discussion_r327694183
 
 

 ##########
 File path: modules/core/src/test/java/org/apache/ignite/internal/metric/JmxExporterSpiTest.java
 ##########
 @@ -298,6 +308,53 @@ public void testComputeBroadcast() throws Exception {
         barrier.await();
     }
 
+    /** */
+    @Test
+    public void testClientsConnections() throws Exception {
+        String host = ignite.configuration().getClientConnectorConfiguration().getHost();
+
+        if (host == null)
+            host = ignite.configuration().getLocalHost();
+
+        int port = ignite.configuration().getClientConnectorConfiguration().getPort();
+
+        try (IgniteClient client =
+                 Ignition.startClient(new ClientConfiguration().setAddresses(host + ":" +
port))) {
+
+            try (Connection conn =
+                     new IgniteJdbcThinDriver().connect("jdbc:ignite:thin://" + host, new
Properties())) {
+
 
 Review comment:
   Redundant NL

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message