Ejemplo n.º 1
0
 public static void updateJobMetrics(JobMetrics jobMetrics)
 {
     jobMetricses[jobMetrics.getJobNumber() - 1].update(jobMetrics);
     if (jobMetricses[jobMetrics.getJobNumber() - 1].getWaitTime() > 0)
     {
         totalWaitTime += jobMetricses[jobMetrics.getJobNumber() - 1].getWaitTime();
     }
     if (jobMetricses[jobMetrics.getJobNumber() - 1].getRunTime() > 0)
     {
         totalRunTime += jobMetricses[jobMetrics.getJobNumber() - 1].getRunTime();
     }
     //update job metrics
 }
Ejemplo n.º 2
0
 public void update(JobMetrics metrics)
 {
     setBlockUsed(metrics.getBlockUsed());
     setTimestamp(metrics.getTimestamp());
     setCpuNo(metrics.getCpuNo());
     setEndRunTime(metrics.getEndRunTime());
     setStartRunTime(metrics.getStartRunTime());
     setStartWaitTime(metrics.getStartWaitTime());
     setEndWaitTime(metrics.getEndWaitTime());
     setJobNumber(metrics.getJobNumber());
     setIos(metrics.getIos());
 }