Exemple #1
0
 public MockHistoryContext(int numJobs, int numTasks, int numAttempts)
     : base(0)
 {
     MockHistoryJobs.JobsPair jobs;
     try
     {
         jobs = MockHistoryJobs.NewHistoryJobs(numJobs, numTasks, numAttempts);
     }
     catch (IOException e)
     {
         throw new YarnRuntimeException(e);
     }
     partialJobs = jobs.partial;
     fullJobs    = jobs.full;
 }
Exemple #2
0
 public MockHistoryContext(int appid, int numJobs, int numTasks, int numAttempts,
                           bool hasFailedTasks)
     : base(appid)
 {
     MockHistoryJobs.JobsPair jobs;
     try
     {
         jobs = MockHistoryJobs.NewHistoryJobs(GetApplicationID(), numJobs, numTasks, numAttempts
                                               , hasFailedTasks);
     }
     catch (IOException e)
     {
         throw new YarnRuntimeException(e);
     }
     partialJobs = jobs.partial;
     fullJobs    = jobs.full;
 }