Class JobStats

java.lang.Object
  |
  +--JobStats

class JobStats
extends java.lang.Object

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


Field Summary
(package private)  int cpuUsed
          Total cpu used (in ms)
(package private)  int elapsedTime
          Total elapsed time from start to end
(package private)  int ioUsed
          Total I/O operations
(package private)  java.lang.String name
          Name of the job
(package private)  double penalty
          Penalty ratio (elapsed over sum of I/O time and CPU time)
 
Constructor Summary
(package private) JobStats(java.lang.String name, 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, registerNatives, wait, wait, wait
 

Field Detail

name

java.lang.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)
Constructor Detail

JobStats

JobStats(java.lang.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
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