public interface OpcConnectionManager extends ExtensionPointManager
OpcConnection instances and provides an interface to read, write, browse,
and subscribe to OPC values via those connections.| Modifier and Type | Method and Description |
|---|---|
java.util.List<OPCBrowseElement> |
browse(ServerNodeId nodeId)
Browse the nodes immediately under the given node
|
OpcSubscription |
createSubscription(java.lang.String connectionName,
java.lang.String subscriptionName,
PropertySet properties)
Create an
OpcSubscription on the named connection. |
void |
deleteSubscription(OpcSubscription subscription)
Delete an
OpcSubscription. |
OpcConnection |
getConnection(java.lang.String name)
|
java.util.List<OpcConnection> |
getConnections()
Returns all registered connections.
|
default OpcConnection.State |
getConnectionState(java.lang.String name)
Returns the
OpcConnection.State of a named connection. |
java.util.List<OpcConnectionType> |
getExtensionPoints() |
OpcSubscriptionModel |
getSubscriptionModel()
Get the
OpcSubscriptionModel. |
java.util.List<QualifiedValue> |
read(java.util.List<ServerNodeId> nodes)
Reads the values addressed by the given nodes
|
java.util.concurrent.CompletableFuture<java.lang.Void> |
registerConnectionType(OpcConnectionType type)
Register a
OpcConnectionType that provides a new kind of OpcConnection. |
java.util.concurrent.CompletableFuture<java.lang.Void> |
unregisterConnectionType(OpcConnectionType type)
Unregister a previously-registered
OpcConnectionType. |
java.util.List<QualityCode> |
write(java.util.List<OPCWriteRequest> values)
Writes the values to their node ids
|
getExtensionPoint@Nullable OpcConnection getConnection(java.lang.String name)
name - the name or alias for the OpcConnection.OpcConnection identified by name, or null if none exists.java.util.List<OpcConnection> getConnections()
default OpcConnection.State getConnectionState(java.lang.String name)
OpcConnection.State of a named connection.
If the connection does not exist OpcConnection.State.UNKNOWN will be returned.
name - the name of the connection.OpcConnection.State, or OpcConnection.State.UNKNOWN if the connection doesn't exist.OpcSubscription createSubscription(java.lang.String connectionName, java.lang.String subscriptionName, PropertySet properties) throws java.lang.Exception
OpcSubscription on the named connection.connectionName - the name of the OpcConnection.subscriptionName - the name to assign the OpcSubscription.properties - a PropertySet containing additional properties that a subscription may need to
configure itself.OpcSubscription.java.lang.Exception - if a subscription by subscriptionName already exists on the named connection.void deleteSubscription(OpcSubscription subscription)
OpcSubscription.subscription - the OpcSubscription to delete.java.util.List<QualifiedValue> read(java.util.List<ServerNodeId> nodes)
java.util.List<QualityCode> write(java.util.List<OPCWriteRequest> values)
java.util.List<OPCBrowseElement> browse(ServerNodeId nodeId) throws java.lang.Exception
java.lang.Exceptionjava.util.concurrent.CompletableFuture<java.lang.Void> registerConnectionType(OpcConnectionType type) throws java.lang.Exception
OpcConnectionType that provides a new kind of OpcConnection.CompletableFuture that completes when any existing instances of the registered type have
finished shutting down and new instances have finished starting up.java.lang.Exceptionjava.util.concurrent.CompletableFuture<java.lang.Void> unregisterConnectionType(OpcConnectionType type) throws java.lang.Exception
OpcConnectionType.CompletableFuture that completes when existing instances of the unregistered type have
finished shutting down.java.lang.ExceptionOpcSubscriptionModel getSubscriptionModel()
OpcSubscriptionModel.
This is the same instance provided to connections in OpcConnection.startup(OpcSubscriptionModel).
OpcSubscriptionModel.java.util.List<OpcConnectionType> getExtensionPoints()
getExtensionPoints in interface ExtensionPointManagerExtensionPointTypes managed by this ExtensionPointManager.