protected final long getNumFailedJobs ( final List < JobInfo > jobInfos ) { return jobInfos . stream ( ) . filter ( job -> JobStatus . ERROR . equals ( job . getStatus ( ) ) ) . count ( ) ; }
Returns the number of failed jobs .