Package org.teiid.net
Interface ServerConnectionFactory
-
- All Known Implementing Classes:
SocketServerConnectionFactory
public interface ServerConnectionFactory
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ServerConnection
getConnection(Properties connectionProperties)
Establish a connection to the server.
-
-
-
Method Detail
-
getConnection
ServerConnection getConnection(Properties connectionProperties) throws CommunicationException, ConnectionException
Establish a connection to the server.- Parameters:
connectionProperties
- The properties used by the transport to find a connection. These properties are typically specific to the transport.- Returns:
- A connection, never null
- Throws:
ConnectionException
- If an error occurs communicating between client and serverCommunicationException
- If an error occurs in connecting, typically due to problems with the connection properties (bad user name, bad password, bad host name, etc)
-
-