public virtual void SetDatum(object oDatum)
 {
     this.datum      = (TaskAttemptFinished)oDatum;
     this.attemptId  = TaskAttemptID.ForName(datum.attemptId.ToString());
     this.taskType   = TaskType.ValueOf(datum.taskType.ToString());
     this.taskStatus = datum.taskStatus.ToString();
     this.finishTime = datum.finishTime;
     this.rackName   = datum.rackname.ToString();
     this.hostname   = datum.hostname.ToString();
     this.state      = datum.state.ToString();
     this.counters   = EventReader.FromAvro(datum.counters);
 }
Esempio n. 2
0
 public virtual void SetDatum(object odatum)
 {
     this.datum              = (TaskFailed)odatum;
     this.id                 = TaskID.ForName(datum.taskid.ToString());
     this.taskType           = TaskType.ValueOf(datum.taskType.ToString());
     this.finishTime         = datum.finishTime;
     this.error              = datum.error.ToString();
     this.failedDueToAttempt = datum.failedDueToAttempt == null ? null : TaskAttemptID
                               .ForName(datum.failedDueToAttempt.ToString());
     this.status   = datum.status.ToString();
     this.counters = EventReader.FromAvro(datum.counters);
 }
Esempio n. 3
0
 public virtual void SetDatum(object oDatum)
 {
     this.datum           = (JobFinished)oDatum;
     this.jobId           = JobID.ForName(datum.jobid.ToString());
     this.finishTime      = datum.finishTime;
     this.finishedMaps    = datum.finishedMaps;
     this.finishedReduces = datum.finishedReduces;
     this.failedMaps      = datum.failedMaps;
     this.failedReduces   = datum.failedReduces;
     this.mapCounters     = EventReader.FromAvro(datum.mapCounters);
     this.reduceCounters  = EventReader.FromAvro(datum.reduceCounters);
     this.totalCounters   = EventReader.FromAvro(datum.totalCounters);
 }
Esempio n. 4
0
 public virtual void SetDatum(object oDatum)
 {
     this.datum  = (TaskFinished)oDatum;
     this.taskid = TaskID.ForName(datum.taskid.ToString());
     if (datum.successfulAttemptId != null)
     {
         this.successfulAttemptId = TaskAttemptID.ForName(datum.successfulAttemptId.ToString
                                                              ());
     }
     this.finishTime = datum.finishTime;
     this.taskType   = TaskType.ValueOf(datum.taskType.ToString());
     this.status     = datum.status.ToString();
     this.counters   = EventReader.FromAvro(datum.counters);
 }
Esempio n. 5
0
 public virtual void SetDatum(object odatum)
 {
     this.datum         = (TaskAttemptUnsuccessfulCompletion)odatum;
     this.attemptId     = TaskAttemptID.ForName(datum.attemptId.ToString());
     this.taskType      = TaskType.ValueOf(datum.taskType.ToString());
     this.finishTime    = datum.finishTime;
     this.hostname      = datum.hostname.ToString();
     this.rackName      = datum.rackname.ToString();
     this.port          = datum.port;
     this.status        = datum.status.ToString();
     this.error         = datum.error.ToString();
     this.counters      = EventReader.FromAvro(datum.counters);
     this.clockSplits   = AvroArrayUtils.FromAvro(datum.clockSplits);
     this.cpuUsages     = AvroArrayUtils.FromAvro(datum.cpuUsages);
     this.vMemKbytes    = AvroArrayUtils.FromAvro(datum.vMemKbytes);
     this.physMemKbytes = AvroArrayUtils.FromAvro(datum.physMemKbytes);
 }
 public virtual void SetDatum(object oDatum)
 {
     this.datum         = (MapAttemptFinished)oDatum;
     this.attemptId     = TaskAttemptID.ForName(datum.attemptId.ToString());
     this.taskType      = TaskType.ValueOf(datum.taskType.ToString());
     this.taskStatus    = datum.taskStatus.ToString();
     this.mapFinishTime = datum.mapFinishTime;
     this.finishTime    = datum.finishTime;
     this.hostname      = datum.hostname.ToString();
     this.rackName      = datum.rackname.ToString();
     this.port          = datum.port;
     this.state         = datum.state.ToString();
     this.counters      = EventReader.FromAvro(datum.counters);
     this.clockSplits   = AvroArrayUtils.FromAvro(datum.clockSplits);
     this.cpuUsages     = AvroArrayUtils.FromAvro(datum.cpuUsages);
     this.vMemKbytes    = AvroArrayUtils.FromAvro(datum.vMemKbytes);
     this.physMemKbytes = AvroArrayUtils.FromAvro(datum.physMemKbytes);
 }