dk.netarkivet.harvester.datamodel
Class JobStatusInfo
java.lang.Object
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 jobstatus
- The current status of the JobharvestDefinitionID
- The Id of the harvestdefinition behind
this jobharvestDefinition
- The name of the harvestdefinition behind
this jobharvestNum
- The number of times a harvestdefinition has been
performedharvestErrors
- Any errors encountered during the actual harvestuploadErrors
- Any errors encountered during the upload of the
result filesorderXMLname
- The name of the Heritrix Template used by this jobdomainCount
- The number of domain-configurations used for this jobsubmittedDate
- The time when this job was submittedstartDate
- The time when this job startedendDate
- The time when this job finishedresubmittedAsJobWithID
- The id of the job this job was resubmitted
as (possibly null)
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.