/// <summary> /// /// </summary> /// <param name="table"></param> /// <param name="index"></param> /// <returns></returns> public override string GetTextAt(DataTable table, int index) { ConsoleDataSet.JobStep_RecordsRow row = (ConsoleDataSet.JobStep_RecordsRow)table.Rows[index]; return(FormatText(new JobStepTerminationRecord( row.Step_Name, row.Job_Name, (float)row.Duration_Sec, (float)row.Cpu_Time_Sec, (ulong)row.Total_IO, row.Step_Start_Time, row.Step_End_Time, row.PID).ToString())); }
public void AddRecord(ConsoleDataSet.JobStep_RecordsRow stepRow) { try { ConsoleDataSet.JobStep_RecordsRow row = _table.NewJobStep_RecordsRow(); row.ItemArray = stepRow.ItemArray; //Copy the values _table.AddJobStep_RecordsRow(row); } catch (Exception exc) { Debug.WriteLine(exc.ToString()); throw; //rethrow the same exception } }
public bool CacheJobStepTerminationRecord(RecJobStep record) { ConsoleDataSet ds = new ConsoleDataSet(); ConsoleDataSet.JobStep_RecordsRow row = ds.JobStep_Records.NewJobStep_RecordsRow(); row.Cpu_Time_Sec = record.CpuUsed; row.Duration_Sec = record.Duration; row.Job_Name = record.JobName; row.PID = record.PartitionId; row.Step_End_Time = record.StepStop; row.Step_Name = record.StepName; row.Step_Start_Time = record.StepStart; row.Total_IO = record.IoCount; ds.JobStep_Records.AddJobStep_RecordsRow(row); managerJSR.AddRecord(row); return(true); }