public static long getScriptStartTimeFromLogfileName(String pigLogfile) {
    long pigSubmitTimeMillis = 0;

    if (pigLogfile == null) {
      return pigSubmitTimeMillis;
    }

    Matcher matcher = pigLogfilePattern.matcher(pigLogfile);
    if (matcher.matches()) {
      String submitTimeMillisString = matcher.group(1);
      pigSubmitTimeMillis = Long.parseLong(submitTimeMillisString);
    }
    return pigSubmitTimeMillis;
  }
public static long getScriptStartTimeFromLogfileName ( String pigLogfile ) { long pigSubmitTimeMillis = 0 ; if ( pigLogfile == null ) { return pigSubmitTimeMillis ; } Matcher matcher = pigLogfilePattern . matcher ( pigLogfile ) ; if ( matcher . matches ( ) ) { String submitTimeMillisString = matcher . group ( 1 ) ; pigSubmitTimeMillis = Long . parseLong ( submitTimeMillisString ) ; } return pigSubmitTimeMillis ; }
@param pigLogfile
as obtained from the JobConfig
@return