Class ConnectionFactory

java.lang.Object
org.jenkinsci.plugins.p4.client.ConnectionFactory

public class ConnectionFactory extends Object
Connection Factory

Provides concurrent connections to the Perforce Server

Author:
pallen
  • 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

      public static FormValidation testConnection(ConnectionConfig config)