com.ibm.tws.objects.model
Class JobStatistics

java.lang.Object
  extended bycom.ibm.tws.objects.model.JobStatistics
All Implemented Interfaces:
java.io.Serializable, TWSHeader, TWSObject

public class JobStatistics
extends java.lang.Object
implements TWSObject, TWSHeader

This object is just a container for execution statistics that are collected about jobs created from the same job definition. It is identified by its JobDefinition, and acts as a logical extension of the JobDefinition class.

See Also:
JobDefinition, Serialized Form

Field Summary
static java.lang.String COPYRIGHT
          Copyright.
 
Constructor Summary
JobStatistics()
          Creates an empty JobStatistics object.
JobStatistics(JobDefinition definition)
          Creates a JobStatistics object that refers to the specified job definition.
 
Method Summary
 boolean equals(java.lang.Object object)
          Returns true if all fields of this JobStatistics object are equal to those of the given one.
 int getAbortedRuns()
          Returns the total number of aborted job runs.
 JobDefinitionHeader getHeader()
          Returns the header of the job definition to which this JobStatistics object refers.
 Identifier getId()
          Returns the identifier of the job definition to which this JobStatistics object refers.
 JobDefinition getJobDefinition()
          Returns the job definition to which this JobStatistics object refers.
 Identifier getJobDefinitionId()
          Returns the identifier of the job definition to which this JobStatistics object refers.
 JobDefinitionKey getJobDefinitionKey()
          Returns the key of the job definition to which this JobStatistics object refers.
 JobDefinitionKey getKey()
          Returns the key of the job definition to which this JobStatistics object refers.
 long getLastCPUTime()
          Returns the CPU time of the last job run.
 long getLastElapsedTime()
          Returns the elapsed time of the last job run.
 java.util.Date getLastRunDate()
          Returns the date and time of the last job run.
 LockData getLockData()
          Returns the lock data of the job definition to which this JobStatistics object refers.
 long getMaxCPUTime()
          Returns the maximum CPU time of all job runs.
 long getMaxElapsedTime()
          Returns the maximum elapsed time of all job runs.
 java.util.Date getMaxRunDate()
          Returns the maximum job run date and time.
 long getMinCPUTime()
          Returns the minimum CPU time of all job runs.
 long getMinElapsedTime()
          Returns the minimum elapsed time of all job runs.
 java.util.Date getMinRunDate()
          Returns the minimum job run date and time.
 ModifyData getModifyData()
          Returns the modification data of the job definition to which this JobStatistics object refers.
 java.lang.String getName()
          Returns the name of the job definition to which this JobStatistics object refers.
 TWSHeader getObjectHeader()
          Returns the header of the job definition to which this JobStatistics object refers.
 TWSKey getObjectKey()
          Returns the key of the job definition to which this JobStatistics object refers.
 int getSuccessfulRuns()
          Returns the total number of successful job runs.
 long getTotalCPUTime()
          Returns the total CPU time of all job runs.
 long getTotalElapsedTime()
          Returns the total elapsed time of all job runs.
 int hashCode()
          Returns a hash code for this JobStatistics object.
 void setAbortedRuns(int value)
          Sets the total number of aborted job runs.
 void setHeader(JobDefinitionHeader jobDefinitionHeader)
          Sets the header of the job definition to which this JobStatistics object refers.
 void setId(Identifier identifier)
          Sets the identifier of the job definition to which this JobStatistics object refers.
 void setJobDefinition(JobDefinition definition)
          Sets the job definition to which this JobStatistics object refers.
 void setJobDefinitionId(Identifier identifier)
          Sets the identifier of the job definition to which this JobStatistics object refers.
 void setJobDefinitionKey(JobDefinitionKey key)
          Sets the key of the job definition to which this JobStatistics object refers.
 void setKey(JobDefinitionKey key)
          Sets the key of the job definition to which this JobStatistics object refers.
 void setLastCPUTime(long value)
          Sets the CPU time of the last job run.
 void setLastElapsedTime(long value)
          Sets the elapsed time of the last job run.
 void setLastRunDate(java.util.Date value)
          Sets the date and time of the last job run.
 void setMaxCPUTime(long value)
          Sets the maximum CPU time of all job runs.
 void setMaxElapsedTime(long value)
          Sets the maximum elapsed time of all job runs.
 void setMaxRunDate(java.util.Date value)
          Sets the maximum job run date and time.
 void setMinCPUTime(long value)
          Sets the minimum CPU time of all job runs.
 void setMinElapsedTime(long value)
          Sets the minimum elapsed time of all job runs.
 void setMinRunDate(java.util.Date value)
          Sets the minimum job run date and time.
 void setSuccessfulRuns(int value)
          Sets the total number of successful job runs.
 void setTotalCPUTime(long value)
          Sets the total CPU time of all job runs.
 void setTotalElapsedTime(long value)
          Sets the total elapsed time of all job runs.
 java.lang.String toString()
          Returns a string representation of this JobStatistics object.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT
