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