pbs-middleware-client/src/main/java/cz/muni/ll/middleware/client/jobs/domain/submitRequest/SubmitJobBuilder.java
/**
     * Set job state check interval. It interval in seconds how often should middleware check the status of submitted job.
     * Optional. In case interval is not set, server default interval will be used.
     * In case interval is lower than default server interval, default server interval will be used.
     * <p>
     * Provided value will be transformed to the Duration object.
     *
     * @param       jobStateCheckInterval  job state check interval which will be
     * @return      a reference to this object.
     * @exception   IllegalArgumentException in case {@code jobStateCheckInterval} is {@code null}
     * @exception   IllegalArgumentException in case {@code jobStateCheckInterval} is blank string
     * @exception   IllegalArgumentException in case {@code jobStateCheckInterval} is in invalid duration string format
     * @see         java.time.Duration#parse(CharSequence)
     */
Set job state check interval. It interval in seconds how often should middleware check the status of submitted job.
Optional. In case interval is not set, server default interval will be used.
In case interval is lower than default server interval, default server interval will be used.

Provided value will be transformed to the Duration object.

@param       jobStateCheckInterval  job state check interval which will be
@return      a reference to this object.
@exception   IllegalArgumentException in case  jobStateCheckInterval is  null
@exception   IllegalArgumentException in case  jobStateCheckInterval is blank string
@exception   IllegalArgumentException in case  jobStateCheckInterval is in invalid duration string format
@see         java.time.Duration#parse(CharSequence)
Set job state check interval . It interval in seconds how often should middleware check the status of submitted job . Optional . In case interval is not set server default interval will be used . In case interval is lower than default server interval default server interval will be used . Provided value will be transformed to the Duration object . @param jobStateCheckInterval job state check interval which will be @return a reference to this object . @exception IllegalArgumentException in case jobStateCheckInterval is null @exception IllegalArgumentException in case jobStateCheckInterval is blank string @exception IllegalArgumentException in case jobStateCheckInterval is in invalid duration string format @see java . time . Duration#parse ( CharSequence )
@Deprecated
    @NotSupported(reason = "Deprecated. Not implemented on server side!")
    public SubmitJobBuilder jobStateCheckInterval(String jobStateCheckInterval) {
        if (handleStatusScript == null) {
            throw new IllegalArgumentException("Job state check interval can not be null");
        }
        if (handleStatusScript.replace(" ", "").isEmpty()) {
            throw new IllegalArgumentException("handleScript can not be empty string");
        }
        try {
            return jobStateCheckInterval(Duration.parse(jobStateCheckInterval));
        } catch (DateTimeParseException e) {
            throw new IllegalArgumentException("Invalid duration provided for job state check interval");
        }
    }
@ Deprecated @ NotSupported ( reason = "Deprecated. Not implemented on server side!" ) public SubmitJobBuilder jobStateCheckInterval ( String jobStateCheckInterval ) { if ( handleStatusScript == null ) { throw new IllegalArgumentException ( "Job state check interval can not be null" ) ; } if ( handleStatusScript . replace ( " " , "" ) . isEmpty ( ) ) { throw new IllegalArgumentException ( "handleScript can not be empty string" ) ; } try { return jobStateCheckInterval ( Duration . parse ( jobStateCheckInterval ) ) ; } catch ( DateTimeParseException e ) { throw new IllegalArgumentException ( "Invalid duration provided for job state check interval" ) ; } }
Set job state check interval.
Set job state check interval .