public class CrawlProgressMessage extends HarvesterMessage implements Serializable
Additionally this object extends HarvesterMessage
so that it can be sent on the JMS bus to be processed by
HarvestMonitor
.
Modifier and Type | Class and Description |
---|---|
class |
CrawlProgressMessage.CrawlServiceInfo
Wraps CrawlService MBean attributes.
|
class |
CrawlProgressMessage.CrawlServiceJobInfo
Wraps CrawlService.Job MBean attributes.
|
static class |
CrawlProgressMessage.CrawlStatus
The general status of a job in NAS.
|
replyOfId
Constructor and Description |
---|
CrawlProgressMessage(long harvestID,
long jobId)
Builds an empty message.
|
CrawlProgressMessage(long harvestID,
long jobId,
String progressStatisticsLegend)
Builds an empty message.
|
Modifier and Type | Method and Description |
---|---|
void |
accept(HarvesterMessageVisitor v)
Should be implemented as a part of the visitor pattern.
|
boolean |
crawlIsFinished()
Checks whether Heritrix has finished crawling the job.
|
long |
getHarvestID() |
CrawlProgressMessage.CrawlServiceInfo |
getHeritrixStatus() |
String |
getHostUrl() |
long |
getJobID() |
CrawlProgressMessage.CrawlServiceJobInfo |
getJobStatus() |
String |
getProgressStatisticsLegend() |
CrawlProgressMessage.CrawlStatus |
getStatus() |
boolean |
isPaused()
Returns true if the crawler has been paused, and thus not supposed to fetch anything.
|
void |
setHostUrl(String hostUrl) |
void |
setStatus(CrawlProgressMessage.CrawlStatus status) |
getErrMsg, getID, getReplyOfId, getReplyTo, getTo, hasBeenSent, isOk, setNotOk, setNotOk, toString
public CrawlProgressMessage(long harvestID, long jobId, String progressStatisticsLegend)
harvestID
- the harvest definition IDjobId
- the job IDprogressStatisticsLegend
- the legend of the progress statistics summary stringprogressStatisticsLegend
public CrawlProgressMessage(long harvestID, long jobId)
harvestID
- the harvest definition IDjobId
- the job IDpublic long getHarvestID()
public String getHostUrl()
public void setHostUrl(String hostUrl)
public CrawlProgressMessage.CrawlStatus getStatus()
public void setStatus(CrawlProgressMessage.CrawlStatus status)
public long getJobID()
public String getProgressStatisticsLegend()
public CrawlProgressMessage.CrawlServiceInfo getHeritrixStatus()
public CrawlProgressMessage.CrawlServiceJobInfo getJobStatus()
public void accept(HarvesterMessageVisitor v)
HarvesterMessage
accept
in class HarvesterMessage
v
- A message visitorpublic boolean isPaused()
public boolean crawlIsFinished()
Copyright © 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.