pbs-middleware-client/src/main/java/cz/muni/ll/middleware/client/jobs/domain/submitRequest/SubmitJobBuilder.java
/**
         * Associates the specified chunk custom resource value with the specified key in chunk custom resources map.
         * Custom resources are used for building of QSUB command. Optional.
         *
         * @param       key chunk custom resource key with which the specified chunk custom resource value is to be associated
         * @param       value chunk custom resource value to be associated with the specified chunk custom resource key
         * @return      a reference to this object.
         * @exception   IllegalArgumentException in case {@code key} is {@code null}
         * @exception   IllegalArgumentException in case {@code value} is {@code null}
         * @exception   IllegalArgumentException in case {@code key} is blank string
         * @exception   IllegalArgumentException in case {@code value} is blank string
         */
Associates the specified chunk custom resource value with the specified key in chunk custom resources map.
Custom resources are used for building of QSUB command. Optional.

@param       key chunk custom resource key with which the specified chunk custom resource value is to be associated
@param       value chunk custom resource value to be associated with the specified chunk custom resource key
@return      a reference to this object.
@exception   IllegalArgumentException in case  key is  null
@exception   IllegalArgumentException in case  value is  null
@exception   IllegalArgumentException in case  key is blank string
@exception   IllegalArgumentException in case  value is blank string
Associates the specified chunk custom resource value with the specified key in chunk custom resources map . Custom resources are used for building of QSUB command . Optional . @param key chunk custom resource key with which the specified chunk custom resource value is to be associated @param value chunk custom resource value to be associated with the specified chunk custom resource key @return a reference to this object . @exception IllegalArgumentException in case key is null @exception IllegalArgumentException in case value is null @exception IllegalArgumentException in case key is blank string @exception IllegalArgumentException in case value is blank string
public ChunkBuilder customResource(String key, String value) {
            if (key == null) {
                throw new IllegalArgumentException("custom resource key can not be null");
            }
            if (value == null) {
                throw new IllegalArgumentException("custom resource value can not be null");
            }
            if (key.replace(" ", "").isEmpty()) {
                throw new IllegalArgumentException("custom resource key can not be empty string");
            }
            if (value.replace(" ", "").isEmpty()) {
                throw new IllegalArgumentException("custom resource value can not be empty string");
            }
            if (this.customResources == null) {
                this.customResources = new HashMap<>();
            }
            this.customResources.put(key, value);
            return this;
        }
public ChunkBuilder customResource ( String key , String value ) { if ( key == null ) { throw new IllegalArgumentException ( "custom resource key can not be null" ) ; } if ( value == null ) { throw new IllegalArgumentException ( "custom resource value can not be null" ) ; } if ( key . replace ( " " , "" ) . isEmpty ( ) ) { throw new IllegalArgumentException ( "custom resource key can not be empty string" ) ; } if ( value . replace ( " " , "" ) . isEmpty ( ) ) { throw new IllegalArgumentException ( "custom resource value can not be empty string" ) ; } if ( this . customResources == null ) { this . customResources = new HashMap < > ( ) ; } this . customResources . put ( key , value ) ; return this ; }
Associates the specified chunk custom resource value with the specified key in chunk custom resources map.
Associates the specified chunk custom resource value with the specified key in chunk custom resources map .