public class SeedRecord extends Object implements CoreAttributeConstants, Serializable, IdentityCacheable
A_ANNOTATIONS, A_CONTENT_TYPE, A_CREDENTIALS_KEY, A_DELAY_FACTOR, A_DISTANCE_FROM_SEED, A_DNS_FETCH_TIME, A_DNS_SERVER_IP_LABEL, A_FETCH_BEGAN_TIME, A_FETCH_COMPLETED_TIME, A_FORCE_RETIRE, A_FTP_CONTROL_CONVERSATION, A_FTP_FETCH_STATUS, A_HERITABLE_KEYS, A_HTML_BASE, A_HTTP_AUTH_CHALLENGES, A_HTTP_PROXY_HOST, A_HTTP_PROXY_PORT, A_MINIMUM_DELAY, A_MIRROR_PATH, A_NONFATAL_ERRORS, A_PRECALC_PRECEDENCE, A_PREREQUISITE_URI, A_RETRY_DELAY, A_RRECORD_SET_LABEL, A_RUNTIME_EXCEPTION, A_SOURCE_TAG, A_SUBMIT_DATA, A_WARC_RESPONSE_HEADERS, A_WHOIS_SERVER_IP, HEADER_TRUNC, LENGTH_TRUNC, TIMER_TRUNC, TRUNC_SUFFIX
Constructor and Description |
---|
SeedRecord(CrawlURI curi,
String disposition)
Create a record from the given CrawlURI and disposition string
|
SeedRecord(String uri,
String disposition)
Constructor for when a CrawlURI is unavailable; such
as when considering seeds not yet passed through as
CrawlURIs.
|
SeedRecord(String uri,
String disposition,
int statusCode,
String redirectUri)
Create a record from the given URI, disposition, HTTP status code,
and redirect URI.
|
Modifier and Type | Method and Description |
---|---|
protected void |
fillWith(CrawlURI curi,
String disposition)
Fill instance with given values; skips makeDirty so may be used
on initialization.
|
String |
getDisposition() |
String |
getKey() |
String |
getRedirectUri() |
int |
getStatusCode() |
String |
getUri() |
void |
makeDirty() |
void |
setIdentityCache(ObjectIdentityCache<?> cache) |
int |
sortShiftStatusCode() |
void |
updateWith(CrawlURI curi,
String disposition)
A later/repeat report of the same seed has arrived; update with
latest.
|
public SeedRecord(CrawlURI curi, String disposition)
curi
- CrawlURI, already processed as reported to StatisticsTrackerdisposition
- descriptive disposition stringpublic SeedRecord(String uri, String disposition)
uri
- disposition
- public void updateWith(CrawlURI curi, String disposition)
curi
- disposition
- protected void fillWith(CrawlURI curi, String disposition)
curi
- disposition
- public String getDisposition()
public String getRedirectUri()
public int getStatusCode()
public String getUri()
public int sortShiftStatusCode()
public String getKey()
getKey
in interface IdentityCacheable
public void makeDirty()
makeDirty
in interface IdentityCacheable
public void setIdentityCache(ObjectIdentityCache<?> cache)
setIdentityCache
in interface IdentityCacheable
Copyright © 2003-2014 Internet Archive. All Rights Reserved.