Class JobStats

java.lang.Object
  |
  +--JobStats

public class JobStats
extends java.lang.Object

A JobStats object is used to record statistics about a Job that has completed.


Field Summary
 int cpuUsed
          Total cpu used (in ms)
 int elapsedTime
          Total elapsed time from start to end
 int ioUsed
          Total I/O operations
 double penalty
          Penalty ratio (elapsed over sum of I/O time and CPU time)
 
Constructor Summary
JobStats(int serial, int cpuUsed, int ioUsed, int elapsedTime)
          Create a JobStats object.
 
Method Summary
 java.lang.String toString()
          Convert to string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

cpuUsed

public int cpuUsed
Total cpu used (in ms)

ioUsed

public int ioUsed
Total I/O operations

elapsedTime

public int elapsedTime
Total elapsed time from start to end

penalty

public double penalty
Penalty ratio (elapsed over sum of I/O time and CPU time)
Constructor Detail

JobStats

public JobStats(int serial,
                int cpuUsed,
                int ioUsed,
                int elapsedTime)
Create a JobStats object.
Parameters:
serial - the serial number of the job
cpuUsed - the total cpu utilization (in ms)
ioUses - the number of I/O operations done by this job
elapsedTime - elapsed time from arrival to completion
Method Detail

toString

public java.lang.String toString()
Convert to string.
Overrides:
toString in class java.lang.Object
Returns:
a string version of the information about this job