Package org.lockss.laaws.crawler.model
Class CrawlStatus
java.lang.Object
org.lockss.laaws.crawler.model.CrawlStatus
The status of a single crawl.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddMimeTypesItem(MimeCounter mimeTypesItem) addSourcesItem(String sourcesItem) addStartUrlsItem(String startUrlsItem) bytesFetched(Long bytesFetched) booleanexcludedItems(Counter excludedItems) fetchedItems(Counter fetchedItems) @NotNull StringgetAuId()The id for the au.@NotNull StringThe name for the au.The number of bytes fetched.@NotNull StringThe id of the crawler used for this crawl.getDepth()The depth of the crawl.@NotNull LongThe timestamp for the end of the crawl.@Valid CounterGet errors@Valid CounterGet excludedItems@Valid CounterGet fetchedItems@NotNull StringgetJobId()The id for the crawl.@NotNull @Valid org.lockss.util.rest.crawler.JobStatusGet jobStatus@Valid List<MimeCounter>The list of urls by mimeType.@Valid CounterGet notModifiedItems@Valid CounterGet parsedItems@Valid CounterGet pendingItems@NotNull IntegerThe priority for this crawl.getProxy()The proxy used for crawling.The refetch depth of the crawl.The sources to use for the crawl.@NotNull LongThe timestamp for the start of crawl.The array of start urls.@NotNull StringgetType()The type of crawl.inthashCode()True if the crawl is active.True if the crawl has errored.True if the crawl waiting to start.jobStatus(org.lockss.util.rest.crawler.JobStatus jobStatus) mimeTypes(List<MimeCounter> mimeTypes) notModifiedItems(Counter notModifiedItems) parsedItems(Counter parsedItems) pendingItems(Counter pendingItems) refetchDepth(Integer refetchDepth) voidvoidvoidsetBytesFetched(Long bytesFetched) voidsetCrawlerId(String crawlerId) voidvoidsetEndTime(Long endTime) voidvoidsetExcludedItems(Counter excludedItems) voidsetFetchedItems(Counter fetchedItems) voidsetIsActive(Boolean isActive) voidsetIsError(Boolean isError) voidsetIsWaiting(Boolean isWaiting) voidvoidsetJobStatus(org.lockss.util.rest.crawler.JobStatus jobStatus) voidsetMimeTypes(List<MimeCounter> mimeTypes) voidsetNotModifiedItems(Counter notModifiedItems) voidsetParsedItems(Counter parsedItems) voidsetPendingItems(Counter pendingItems) voidsetPriority(Integer priority) voidvoidsetRefetchDepth(Integer refetchDepth) voidsetSources(List<String> sources) voidsetStartTime(Long startTime) voidsetStartUrls(List<String> startUrls) voidtoString()
-
Constructor Details
-
CrawlStatus
public CrawlStatus()
-
-
Method Details
-
jobId
-
getJobId
The id for the crawl.- Returns:
- jobId
-
setJobId
-
auId
-
getAuId
The id for the au.- Returns:
- auId
-
setAuId
-
auName
-
getAuName
The name for the au.- Returns:
- auName
-
setAuName
-
type
-
getType
The type of crawl.- Returns:
- type
-
setType
-
startUrls
-
addStartUrlsItem
-
getStartUrls
The array of start urls.- Returns:
- startUrls
-
setStartUrls
-
priority
-
getPriority
The priority for this crawl.- Returns:
- priority
-
setPriority
-
crawlerId
-
getCrawlerId
The id of the crawler used for this crawl.- Returns:
- crawlerId
-
setCrawlerId
-
sources
-
addSourcesItem
-
getSources
The sources to use for the crawl.- Returns:
- sources
-
setSources
-
depth
-
getDepth
The depth of the crawl.- Returns:
- depth
-
setDepth
-
refetchDepth
-
getRefetchDepth
The refetch depth of the crawl.- Returns:
- refetchDepth
-
setRefetchDepth
-
proxy
-
getProxy
The proxy used for crawling.- Returns:
- proxy
-
setProxy
-
startTime
-
getStartTime
The timestamp for the start of crawl.- Returns:
- startTime
-
setStartTime
-
endTime
-
getEndTime
The timestamp for the end of the crawl.- Returns:
- endTime
-
setEndTime
-
jobStatus
-
getJobStatus
@NotNull @Valid public @NotNull @Valid org.lockss.util.rest.crawler.JobStatus getJobStatus()Get jobStatus- Returns:
- jobStatus
-
setJobStatus
public void setJobStatus(org.lockss.util.rest.crawler.JobStatus jobStatus) -
isWaiting
-
isIsWaiting
True if the crawl waiting to start.- Returns:
- isWaiting
-
setIsWaiting
-
isActive
-
isIsActive
True if the crawl is active.- Returns:
- isActive
-
setIsActive
-
isError
-
isIsError
True if the crawl has errored.- Returns:
- isError
-
setIsError
-
bytesFetched
-
getBytesFetched
The number of bytes fetched.- Returns:
- bytesFetched
-
setBytesFetched
-
fetchedItems
-
getFetchedItems
Get fetchedItems- Returns:
- fetchedItems
-
setFetchedItems
-
excludedItems
-
getExcludedItems
Get excludedItems- Returns:
- excludedItems
-
setExcludedItems
-
notModifiedItems
-
getNotModifiedItems
Get notModifiedItems- Returns:
- notModifiedItems
-
setNotModifiedItems
-
parsedItems
-
getParsedItems
Get parsedItems- Returns:
- parsedItems
-
setParsedItems
-
pendingItems
-
getPendingItems
Get pendingItems- Returns:
- pendingItems
-
setPendingItems
-
errors
-
getErrors
Get errors- Returns:
- errors
-
setErrors
-
mimeTypes
-
addMimeTypesItem
-
getMimeTypes
The list of urls by mimeType.- Returns:
- mimeTypes
-
setMimeTypes
-
equals
-
hashCode
public int hashCode() -
toString
-