org.pentaho.di.job
Class JobEntryResult

java.lang.Object
  extended by org.pentaho.di.job.JobEntryResult
All Implemented Interfaces:
Cloneable, Comparable<JobEntryResult>, Comparator<JobEntryResult>

public class JobEntryResult
extends Object
implements Cloneable, Comparator<JobEntryResult>, Comparable<JobEntryResult>

This class holds the result of a job entry after it was executed. Things we want to keep track of are:

--> result of the execution (Result)

--> ...

Since:
16-mrt-2005
Author:
Matt

Constructor Summary
JobEntryResult()
          Creates a new empty job entry result...
JobEntryResult(Result result, String comment, String reason, JobEntryCopy copy)
          Deprecated. 
JobEntryResult(Result result, String logChannelId, String comment, String reason, String jobEntryName, int jobEntryNr, String jobEntryFilename)
          Creates a new job entry result...
 
Method Summary
 Object clone()
           
 int compare(JobEntryResult one, JobEntryResult two)
           
 int compareTo(JobEntryResult two)
           
 String getComment()
           
 String getJobEntryFilename()
           
 String getJobEntryName()
           
 int getJobEntryNr()
           
 String getLogChannelId()
           
 Date getLogDate()
           
 String getReason()
           
 Result getResult()
           
 void setComment(String comment)
           
 void setJobEntryFilename(String jobEntryFilename)
           
 void setJobEntryName(String jobEntryName)
           
 void setJobEntryNr(int jobEntryNr)
           
 void setLogDate(Date logDate)
           
 void setReason(String reason)
           
 void setResult(Result result)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

JobEntryResult

public JobEntryResult()
Creates a new empty job entry result...


JobEntryResult

public JobEntryResult(Result result,
                      String logChannelId,
                      String comment,
                      String reason,
                      String jobEntryName,
                      int jobEntryNr,
                      String jobEntryFilename)
Creates a new job entry result...

Parameters:
result - the result of the job entry
comment - an optional comment
jobEntry - the job entry for which this is the result.

JobEntryResult

@Deprecated
public JobEntryResult(Result result,
                                 String comment,
                                 String reason,
                                 JobEntryCopy copy)
Deprecated. 

Method Detail

clone

public Object clone()
Overrides:
clone in class Object

setResult

public void setResult(Result result)
Parameters:
result - The result to set.

getResult

public Result getResult()
Returns:
Returns the result.

getComment

public String getComment()
Returns:
Returns the comment.

setComment

public void setComment(String comment)
Parameters:
comment - The comment to set.

getReason

public String getReason()
Returns:
Returns the reason.

setReason

public void setReason(String reason)
Parameters:
reason - The reason to set.

getLogDate

public Date getLogDate()
Returns:
Returns the logDate.

setLogDate

public void setLogDate(Date logDate)
Parameters:
logDate - The logDate to set.

getJobEntryName

public String getJobEntryName()
Returns:
the jobEntryName

setJobEntryName

public void setJobEntryName(String jobEntryName)
Parameters:
jobEntryName - the jobEntryName to set

getJobEntryFilename

public String getJobEntryFilename()
Returns:
the jobEntryFilename

setJobEntryFilename

public void setJobEntryFilename(String jobEntryFilename)
Parameters:
jobEntryFilename - the jobEntryFilename to set

getJobEntryNr

public int getJobEntryNr()
Returns:
the jobEntryNr

setJobEntryNr

public void setJobEntryNr(int jobEntryNr)
Parameters:
jobEntryNr - the jobEntryNr to set

compare

public int compare(JobEntryResult one,
                   JobEntryResult two)
Specified by:
compare in interface Comparator<JobEntryResult>

compareTo

public int compareTo(JobEntryResult two)
Specified by:
compareTo in interface Comparable<JobEntryResult>

getLogChannelId

public String getLogChannelId()