public class CrawlStatusMessage extends HarvesterMessage implements Serializable
This class is immutable
replyOfId
Constructor and Description |
---|
CrawlStatusMessage(long jobID,
JobStatus statusCode)
Alternate constructor, which does not have the DomainHarvestreport as argument.
|
CrawlStatusMessage(long jobID,
JobStatus statusCode,
HarvestReport harvestReport)
Creates an instance of this class corresponding to a job.
|
Modifier and Type | Method and Description |
---|---|
void |
accept(HarvesterMessageVisitor v)
Should be implemented as a part of the visitor pattern.
|
HarvestReport |
getDomainHarvestReport()
Returns the generated domain harvest report object by this crawl job.
|
String |
getHarvestErrorDetails()
Get-method for private field harvestErrorDetails.
|
String |
getHarvestErrors()
Get-method for private field harvestErrors.
|
long |
getJobID()
Returns the jobID of this crawl job.
|
JobStatus |
getStatusCode()
Returns the status code of this crawl job.
|
String |
getUploadErrorDetails()
Get-method for private field uploadErrorDetails.
|
String |
getUploadErrors()
Get-method for private field uploadErrors.
|
void |
setHarvestErrorDetails(String harvestErrorDetails)
Set-method for private field harvestErrorDetails.
|
void |
setHarvestErrors(String harvestErrors)
Set-method for private field harvestErrors.
|
void |
setUploadErrorDetails(String uploadErrorDetails)
Set-method for private field uploadErrorDetails.
|
void |
setUploadErrors(String uploadErrors)
Set-method for private field uploadErrors.
|
String |
toString()
Human readable version of object.
|
getErrMsg, getID, getReplyOfId, getReplyTo, getTo, hasBeenSent, isOk, setNotOk, setNotOk
public CrawlStatusMessage(long jobID, JobStatus statusCode, HarvestReport harvestReport)
jobID
- the unique identifier for the crawl job to which this message refersstatusCode
- All values are accepted, except nullharvestReport
- A calculated domain harvest report produced by the crawl. May be null for no domain harvest
report.ArgumentNotValid
- If invalid arguments: jobID < 0L statusCode == nullpublic CrawlStatusMessage(long jobID, JobStatus statusCode)
jobID
- (see description for the other constructor)statusCode
- (see description for the other constructor)CrawlStatusMessage(long, JobStatus, HarvestReport)
public long getJobID()
public JobStatus getStatusCode()
public HarvestReport getDomainHarvestReport()
public void accept(HarvesterMessageVisitor v)
accept
in class HarvesterMessage
v
- A message visitorpublic String toString()
toString
in class NetarkivetMessage
public String getHarvestErrors()
public void setHarvestErrors(String harvestErrors)
harvestErrors
- The value for harvest errors.ArgumentNotValid
- if null argumentpublic String getHarvestErrorDetails()
public void setHarvestErrorDetails(String harvestErrorDetails)
harvestErrorDetails
- The value for harvest error details.ArgumentNotValid
- if null argumentpublic String getUploadErrors()
public void setUploadErrors(String uploadErrors)
uploadErrors
- The value for upload errors.ArgumentNotValid
- if null argumentpublic String getUploadErrorDetails()
public void setUploadErrorDetails(String uploadErrorDetails)
uploadErrorDetails
- The value for upload error details.ArgumentNotValid
- if null argumentCopyright © 2005–2015 The Royal Danish Library, the Danish State and University Library, the National Library of France and the Austrian National Library.. All rights reserved.