예제 #1
0
 private TestEvents.FakeEvent GetReduceAttemptKilledEvent()
 {
     TestEvents.FakeEvent result = new TestEvents.FakeEvent(this, EventType.ReduceAttemptKilled
                                                            );
     result.SetDatum(GetTaskAttemptUnsuccessfulCompletion());
     return(result);
 }
예제 #2
0
 private TestEvents.FakeEvent GetCleanupAttemptFiledEvent()
 {
     TestEvents.FakeEvent result = new TestEvents.FakeEvent(this, EventType.CleanupAttemptFailed
                                                            );
     result.SetDatum(GetTaskAttemptUnsuccessfulCompletion());
     return(result);
 }
예제 #3
0
        private TestEvents.FakeEvent GetTaskUpdatedEvent()
        {
            TestEvents.FakeEvent result = new TestEvents.FakeEvent(this, EventType.TaskUpdated
                                                                   );
            TaskUpdated datum = new TaskUpdated();

            datum.finishTime = 2;
            datum.taskid     = "ID";
            result.SetDatum(datum);
            return(result);
        }
예제 #4
0
        private TestEvents.FakeEvent GetJobStatusChangedEvent()
        {
            TestEvents.FakeEvent result = new TestEvents.FakeEvent(this, EventType.JobStatusChanged
                                                                   );
            JobStatusChanged datum = new JobStatusChanged();

            datum.jobid     = "ID";
            datum.jobStatus = "newStatus";
            result.SetDatum(datum);
            return(result);
        }
예제 #5
0
        private TestEvents.FakeEvent GetJobPriorityChangedEvent()
        {
            TestEvents.FakeEvent result = new TestEvents.FakeEvent(this, EventType.JobPriorityChanged
                                                                   );
            JobPriorityChange datum = new JobPriorityChange();

            datum.jobid    = "ID";
            datum.priority = "priority";
            result.SetDatum(datum);
            return(result);
        }
예제 #6
0
        private TestEvents.FakeEvent GetJobKilledEvent()
        {
            TestEvents.FakeEvent      result = new TestEvents.FakeEvent(this, EventType.JobKilled);
            JobUnsuccessfulCompletion datum  = new JobUnsuccessfulCompletion();

            datum.SetFinishedMaps(1);
            datum.SetFinishedReduces(2);
            datum.SetFinishTime(3L);
            datum.SetJobid("ID");
            datum.SetJobStatus("STATUS");
            datum.SetDiagnostics(JobImpl.JobKilledDiag);
            result.SetDatum(datum);
            return(result);
        }
예제 #7
0
        private TestEvents.FakeEvent GetTaskAttemptFinishedEvent()
        {
            TestEvents.FakeEvent result = new TestEvents.FakeEvent(this, EventType.SetupAttemptFinished
                                                                   );
            TaskAttemptFinished datum = new TaskAttemptFinished();

            datum.attemptId  = "attempt_1_2_r3_4_5";
            datum.counters   = GetCounters();
            datum.finishTime = 2;
            datum.hostname   = "hostname";
            datum.rackname   = "rackname";
            datum.state      = "state";
            datum.taskid     = "task_1_2_r03_4";
            datum.taskStatus = "taskStatus";
            datum.taskType   = "REDUCE";
            result.SetDatum(datum);
            return(result);
        }
예제 #8
0
        private TestEvents.FakeEvent GetSetupAttemptStartedEvent()
        {
            TestEvents.FakeEvent result = new TestEvents.FakeEvent(this, EventType.SetupAttemptStarted
                                                                   );
            TaskAttemptStarted datum = new TaskAttemptStarted();

            datum.attemptId   = "ID";
            datum.avataar     = "avataar";
            datum.containerId = "containerId";
            datum.httpPort    = 10000;
            datum.locality    = "locality";
            datum.shufflePort = 10001;
            datum.startTime   = 1;
            datum.taskid      = "task_1_2_r03_4";
            datum.taskType    = "taskType";
            datum.trackerName = "trackerName";
            result.SetDatum(datum);
            return(result);
        }