pbs-middleware-client/src/main/java/cz/muni/ll/middleware/client/jobs/domain/submitRequest/SubmitJobBuilder.java
/**
         * Set chunk request memory amount.
         *
         * @param       mem requested memory
         * @return      a reference to this object.
         * @exception   IllegalArgumentException in case {@code mem} is {@code null}
         * @exception   IllegalArgumentException in case {@code mem} is empty string
         * @exception   IllegalArgumentException in case invalid {@code mem} value
         * @see <a href="https://linux.die.net/man/7/pbs_resources_linux">PBS resources</a>
         */
Set chunk request memory amount.
@param       mem requested memory
@return      a reference to this object.
@exception   IllegalArgumentException in case  mem is  null
@exception   IllegalArgumentException in case  mem is empty string
@exception   IllegalArgumentException in case invalid  mem value
@see PBS resources
Set chunk request memory amount . @param mem requested memory @return a reference to this object . @exception IllegalArgumentException in case mem is null @exception IllegalArgumentException in case mem is empty string @exception IllegalArgumentException in case invalid mem value @see PBS resources
public ChunkBuilder mem(String mem) {
            if (mem == null) {
                throw new IllegalArgumentException("mem can not be null");
            }
            if (mem.replace(" ", "").isEmpty()) {
                throw new IllegalArgumentException("mem can not be empty string");
            }
            if (!Pattern.compile("(\\d+)(b|kb|mb|gb|)").matcher(mem.toLowerCase()).matches()) {
                throw new IllegalArgumentException("mem does not match pattern <value><b|kb|mb|gb|>");
            }
            this.mem = mem;
            return this;
        }
public ChunkBuilder mem ( String mem ) { if ( mem == null ) { throw new IllegalArgumentException ( "mem can not be null" ) ; } if ( mem . replace ( " " , "" ) . isEmpty ( ) ) { throw new IllegalArgumentException ( "mem can not be empty string" ) ; } if ( ! Pattern . compile ( "(\\d+)(b|kb|mb|gb|)" ) . matcher ( mem . toLowerCase ( ) ) . matches ( ) ) { throw new IllegalArgumentException ( "mem does not match pattern <value><b|kb|mb|gb|>" ) ; } this . mem = mem ; return this ; }
Set chunk request memory amount.
Set chunk request memory amount .