public List < JobExecutionInfo > queryByJobName ( String name , int resultsLimit ) throws RemoteInvocationException { JobExecutionQuery query = new JobExecutionQuery ( ) ; query . setIdType ( QueryIdTypeEnum . JOB_NAME ) ; query . setId ( JobExecutionQuery . Id . create ( name ) ) ; query . setIncludeTaskExecutions ( false ) ; query . setLimit ( resultsLimit ) ; return executeQuery ( query ) ; }
Query jobs by name