public class ConnectionFactory extends Object
Provides concurrent connections to the Perforce Server
Constructor and Description |
---|
ConnectionFactory() |
Modifier and Type | Method and Description |
---|---|
static com.perforce.p4java.server.IOptionsServer |
getConnection()
Returns existing connection
|
static com.perforce.p4java.server.IOptionsServer |
getConnection(ConnectionConfig config)
Creates a server connection; provides a connection to the Perforce
Server, initially client is undefined.
|
static hudson.util.FormValidation |
testConnection(ConnectionConfig config) |
public static com.perforce.p4java.server.IOptionsServer getConnection()
public static com.perforce.p4java.server.IOptionsServer getConnection(ConnectionConfig config) throws Exception
config
- Connection configurationException
- push up stackpublic static hudson.util.FormValidation testConnection(ConnectionConfig config)
Copyright © 2016–2017. All rights reserved.