agave-jobs/jobs-core/src/main/java/org/iplantc/service/jobs/managers/monitors/parsers/CondorJobStatusResponseParser.java
/**
     * Checks the given section starts with a valid section header to start the file. If found and it has a
     * {@link CondorJobStatus#SUBMITTED} status code, we say it is valid. This should be safe as the first event in
     * every condor log file is a {@link CondorJobStatus#SUBMITTED} event.
     *
     * @param condorLogEvent A single section from the condor log file representing one event
     * @return true if the file begins with {@link CondorJobStatus#SUBMITTED} code.
     */
Checks the given section starts with a valid section header to start the file. If found and it has a
CondorJobStatus#SUBMITTED status code, we say it is valid. This should be safe as the first event in
every condor log file is a  CondorJobStatus#SUBMITTED event.

@param condorLogEvent A single section from the condor log file representing one event
@return true if the file begins with  CondorJobStatus#SUBMITTED code.
Checks the given section starts with a valid section header to start the file . If found and it has a CondorJobStatus#SUBMITTED status code we say it is valid . This should be safe as the first event in every condor log file is a CondorJobStatus#SUBMITTED event . @param condorLogEvent A single section from the condor log file representing one event @return true if the file begins with CondorJobStatus#SUBMITTED code .
protected boolean isValidLogFile(String condorLogEvent) {
        Matcher headerMatcher = Pattern.compile(CONDOR_LOG_EVENT_HEADER_REGEX).matcher(condorLogEvent);
        if (headerMatcher.find()) {
            CondorLogJobStatus actualStatus = CondorLogJobStatus.valueOfCode(headerMatcher.group("statusCode"));
            return actualStatus == CondorLogJobStatus.JOB_SUBMITTED;
        }
        return false;
    }
protected boolean isValidLogFile ( String condorLogEvent ) { Matcher headerMatcher = Pattern . compile ( CONDOR_LOG_EVENT_HEADER_REGEX ) . matcher ( condorLogEvent ) ; if ( headerMatcher . find ( ) ) { CondorLogJobStatus actualStatus = CondorLogJobStatus . valueOfCode ( headerMatcher . group ( "statusCode" ) ) ; return actualStatus == CondorLogJobStatus . JOB_SUBMITTED ; } return false ; }
Checks the given section starts with a valid section header to start the file.
Checks the given section starts with a valid section header to start the file .