Copyright.

Constructor Detail

JobStatistics

public JobStatistics()
Creates an empty JobStatistics object.


JobStatistics

public JobStatistics(JobDefinition definition)
Creates a JobStatistics object that refers to the specified job definition.

Parameters:
definition - The job definition to which this JobStatistics object refers.
Method Detail

getId

public Identifier getId()
Returns the identifier of the job definition to which this JobStatistics object refers.

Specified by:
getId in interface TWSObject
Returns:
The identifier of the job definition to which this JobStatistics object refers.

getName

public java.lang.String getName()
Returns the name of the job definition to which this JobStatistics object refers.

Specified by:
getName in interface TWSObject
Returns:
The name of the job definition to which this JobStatistics object refers.

getObjectKey

public TWSKey getObjectKey()
Returns the key of the job definition to which this JobStatistics object refers.

Specified by:
getObjectKey in interface TWSObject
Returns:
The key of the job definition to which this JobStatistics object refers.

getObjectHeader

public TWSHeader getObjectHeader()
Returns the header of the job definition to which this JobStatistics object refers.

Specified by:
getObjectHeader in interface TWSObject
Returns:
The header of the job definition to which this JobStatistics object refers.

getKey

public JobDefinitionKey getKey()
Returns the key of the job definition to which this JobStatistics object refers.

Returns:
The key of the job definition to which this JobStatistics object refers.

getHeader

public JobDefinitionHeader getHeader()
Returns the header of the job definition to which this JobStatistics object refers.

Returns:
The header of the job definition to which this JobStatistics object refers.

getModifyData

public ModifyData getModifyData()
Returns the modification data of the job definition to which this JobStatistics object refers.

Specified by:
getModifyData in interface TWSObject
Returns:
The modification data of the job definition to which this JobStatistics object refers.

getLockData

public LockData getLockData()
Returns the lock data of the job definition to which this JobStatistics object refers.

Specified by:
getLockData in interface TWSObject
Returns:
The lock data of the job definition to which this JobStatistics object refers.

getJobDefinitionId

public Identifier getJobDefinitionId()
Returns the identifier of the job definition to which this JobStatistics object refers.

Returns:
The identifier of the job definition to which this JobStatistics object refers.

getJobDefinitionKey

public JobDefinitionKey getJobDefinitionKey()
Returns the key of the job definition to which this JobStatistics object refers.

Returns:
The key of the job definition to which this JobStatistics object refers.

getJobDefinition

public JobDefinition getJobDefinition()
Returns the job definition to which this JobStatistics object refers.

Returns:
The job definition to which this JobStatistics object refers.

getAbortedRuns

public int getAbortedRuns()
Returns the total number of aborted job runs.

Returns:
The total number of aborted job runs.

getSuccessfulRuns

public int getSuccessfulRuns()
Returns the total number of successful job runs.

Returns:
The total number of successful job runs.

getLastRunDate

public java.util.Date getLastRunDate()
Returns the date and time of the last job run.

Returns:
The date and time of the last job run.

getLastCPUTime

public long getLastCPUTime()
Returns the CPU time of the last job run.

Returns:
The CPU time of the last job run.

getLastElapsedTime

public long getLastElapsedTime()
Returns the elapsed time of the last job run.

Returns:
The elapsed time of the last job run.

getMinRunDate

public java.util.Date getMinRunDate()
Returns the minimum job run date and time.

Returns:
The minimum job run date and time.

getMinCPUTime

public long getMinCPUTime()
Returns the minimum CPU time of all job runs.

Returns:
The minimum CPU time of all job runs.

getMinElapsedTime

public long getMinElapsedTime()
Returns the minimum elapsed time of all job runs.

Returns:
The minimum elapsed time of all job runs.

getMaxRunDate

public java.util.Date getMaxRunDate()
Returns the maximum job run date and time.

Returns:
The maximum job run date and time.

getMaxCPUTime

public long getMaxCPUTime()
Returns the maximum CPU time of all job runs.

Returns:
The maximum CPU time of all job runs.

getMaxElapsedTime

