@Immutable @ThreadSafe public class CrawlJob extends Object
Constructor and Description |
---|
CrawlJob(UUID datasetKey,
EndpointType endpointType,
URI targetUrl,
int attempt,
Map<String,String> properties)
Creates a new crawl job.
|
CrawlJob(UUID datasetKey,
Integer attempt,
EndpointType endpointType,
URI targetUrl)
Constructor with mandatory fields.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
int |
getAttempt() |
UUID |
getDatasetKey() |
EndpointType |
getEndpointType() |
Map<String,String> |
getProperties()
Used to save protocol specific information (e.g.
|
String |
getProperty(String name) |
URI |
getTargetUrl() |
int |
hashCode() |
String |
toString() |
public CrawlJob(UUID datasetKey, EndpointType endpointType, URI targetUrl, int attempt, @Nullable Map<String,String> properties)
datasetKey
- of the dataset to crawlendpointType
- of the datasettargetUrl
- of the datasetattempt
- a monotonously increasing counter, increased every time we try to crawl a dataset whether that
attempt is successful or notproperties
- a way to provide protocol or crawl specific optionspublic CrawlJob(UUID datasetKey, Integer attempt, EndpointType endpointType, URI targetUrl)
datasetKey
- of the dataset to crawlendpointType
- of the datasettargetUrl
- of the datasetattempt
- a monotonously increasing counter, increased every time we try to crawl a dataset whether that
attempt is successful or notpublic UUID getDatasetKey()
public EndpointType getEndpointType()
public Map<String,String> getProperties()
public URI getTargetUrl()
public int getAttempt()
public String getProperty(String name)
Copyright © 2024 Global Biodiversity Information Facility (GBIF). All rights reserved.