pbs-middleware-client/src/main/java/cz/muni/ll/middleware/client/jobs/domain/submitRequest/SubmitJobBuilder.java
/**
     * Set id of connection which contain info how to connect to the server, where job should be launched.
     * Mandatory in case, templateId is not set.
     *
     * @param       connection  id of connection
     * @return      a reference to this object.
     * @exception   IllegalArgumentException in case {@code connection} is {@code null}
     * @exception   IllegalArgumentException in case {@code connection} is blank string
     */
Set id of connection which contain info how to connect to the server, where job should be launched.
Mandatory in case, templateId is not set.

@param       connection  id of connection
@return      a reference to this object.
@exception   IllegalArgumentException in case  connection is  null
@exception   IllegalArgumentException in case  connection is blank string
Set id of connection which contain info how to connect to the server where job should be launched . Mandatory in case templateId is not set . @param connection id of connection @return a reference to this object . @exception IllegalArgumentException in case connection is null @exception IllegalArgumentException in case connection is blank string
public SubmitJobBuilder connection(String connection) {
        if (connection == null) {
            throw new IllegalArgumentException("connection can not be null");
        }
        if (connection.replace(" ", "").isEmpty()) {
            throw new IllegalArgumentException("connection can not be empty string");
        }
        this.connection = connection;
        return this;
    }
public SubmitJobBuilder connection ( String connection ) { if ( connection == null ) { throw new IllegalArgumentException ( "connection can not be null" ) ; } if ( connection . replace ( " " , "" ) . isEmpty ( ) ) { throw new IllegalArgumentException ( "connection can not be empty string" ) ; } this . connection = connection ; return this ; }
Set id of connection which contain info how to connect to the server, where job should be launched.
Set id of connection which contain info how to connect to the server where job should be launched .