Package org.jenkinsci.plugins.p4.client
Class ConnectionFactory
java.lang.Object
org.jenkinsci.plugins.p4.client.ConnectionFactory
Connection Factory
Provides concurrent connections to the Perforce Server
- Author:
- pallen
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic com.perforce.p4java.server.IOptionsServerReturns existing connectionstatic com.perforce.p4java.server.IOptionsServergetConnection(ConnectionConfig config) Creates a server connection; provides a connection to the Perforce Server, initially client is undefined.static FormValidationtestConnection(ConnectionConfig config)
-
Constructor Details
-
ConnectionFactory
public ConnectionFactory()
-
-
Method Details
-
getConnection
public static com.perforce.p4java.server.IOptionsServer getConnection()Returns existing connection- Returns:
- Server connection object
-
getConnection
public static com.perforce.p4java.server.IOptionsServer getConnection(ConnectionConfig config) throws Exception Creates a server connection; provides a connection to the Perforce Server, initially client is undefined.- Parameters:
config- Connection configuration- Returns:
- Server connection object
- Throws:
Exception- push up stack
-
testConnection
-