You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@plc4x.apache.org by sk...@apache.org on 2018/10/26 12:18:43 UTC

[incubator-plc4x] 01/04: added metadata interface

This is an automated email from the ASF dual-hosted git repository.

skorikov pushed a commit to branch feature/connection-metadata
in repository https://gitbox.apache.org/repos/asf/incubator-plc4x.git

commit 6565175ac08c812b667f92540299ea82cdbaaaed
Author: Andrey Skorikov <an...@codecentric.de>
AuthorDate: Fri Oct 26 11:52:37 2018 +0200

    added metadata interface
---
 .../java/api/metadata/PlcConnectionMetadata.java   | 24 ++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/plc4j/api/src/main/java/org/apache/plc4x/java/api/metadata/PlcConnectionMetadata.java b/plc4j/api/src/main/java/org/apache/plc4x/java/api/metadata/PlcConnectionMetadata.java
new file mode 100644
index 0000000..c434fc7
--- /dev/null
+++ b/plc4j/api/src/main/java/org/apache/plc4x/java/api/metadata/PlcConnectionMetadata.java
@@ -0,0 +1,24 @@
+package org.apache.plc4x.java.api.metadata;
+
+/**
+ * Information about connection capabilities.
+ * This includes connection and driver specific metadata.
+ */
+public interface PlcConnectionMetadata {
+
+    /**
+     * Indicates that the connection supports reading.
+     */
+    boolean canRead();
+
+    /**
+     * Indicates that the connection supports writing.
+     */
+    boolean canWrite();
+
+    /**
+     * Indicates that the connection supports subscription.
+     */
+    boolean canSubscribe();
+
+}