public MockHistoryContext(int numJobs, int numTasks, int numAttempts) { super(0); JobsPair jobs; try { jobs = MockHistoryJobs.newHistoryJobs(numJobs, numTasks, numAttempts); } catch (IOException e) { throw new YarnRuntimeException(e); } partialJobs = jobs.partial; fullJobs = jobs.full; }
public MockHistoryContext(int appid, int numJobs, int numTasks, int numAttempts) { super(appid); JobsPair jobs; try { jobs = MockHistoryJobs.newHistoryJobs(getApplicationID(), numJobs, numTasks, numAttempts); } catch (IOException e) { throw new YarnRuntimeException(e); } partialJobs = jobs.partial; fullJobs = jobs.full; }
public MockHistoryContext(int appid, int numJobs, int numTasks, int numAttempts, boolean hasFailedTasks) { super(appid); JobsPair jobs; try { jobs = MockHistoryJobs.newHistoryJobs(getApplicationID(), numJobs, numTasks, numAttempts, hasFailedTasks); } catch (IOException e) { throw new YarnRuntimeException(e); } partialJobs = jobs.partial; fullJobs = jobs.full; }