コード例 #1
0
 public JobTaskAttemptCounterInfo(TaskAttempt taskattempt)
 {
     this.id = MRApps.ToString(taskattempt.GetID());
     total   = taskattempt.GetCounters();
     taskAttemptCounterGroup = new AList <TaskCounterGroupInfo>();
     if (total != null)
     {
         foreach (CounterGroup g in total)
         {
             if (g != null)
             {
                 TaskCounterGroupInfo cginfo = new TaskCounterGroupInfo(g.GetName(), g);
                 if (cginfo != null)
                 {
                     taskAttemptCounterGroup.AddItem(cginfo);
                 }
             }
         }
     }
 }