com.ibm.tws.objects.model
Class JobHistoryRun

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

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

This object is used to represent the information collected about a single job run.

See Also:
Serialized Form

Field Summary
static java.lang.String COPYRIGHT
          Copyright.
 
Constructor Summary
JobHistoryRun()
          Creates an empty JobHistoryRun object.
 
Method Summary
 boolean equals(java.lang.Object object)
          Returns true if all fields of this JobHistoryRun object are equal to those of the given one.
 Identifier getId()
          Returns the job identifier.
 Identifier getJobDefinitionId()
          Returns the job definition identifier.
 Identifier getJobId()
          Returns the job identifier.
 java.lang.String getJobName()
          Returns the job name.
 JobStatistics getJobStatistics()
          Returns the statistics of the job definition.
 Identifier getJobStreamInstanceId()
          Returns the job stream instance identifier.
 java.lang.String getJobStreamName()
          Returns the job stream name.
 LockData getLockData()
          Returns null, since this object has no lock data.
 ModifyData getModifyData()
          Returns null, since this object has no modification data.
 java.lang.String getName()
          Returns the job name.
 TWSHeader getObjectHeader()
          Returns this object, which also acts as a TWS header.
 TWSKey getObjectKey()
          Returns null, since this object has no key.
 java.util.Date getRunDate()
          Returns the date and time of this job run.
 java.util.Date getStartTime()
          Returns the job start time.
 JobRunStatus getStatus()
          Returns the job run status.
 long getTotalCPUTime()
          Returns the total CPU time of this job run.
 long getTotalElapsedTime()
          Returns the total elapsed time of this job run.
 java.lang.String getWorkstationName()
          Returns the name of the workstation where the job was run.
 int hashCode()
          Returns a hash code for this JobHistoryRun object.
 void setJobDefinitionId(Identifier identifier)
          Sets the job definition identifier.
 void setJobId(Identifier identifier)
          Sets the job identifier.
 void setJobName(java.lang.String value)
          Sets the job name.
 void setJobStatistics(JobStatistics statistics)
          Sets the statistics of the job definition.
 void setJobStreamInstanceId(Identifier identifier)
          Sets the job stream instance identifier.
 void setJobStreamName(java.lang.String value)
          Sets the job stream name.
 void setRunDate(java.util.Date value)
          Sets the date and time of this job run.
 void setStartTime(java.util.Date value)
          Sets the job start time.
 void setStatus(JobRunStatus value)
          Sets the job run status.
 void setTotalCPUTime(long value)
          Sets the total CPU time of this job run.
 void setTotalElapsedTime(long value)
          Sets the total elapsed time of this job run.
 void setWorkstationName(java.lang.String value)
          Sets the name of the workstation where the job was run.
 java.lang.String toString()
          Returns a string representation of this JobHistoryRun 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

JobHistoryRun

public JobHistoryRun()
Creates an empty JobHistoryRun object.

Method Detail

getId

public Identifier getId()
Returns the job identifier.

Specified by:
getId in interface TWSObject
Returns:
The job identifier.

getName

public java.lang.String getName()
Returns the job name.

Specified by:
getName in interface TWSObject
Returns:
The job name.

getObjectKey

public TWSKey getObjectKey()
Returns null, since this object has no key.

Specified by:
getObjectKey in interface TWSObject
Returns:
Null, since this object has no key.

getObjectHeader

public TWSHeader getObjectHeader()
Returns this object, which also acts as a TWS header.

Specified by:
getObjectHeader in interface TWSObject
Returns:
This object, which also acts as a TWS header.

getModifyData

public ModifyData getModifyData()
Returns null, since this object has no modification data.

Specified by:
getModifyData in interface TWSObject
Returns:
Null, since this object has no modification data.

getLockData

public LockData getLockData()
Returns null, since this object has no lock data.

Specified by:
getLockData in interface TWSObject
Returns:
Null, since this object has no lock data.

getJobStreamName

public java.lang.String getJobStreamName()
Returns the job stream name.

Returns:
The job stream name.

getJobName

public java.lang.String getJobName()
Returns the job name.

Returns:
The job name.

getWorkstationName

public java.lang.String getWorkstationName()
Returns the name of the workstation where the job was run.

Returns:
The name of the workstation where the job was run.

getStartTime

public java.util.Date getStartTime()
Returns the job start time.

Returns:
The job start time.

getRunDate

public java.util.Date getRunDate()
Returns the date and time of this job run.

Returns:
The date and time of this job run.

getTotalCPUTime

public long getTotalCPUTime()
Returns the total CPU time of this job run.

Returns:
The total CPU time of this job run.

getTotalElapsedTime

public long getTotalElapsedTime()
Returns the total elapsed time of this job run.

Returns:
The total elapsed time of this job run.

getStatus

public JobRunStatus getStatus()
Returns the job run status.

Returns:
The job run status.

getJobId

public Identifier getJobId()
Returns the job identifier.

Returns:
The job identifier.

getJobStreamInstanceId

public Identifier getJobStreamInstanceId()
Returns the job stream instance identifier.

Returns:
The job stream instance identifier.

getJobDefinitionId

public Identifier getJobDefinitionId()
Returns the job definition identifier.

Returns:
The job definition identifier.

getJobStatistics

public JobStatistics getJobStatistics()
Returns the statistics of the job definition.

Returns:
The statistics of the job definition.

setJobStreamName

public void setJobStreamName(java.lang.String value)
Sets the job stream name.

Parameters:
value - The job stream name.

setJobName

public void setJobName(java.lang.String value)
Sets the job name.

Parameters:
value - The job name.

setWorkstationName

public void setWorkstationName(java.lang.String value)
Sets the name of the workstation where the job was run.

Parameters:
value - The name of the workstation where the job was run.

setStartTime

public void setStartTime(java.util.Date value)
Sets the job start time.

Parameters:
value - The job start time.

setRunDate

public void setRunDate(java.util.Date value)
Sets the date and time of this job run.

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

setTotalCPUTime

public void setTotalCPUTime(long value)
Sets the total CPU time of this job run.

Parameters:
value - The total CPU time of this job run.

setTotalElapsedTime

public void setTotalElapsedTime(long value)
Sets the total elapsed time of this job run.

Parameters:
value - The total elapsed time of this job run.

setStatus

public void setStatus(JobRunStatus value)
Sets the job run status.

Parameters:
value - The job run status.

setJobId

public void setJobId(Identifier identifier)
Sets the job identifier.

Parameters:
identifier - The job identifier.

setJobStreamInstanceId

public void setJobStreamInstanceId(Identifier identifier)
Sets the job stream instance identifier.

Parameters:
identifier - The job stream instance identifier.

setJobDefinitionId

public void setJobDefinitionId(Identifier identifier)
Sets the job definition identifier.

Parameters:
identifier - The job definition identifier.

setJobStatistics

public void setJobStatistics(JobStatistics statistics)
Sets the statistics of the job definition.

Parameters:
statistics - The statistics of the job definition.

equals

public boolean equals(java.lang.Object object)
Returns true if all fields of this JobHistoryRun 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 JobHistoryRun object.

Returns:
The object's hash code.

toString

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

Returns:
A text string including all JobHistoryRun fields.


Copyright © 2005 IBM All Rights Reserved.