You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@plc4x.apache.org by GitBox <gi...@apache.org> on 2019/04/10 09:44:01 UTC

[GitHub] [incubator-plc4x] chrisdutz commented on a change in pull request #59: Feature/alternate plc4 x 108

chrisdutz commented on a change in pull request #59: Feature/alternate plc4 x 108
URL: https://github.com/apache/incubator-plc4x/pull/59#discussion_r273874554
 
 

 ##########
 File path: plc4j/protocols/driver-bases/base/src/main/java/org/apache/plc4x/java/base/connection/AbstractPlcConnection.java
 ##########
 @@ -43,15 +38,18 @@ Licensed to the Apache Software Foundation (ASF) under one
  */
 public abstract class AbstractPlcConnection implements PlcConnection, PlcConnectionMetadata {
 
-    private static final Logger LOGGER = LoggerFactory.getLogger(AbstractPlcConnection.class);
-
-    private static final int PING_TIMEOUT_MS = 1_000;
-
     @Override
     public PlcConnectionMetadata getMetadata() {
         return this;
     }
 
+    @Override
+    public CompletableFuture<Void> ping() {
+        CompletableFuture<Void> future = new CompletableFuture<>();
+        future.completeExceptionally(new PlcUnsupportedOperationException("The connection does not support pinging"));
 
 Review comment:
   Argh ... was looking for something like that ... strangely I must have missed it :-) ... of course ... will update that.

----------------------------------------------------------------
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