Class ConnectionFactory


  • public class ConnectionFactory
    extends Object
    Connection Factory

    Provides concurrent connections to the Perforce Server

    Author:
    pallen
    • Constructor Detail

      • ConnectionFactory

        public ConnectionFactory()
    • 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