Class JobStats

java.lang.Object
   |
   +----JobStats

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


Variable Index

 o cpuUsed
Total cpu used (in ms)
 o elapsedTime
Total elapsed time from start to end
 o ioUsed
Total I/O operations
 o name
Name of the job
 o penalty
Penalty ratio (elapsed over sum of I/O time and CPU time)

Constructor Index

 o JobStats(String, int, int, int)
Create a JobStats object.

Method Index

 o toString()
Convert to string.

Variables

 o name
 String name
Name of the job

 o cpuUsed
 int cpuUsed
Total cpu used (in ms)

 o ioUsed
 int ioUsed
Total I/O operations

 o elapsedTime
 int elapsedTime
Total elapsed time from start to end

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

Constructors

 o 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

Methods

 o toString
 public String toString()
Convert to string.

Returns:
a string version of the information about this job
Overrides:
toString in class Object