public long getMaxElapsedTime()
Returns the maximum elapsed time of all job runs.

Returns:
The maximum elapsed time of all job runs.

getTotalCPUTime

public long getTotalCPUTime()
Returns the total CPU time of all job runs.

Returns:
The total CPU time of all job runs.

getTotalElapsedTime

public long getTotalElapsedTime()
Returns the total elapsed time of all job runs.

Returns:
The total elapsed time of all job runs.

setId

public void setId(Identifier identifier)
Sets the identifier of the job definition to which this JobStatistics object refers. For internal use only.

Parameters:
identifier - The identifier of the job definition to which this JobStatistics object refers.

setKey

public void setKey(JobDefinitionKey key)
Sets the key of the job definition to which this JobStatistics object refers. For internal use only.

Parameters:
key - The key of the job definition to which this JobStatistics object refers.

setHeader

public void setHeader(JobDefinitionHeader jobDefinitionHeader)
Sets the header of the job definition to which this JobStatistics object refers. For internal use only.

Parameters:
jobDefinitionHeader - The header of the job definition to which this JobStatistics object refers.

setJobDefinitionId

public void setJobDefinitionId(Identifier identifier)
Sets the identifier of the job definition to which this JobStatistics object refers. For internal use only.

Parameters:
identifier - The identifier of the job definition to which this JobStatistics object refers.

setJobDefinitionKey

public void setJobDefinitionKey(JobDefinitionKey key)
Sets the key of the job definition to which this JobStatistics object refers. For internal use only.

Parameters:
key - The key of the job definition to which this JobStatistics object refers.

setJobDefinition

public void setJobDefinition(JobDefinition definition)
Sets the job definition to which this JobStatistics object refers. For internal use only.

Parameters:
definition - The job definition to which this JobStatistics object refers.

setAbortedRuns

public void setAbortedRuns(int value)
Sets the total number of aborted job runs. For internal use only.

Parameters:
value - The total number of aborted job runs.

setSuccessfulRuns

public void setSuccessfulRuns(int value)
Sets the total number of successful job runs. For internal use only.

Parameters:
value - The total number of successful job runs.

setLastRunDate

public void setLastRunDate(java.util.Date value)
Sets the date and time of the last job run. For internal use only.

Parameters:
value - The date and time of the last job run.

setLastCPUTime

public void setLastCPUTime(long value)
Sets the CPU time of the last job run. For internal use only.

Parameters:
value - The CPU time of the last job run.

setLastElapsedTime

public void setLastElapsedTime(long value)
Sets the elapsed time of the last job run. For internal use only.

Parameters:
value - The elapsed time of the last job run.

setMinRunDate

public void setMinRunDate(java.util.Date value)
Sets the minimum job run date and time. For internal use only.

Parameters:
value - The minimum job run date and time.

setMinCPUTime

public void setMinCPUTime(long value)
Sets the minimum CPU time of all job runs. For internal use only.

Parameters:
value - The minimum CPU time of all job runs.

setMinElapsedTime

public void setMinElapsedTime(long value)
Sets the minimum elapsed time of all job runs. For internal use only.

Parameters:
value - The minimum elapsed time of all job runs.

setMaxRunDate

public void setMaxRunDate(java.util.Date value)
Sets the maximum job run date and time. For internal use only.

Parameters:
value - The maximum job run date and time.

setMaxCPUTime

public void setMaxCPUTime(long value)
Sets the maximum CPU time of all job runs. For internal use only.

Parameters:
value - The maximum CPU time of all job runs.

setMaxElapsedTime

public void setMaxElapsedTime(long value)
Sets the maximum elapsed time of all job runs. For internal use only.

Parameters:
value - The maximum elapsed time of all job runs.

setTotalCPUTime

public void setTotalCPUTime(long value)
Sets the total CPU time of all job runs. For internal use only.

Parameters:
value - The total CPU time of all job runs.

setTotalElapsedTime

public void setTotalElapsedTime(long value)
Sets the total elapsed time of all job runs. For internal use only.

Parameters:
value - The total elapsed time of all job runs.

equals

public boolean equals(java.lang.Object object)
Returns true if all fields of this JobStatistics object are equal to those of the given one.

Parameters:
object - The object to be compared with this one.
Returns:
True if this object equals to the given one.

hashCode

public int hashCode()
Returns a hash code for this JobStatistics object.

Returns:
The object's hash code.

toString

public java.lang.String toString()
Returns a string representation of this JobStatistics object.

Returns:
A text string including all JobStatistics fields.


Copyright © 2005 IBM All Rights Reserved.