Example #1
0
 private FakeEvent getJobStatusChangedEvent() {
   FakeEvent result = new FakeEvent(EventType.JOB_STATUS_CHANGED);
   JobStatusChanged datum = new JobStatusChanged();
   datum.setJobid("ID");
   datum.setJobStatus("newStatus");
   result.setDatum(datum);
   return result;
 }
Example #2
0
 private FakeEvent getTaskUpdatedEvent() {
   FakeEvent result = new FakeEvent(EventType.TASK_UPDATED);
   TaskUpdated datum = new TaskUpdated();
   datum.setFinishTime(2L);
   datum.setTaskid("ID");
   result.setDatum(datum);
   return result;
 }
Example #3
0
 private FakeEvent getJobPriorityChangedEvent() {
   FakeEvent result = new FakeEvent(EventType.JOB_PRIORITY_CHANGED);
   JobPriorityChange datum = new JobPriorityChange();
   datum.setJobid("ID");
   datum.setPriority("priority");
   result.setDatum(datum);
   return result;
 }
Example #4
0
 private FakeEvent getJobKilledEvent() {
   FakeEvent result = new FakeEvent(EventType.JOB_KILLED);
   JobUnsuccessfulCompletion datum = new JobUnsuccessfulCompletion();
   datum.setFinishedMaps(1);
   datum.setFinishedReduces(2);
   datum.setFinishTime(3L);
   datum.setJobid("ID");
   datum.setJobStatus("STATUS");
   datum.setDiagnostics(JobImpl.JOB_KILLED_DIAG);
   result.setDatum(datum);
   return result;
 }
Example #5
0
 private FakeEvent getSetupAttemptStartedEvent() {
   FakeEvent result = new FakeEvent(EventType.SETUP_ATTEMPT_STARTED);
   TaskAttemptStarted datum = new TaskAttemptStarted();
   datum.setAttemptId("ID");
   datum.setAvataar("avataar");
   datum.setContainerId("containerId");
   datum.setHttpPort(10000);
   datum.setLocality("locality");
   datum.setShufflePort(10001);
   datum.setStartTime(1L);
   datum.setTaskid(taskId);
   datum.setTaskType("taskType");
   datum.setTrackerName("trackerName");
   result.setDatum(datum);
   return result;
 }
Example #6
0
  private FakeEvent getTaskAttemptFinishedEvent() {
    FakeEvent result = new FakeEvent(EventType.SETUP_ATTEMPT_FINISHED);
    TaskAttemptFinished datum = new TaskAttemptFinished();

    datum.setAttemptId("attempt_1_2_r3_4_5");
    datum.setCounters(getCounters());
    datum.setFinishTime(2L);
    datum.setHostname("hostname");
    datum.setRackname("rackname");
    datum.setState("state");
    datum.setTaskid(taskId);
    datum.setTaskStatus("taskStatus");
    datum.setTaskType("REDUCE");
    result.setDatum(datum);
    return result;
  }
Example #7
0
  private FakeEvent getReduceAttemptKilledEvent() {
    FakeEvent result = new FakeEvent(EventType.REDUCE_ATTEMPT_KILLED);

    result.setDatum(getTaskAttemptUnsuccessfulCompletion());
    return result;
  }
Example #8
0
  private FakeEvent getSetupAttemptFieledEvent() {
    FakeEvent result = new FakeEvent(EventType.SETUP_ATTEMPT_FAILED);

    result.setDatum(getTaskAttemptUnsuccessfulCompletion());
    return result;
  }
Example #9
0
  private FakeEvent getCleanupAttemptKilledEvent() {
    FakeEvent result = new FakeEvent(EventType.CLEANUP_ATTEMPT_KILLED);

    result.setDatum(getTaskAttemptUnsuccessfulCompletion());
    return result;
  }