Package org.jenkinsci.plugins.p4.client
Class ConnectionFactory
- java.lang.Object
-
- org.jenkinsci.plugins.p4.client.ConnectionFactory
-
public class ConnectionFactory extends Object
Connection FactoryProvides concurrent connections to the Perforce Server
- Author:
- pallen
-
-
Constructor Summary
Constructors Constructor Description ConnectionFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static com.perforce.p4java.server.IOptionsServer
getConnection()
Returns existing connectionstatic com.perforce.p4java.server.IOptionsServer
getConnection(ConnectionConfig config)
Creates a server connection; provides a connection to the Perforce Server, initially client is undefined.static FormValidation
testConnection(ConnectionConfig config)
-
-
-
Method Detail
-
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
public static FormValidation testConnection(ConnectionConfig config)
-
-