dk.netarkivet.harvester.datamodel
Class JobStatusInfo

java.lang.Object
  extended by dk.netarkivet.harvester.datamodel.JobStatusInfo

public class JobStatusInfo
extends java.lang.Object

A simple tuple to deliver information on the status of jobs.


Constructor Summary
JobStatusInfo(long jobID, JobStatus status, long harvestDefinitionID, java.lang.String harvestDefinition, int harvestNum, java.lang.String harvestErrors, java.lang.String uploadErrors, java.lang.String orderXMLname, int domainCount, java.util.Date submittedDate, java.util.Date startDate, java.util.Date endDate, java.lang.Long resubmittedAsJobWithID)
          Constructor for the JobStatusInfo class.
 
Method Summary
 int getConfigCount()
           
 java.util.Date getEndDate()
           
 java.lang.String getHarvestDefinition()
           
 long getHarvestDefinitionID()
           
 java.lang.String getHarvestErrors()
           
 int getHarvestNum()
           
 long getJobID()
           
 java.lang.String getOrderXMLname()
           
 java.lang.Long getResubmittedAsJob()
           
 java.util.Date getStartDate()
           
 JobStatus getStatus()
           
 java.util.Date getSubmittedDate()
           
 java.lang.String getUploadErrors()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JobStatusInfo

JobStatusInfo(long jobID,
              JobStatus status,
              long harvestDefinitionID,
              java.lang.String harvestDefinition,
              int harvestNum,
              java.lang.String harvestErrors,
              java.lang.String uploadErrors,
              java.lang.String orderXMLname,
              int domainCount,
              java.util.Date submittedDate,
              java.util.Date startDate,
              java.util.Date endDate,
              java.lang.Long resubmittedAsJobWithID)
Constructor for the JobStatusInfo class.

Parameters:
jobID - The ID of the job
status - The current status of the Job
harvestDefinitionID - The Id of the harvestdefinition behind this job
harvestDefinition - The name of the harvestdefinition behind this job
harvestNum - The number of times a harvestdefinition has been performed
harvestErrors - Any errors encountered during the actual harvest
uploadErrors - Any errors encountered during the upload of the result files
orderXMLname - The name of the Heritrix Template used by this job
domainCount - The number of domain-configurations used for this job
submittedDate - The time when this job was submitted
startDate - The time when this job started
endDate - The time when this job finished
resubmittedAsJobWithID - The id of the job this job was resubmitted as (possibly null)
Method Detail

getJobID

public long getJobID()
Returns:
the ID of the job.

getStatus

public JobStatus getStatus()
Returns:
the current status of the Job

getHarvestDefinitionID

public long getHarvestDefinitionID()
Returns:
The Id of the harvestdefinition behind the job

getHarvestDefinition

public java.lang.String getHarvestDefinition()
Returns:
The name of the harvestdefinition behind the job.

getHarvestNum

public int getHarvestNum()
Returns:
the harvest number

getHarvestErrors

public java.lang.String getHarvestErrors()
Returns:
Any errors encountered during the actual harvest

getUploadErrors

public java.lang.String getUploadErrors()
Returns:
Any errors encountered during the upload of the result files.

getOrderXMLname

public java.lang.String getOrderXMLname()
Returns:
The name of the Heritrix Template used by the job.

getConfigCount

public int getConfigCount()
Returns:
The number of domain-configurations used for the job.

getSubmittedDate

public java.util.Date getSubmittedDate()
Returns:
The time when the job was submitted

getStartDate

public java.util.Date getStartDate()
Returns:
The time when the job started

getEndDate

public java.util.Date getEndDate()
Returns:
The time when the job finished

getResubmittedAsJob

public java.lang.Long getResubmittedAsJob()
Returns:
the ID of the job this job was resubmitted as. If null this job has not been resubmitted.