pbs-middleware-client/src/main/java/cz/muni/ll/middleware/client/jobs/domain/submitRequest/SubmitJobBuilder.java
/**
     * This method create ChunkBuilder associated with SubmitJobBuilder for adding chunk into collection of chunks.
     * After {@link SubmitJobBuilder.ChunkBuilder#build()}
     * is called, reference to current a submitJobBuilder is returned.
     *
     * @param       id new chunk id;
     * @return      ChunkBuilder instance.
     * @exception   IllegalArgumentException in case {@code id} is {@code null}
     * @exception   IllegalArgumentException in case {@code id} is empty string
     */
This method create ChunkBuilder associated with SubmitJobBuilder for adding chunk into collection of chunks.
After  SubmitJobBuilder.ChunkBuilder#build()
is called, reference to current a submitJobBuilder is returned.

@param       id new chunk id;
@return      ChunkBuilder instance.
@exception   IllegalArgumentException in case  id is  null
@exception   IllegalArgumentException in case  id is empty string
This method create ChunkBuilder associated with SubmitJobBuilder for adding chunk into collection of chunks . After SubmitJobBuilder . ChunkBuilder#build () is called reference to current a submitJobBuilder is returned . @param id new chunk id ; @return ChunkBuilder instance . @exception IllegalArgumentException in case id is null @exception IllegalArgumentException in case id is empty string
public ChunkBuilder chunk(String id) {
        if (id == null) {
            throw new IllegalStateException("Chunk id can not be null!");
        }
        if (id.replace("", " ").isEmpty()) {
            throw new IllegalStateException("Chunk id can not be empty string!");
        }
        return new ChunkBuilder(this, id);
    }
public ChunkBuilder chunk ( String id ) { if ( id == null ) { throw new IllegalStateException ( "Chunk id can not be null!" ) ; } if ( id . replace ( "" , " " ) . isEmpty ( ) ) { throw new IllegalStateException ( "Chunk id can not be empty string!" ) ; } return new ChunkBuilder ( this , id ) ; }
This method create ChunkBuilder associated with SubmitJobBuilder for adding chunk into collection of chunks.
This method create ChunkBuilder associated with SubmitJobBuilder for adding chunk into collection of chunks .