Interface OpcConnectionManager
- All Superinterfaces:
- ExtensionPointManager
Manages 
OpcConnection instances and provides an interface to read, write, browse,
 and subscribe to OPC values via those connections.- 
Method SummaryModifier and TypeMethodDescriptionbrowse(ServerNodeId nodeId) Browse the nodes immediately under the given nodecreateSubscription(String connectionName, String subscriptionName, PropertySet properties) Create anOpcSubscriptionon the named connection.voiddeleteSubscription(OpcSubscription subscription) Delete anOpcSubscription.getConnection(String name) Returns all registered connections.default OpcConnection.StategetConnectionState(String name) Returns theOpcConnection.Stateof a named connection.Get theOpcSubscriptionModel.read(List<ServerNodeId> nodes) Reads the values addressed by the given nodesRegister aOpcConnectionTypethat provides a new kind ofOpcConnection.Unregister a previously-registeredOpcConnectionType.write(List<OPCWriteRequest> values) Writes the values to their node idsMethods inherited from interface com.inductiveautomation.ignition.gateway.model.ExtensionPointManagergetExtensionPoint
- 
Method Details- 
getConnection- Parameters:
- name- the name or alias for the- OpcConnection.
- Returns:
- the OpcConnectionidentified byname, ornullif none exists.
 
- 
getConnectionsList<OpcConnection> getConnections()Returns all registered connections.
- 
getConnectionStateReturns 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(String connectionName, String subscriptionName, PropertySet properties) throws 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:
- Exception- if a subscription by- subscriptionNamealready exists on the named connection.
 
- 
deleteSubscriptionDelete anOpcSubscription.- Parameters:
- subscription- the- OpcSubscriptionto delete.
 
- 
readReads the values addressed by the given nodes
- 
writeWrites the values to their node ids
- 
browseBrowse the nodes immediately under the given node- Throws:
- Exception
 
- 
registerConnectionTypeRegister 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:
- Exception
 
- 
unregisterConnectionTypeUnregister a previously-registeredOpcConnectionType.- Returns:
- a CompletableFuturethat completes when existing instances of the unregistered type have finished shutting down.
- Throws:
- Exception
 
- 
getSubscriptionModelOpcSubscriptionModel getSubscriptionModel()Get theOpcSubscriptionModel.This is the same instance provided to connections in OpcConnection.startup(OpcSubscriptionModel).- Returns:
- the OpcSubscriptionModel.
 
- 
getExtensionPointsList<OpcConnectionType> getExtensionPoints()- Specified by:
- getExtensionPointsin interface- ExtensionPointManager
- Returns:
- all ExtensionPointTypes managed by thisExtensionPointManager.
 
 
-