|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object dk.netarkivet.common.distribute.NetarkivetMessage dk.netarkivet.harvester.distribute.HarvesterMessage dk.netarkivet.harvester.harvesting.distribute.CrawlStatusMessage
public class CrawlStatusMessage
Instances of this class are sent by a HarvestControllerServer to the THE_SCHED queue to indicate the progress of a heritrix crawl. They are collected and processed by the HarvestSchedulerMonitorServer.
This class is immutable
Field Summary |
---|
Fields inherited from class dk.netarkivet.common.distribute.NetarkivetMessage |
---|
replyOfId |
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
java.lang.String |
getHarvestErrorDetails()
Get-method for private field harvestErrorDetails. |
java.lang.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. |
java.lang.String |
getUploadErrorDetails()
Get-method for private field uploadErrorDetails. |
java.lang.String |
getUploadErrors()
Get-method for private field uploadErrors. |
void |
setHarvestErrorDetails(java.lang.String harvestErrorDetails)
Set-method for private field harvestErrorDetails. |
void |
setHarvestErrors(java.lang.String harvestErrors)
Set-method for private field harvestErrors. |
void |
setUploadErrorDetails(java.lang.String uploadErrorDetails)
Set-method for private field uploadErrorDetails. |
void |
setUploadErrors(java.lang.String uploadErrors)
Set-method for private field uploadErrors. |
java.lang.String |
toString()
Human readable version of object. |
Methods inherited from class dk.netarkivet.common.distribute.NetarkivetMessage |
---|
getErrMsg, getID, getReplyOfId, getReplyTo, getTo, hasBeenSent, isOk, setNotOk, setNotOk |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
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)
Method Detail |
---|
public long getJobID()
public JobStatus getStatusCode()
public HarvestReport getDomainHarvestReport()
public void accept(HarvesterMessageVisitor v)
accept
in class HarvesterMessage
v
- A message visitorpublic java.lang.String toString()
toString
in class NetarkivetMessage
public java.lang.String getHarvestErrors()
public void setHarvestErrors(java.lang.String harvestErrors)
harvestErrors
- The value for harvest errors.
ArgumentNotValid
- if null argumentpublic java.lang.String getHarvestErrorDetails()
public void setHarvestErrorDetails(java.lang.String harvestErrorDetails)
harvestErrorDetails
- The value for harvest error details.
ArgumentNotValid
- if null argumentpublic java.lang.String getUploadErrors()
public void setUploadErrors(java.lang.String uploadErrors)
uploadErrors
- The value for upload errors.
ArgumentNotValid
- if null argumentpublic java.lang.String getUploadErrorDetails()
public void setUploadErrorDetails(java.lang.String uploadErrorDetails)
uploadErrorDetails
- The value for upload error details.
ArgumentNotValid
- if null argument
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |