Class JobStats
java.lang.Object
|
+----JobStats
- class JobStats
- extends Object
A JobStats object is used to record statistics about a Job that has
completed.
-
cpuUsed
- Total cpu used (in ms)
-
elapsedTime
- Total elapsed time from start to end
-
ioUsed
- Total I/O operations
-
name
- Name of the job
-
penalty
- Penalty ratio (elapsed over sum of I/O time and CPU time)
-
JobStats(String, int, int, int)
- Create a JobStats object.
-
toString()
- Convert to string.
name
String name
- Name of the job
cpuUsed
int cpuUsed
- Total cpu used (in ms)
ioUsed
int ioUsed
- Total I/O operations
elapsedTime
int elapsedTime
- Total elapsed time from start to end
penalty
double penalty
- Penalty ratio (elapsed over sum of I/O time and CPU time)
JobStats
JobStats(String name,
int cpuUsed,
int ioUsed,
int elapsedTime)
- Create a JobStats object.
- Parameters:
- name - the name 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
toString
public String toString()
- Convert to string.
- Returns:
- a string version of the information about this job
- Overrides:
- toString in class Object