Beispiel #1
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);
 }
Beispiel #2
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);
 }
Beispiel #3
0
 /// <summary>Get the task id</summary>
 public virtual TaskID GetTaskId()
 {
     return(TaskID.ForName(datum.taskid.ToString()));
 }
Beispiel #4
0
 public static TaskId ToTaskID(string tid)
 {
     return(TypeConverter.ToYarn(TaskID.ForName(tid)));
 }