Package org.apache.plc4x.java.api
Interface PlcConnectionManager
-
- All Known Implementing Classes:
DefaultPlcDriverManager
public interface PlcConnectionManager
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PlcConnection
getConnection(String url)
Connects to a PLC using the given plc connection string.PlcConnection
getConnection(String url, PlcAuthentication authentication)
Connects to a PLC using the given plc connection string using given authentication credentials.
-
-
-
Method Detail
-
getConnection
PlcConnection getConnection(String url) throws PlcConnectionException
Connects to a PLC using the given plc connection string.- Parameters:
url
- plc connection string.- Returns:
- PlcConnection object.
- Throws:
PlcConnectionException
- an exception if the connection attempt failed.
-
getConnection
PlcConnection getConnection(String url, PlcAuthentication authentication) throws PlcConnectionException
Connects to a PLC using the given plc connection string using given authentication credentials.- Parameters:
url
- plc connection string.authentication
- authentication credentials.- Returns:
- PlcConnection object.
- Throws:
PlcConnectionException
- an exception if the connection attempt failed.
-
-