Interface OpcConnectionManager
- 
- All Superinterfaces:
- ExtensionPointManager
 
 public interface OpcConnectionManager extends ExtensionPointManager ManagesOpcConnectioninstances and provides an interface to read, write, browse, and subscribe to OPC values via those connections.
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description java.util.List<OPCBrowseElement>browse(ServerNodeId nodeId)Browse the nodes immediately under the given nodeOpcSubscriptioncreateSubscription(java.lang.String connectionName, java.lang.String subscriptionName, PropertySet properties)Create anOpcSubscriptionon the named connection.voiddeleteSubscription(OpcSubscription subscription)Delete anOpcSubscription.OpcConnectiongetConnection(java.lang.String name)java.util.List<OpcConnection>getConnections()Returns all registered connections.default OpcConnection.StategetConnectionState(java.lang.String name)Returns theOpcConnection.Stateof a named connection.java.util.List<OpcConnectionType>getExtensionPoints()OpcSubscriptionModelgetSubscriptionModel()Get theOpcSubscriptionModel.java.util.List<QualifiedValue>read(java.util.List<ServerNodeId> nodes)Reads the values addressed by the given nodesjava.util.concurrent.CompletableFuture<java.lang.Void>registerConnectionType(OpcConnectionType type)Register aOpcConnectionTypethat provides a new kind ofOpcConnection.java.util.concurrent.CompletableFuture<java.lang.Void>unregisterConnectionType(OpcConnectionType type)Unregister a previously-registeredOpcConnectionType.java.util.List<QualityCode>write(java.util.List<OPCWriteRequest> values)Writes the values to their node ids- 
Methods inherited from interface com.inductiveautomation.ignition.gateway.model.ExtensionPointManagergetExtensionPoint
 
- 
 
- 
- 
- 
Method Detail- 
getConnection@Nullable OpcConnection getConnection(java.lang.String name) - Parameters:
- name- the name or alias for the- OpcConnection.
- Returns:
- the OpcConnectionidentified byname, ornullif none exists.
 
 - 
getConnectionsjava.util.List<OpcConnection> getConnections() Returns all registered connections.
 - 
getConnectionStatedefault OpcConnection.State getConnectionState(java.lang.String name) Returns theOpcConnection.Stateof a named connection.If the connection does not exist OpcConnection.State.UNKNOWNwill be returned.- Parameters:
- name- the name of the connection.
- Returns:
- the connection OpcConnection.State, orOpcConnection.State.UNKNOWNif the connection doesn't exist.
 
 - 
createSubscriptionOpcSubscription createSubscription(java.lang.String connectionName, java.lang.String subscriptionName, PropertySet properties) throws java.lang.Exception Create anOpcSubscriptionon the named connection.- Parameters:
- connectionName- the name of the- OpcConnection.
- subscriptionName- the name to assign the- OpcSubscription.
- properties- a- PropertySetcontaining additional properties that a subscription may need to configure itself.
- Returns:
- an OpcSubscription.
- Throws:
- java.lang.Exception- if a subscription by- subscriptionNamealready exists on the named connection.
 
 - 
deleteSubscriptionvoid deleteSubscription(OpcSubscription subscription) Delete anOpcSubscription.- Parameters:
- subscription- the- OpcSubscriptionto delete.
 
 - 
readjava.util.List<QualifiedValue> read(java.util.List<ServerNodeId> nodes) Reads the values addressed by the given nodes
 - 
writejava.util.List<QualityCode> write(java.util.List<OPCWriteRequest> values) Writes the values to their node ids
 - 
browsejava.util.List<OPCBrowseElement> browse(ServerNodeId nodeId) throws java.lang.Exception Browse the nodes immediately under the given node- Throws:
- java.lang.Exception
 
 - 
registerConnectionTypejava.util.concurrent.CompletableFuture<java.lang.Void> registerConnectionType(OpcConnectionType type) throws java.lang.Exception Register aOpcConnectionTypethat provides a new kind ofOpcConnection.- Returns:
- a CompletableFuturethat completes when any existing instances of the registered type have finished shutting down and new instances have finished starting up.
- Throws:
- java.lang.Exception
 
 - 
unregisterConnectionTypejava.util.concurrent.CompletableFuture<java.lang.Void> unregisterConnectionType(OpcConnectionType type) throws java.lang.Exception Unregister a previously-registeredOpcConnectionType.- Returns:
- a CompletableFuturethat completes when existing instances of the unregistered type have finished shutting down.
- Throws:
- java.lang.Exception
 
 - 
getSubscriptionModelOpcSubscriptionModel getSubscriptionModel() Get theOpcSubscriptionModel.This is the same instance provided to connections in OpcConnection.startup(OpcSubscriptionModel).- Returns:
- the OpcSubscriptionModel.
 
 - 
getExtensionPointsjava.util.List<OpcConnectionType> getExtensionPoints() - Specified by:
- getExtensionPointsin interface- ExtensionPointManager
- Returns:
- all ExtensionPointTypes managed by thisExtensionPointManager.
 
 
- 
 
-