public class RefreshDocuments extends CrawlerCommand implements com.exalead.util.Checkable, java.io.Serializable, Cloneable
Modifier and Type | Field and Description |
---|---|
static boolean |
DEFAULT_FORCE |
static boolean |
DEFAULT_FORCE_FOLLOW |
static int |
DEFAULT_PRIORITY |
boolean |
force |
boolean |
forceFollow |
int |
maxAgeS |
java.lang.String |
prefix |
int |
priority |
crawlerName
Constructor and Description |
---|
RefreshDocuments() |
RefreshDocuments(RefreshDocuments o)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
void |
check(boolean deep,
java.lang.String errorContext)
Checks this RefreshDocuments.
|
RefreshDocuments |
clone()
Creates and returns a deep copy of this RefreshDocuments.
|
static RefreshDocuments |
fromString(java.lang.String s)
String representation of this RefreshDocuments.
|
int |
getMaxAgeS()
How old a document must be to be refreshed.
|
java.lang.String |
getPrefix()
If not null, refresh only documents whose url matches this prefix.
|
int |
getPriority()
Which priority to refresh the documents with.
|
boolean |
isForce()
Whether to force refreshing the urls, preventing the crawler from ignoring "too recently crawled" urls.
|
boolean |
isForceFollow()
Whether to force following links on refreshed documents, even if they are already known.
|
RefreshDocuments |
makeCopy()
Creates and returns a deep copy of this RefreshDocuments.
|
static RefreshDocuments |
readFrom(java.io.InputStream is)
Read this RefreshDocuments from an XML fragment.
|
void |
setForce(boolean force)
Whether to force refreshing the urls, preventing the crawler from ignoring "too recently crawled" urls.
|
void |
setForceFollow(boolean forceFollow)
Whether to force following links on refreshed documents, even if they are already known.
|
void |
setMaxAgeS(int maxAgeS)
How old a document must be to be refreshed.
|
void |
setPrefix(java.lang.String prefix)
If not null, refresh only documents whose url matches this prefix.
|
void |
setPriority(int priority)
Which priority to refresh the documents with.
|
java.lang.String |
toString()
String representation of this RefreshDocuments.
|
RefreshDocuments |
withCrawlerName(java.lang.String crawlerName) |
RefreshDocuments |
withForce(boolean force) |
RefreshDocuments |
withForce(java.lang.Boolean force) |
RefreshDocuments |
withForceFollow(boolean forceFollow) |
RefreshDocuments |
withForceFollow(java.lang.Boolean forceFollow) |
RefreshDocuments |
withMaxAgeS(int maxAgeS) |
RefreshDocuments |
withMaxAgeS(java.lang.Integer maxAgeS) |
RefreshDocuments |
withPrefix(java.lang.String prefix) |
RefreshDocuments |
withPriority(int priority) |
RefreshDocuments |
withPriority(java.lang.Integer priority) |
void |
writeTo(java.io.OutputStream os)
Write this RefreshDocuments as an XML fragment
|
getCrawlerName, setCrawlerName
public java.lang.String prefix
public int maxAgeS
public int priority
public static final int DEFAULT_PRIORITY
public boolean force
public static final boolean DEFAULT_FORCE
public boolean forceFollow
public static final boolean DEFAULT_FORCE_FOLLOW
public RefreshDocuments()
public RefreshDocuments(RefreshDocuments o)
public RefreshDocuments withCrawlerName(java.lang.String crawlerName)
withCrawlerName
in class CrawlerCommand
public void setPrefix(java.lang.String prefix)
public java.lang.String getPrefix()
public RefreshDocuments withPrefix(java.lang.String prefix)
public void setMaxAgeS(int maxAgeS)
public int getMaxAgeS()
public RefreshDocuments withMaxAgeS(int maxAgeS)
public RefreshDocuments withMaxAgeS(java.lang.Integer maxAgeS)
public void setPriority(int priority)
public int getPriority()
public RefreshDocuments withPriority(int priority)
public RefreshDocuments withPriority(java.lang.Integer priority)
public void setForce(boolean force)
public boolean isForce()
public RefreshDocuments withForce(boolean force)
public RefreshDocuments withForce(java.lang.Boolean force)
public void setForceFollow(boolean forceFollow)
public boolean isForceFollow()
public RefreshDocuments withForceFollow(boolean forceFollow)
public RefreshDocuments withForceFollow(java.lang.Boolean forceFollow)
public RefreshDocuments clone()
clone
in class CrawlerCommand
public RefreshDocuments makeCopy()
makeCopy
in class CrawlerCommand
public static RefreshDocuments readFrom(java.io.InputStream is) throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBException
public void writeTo(java.io.OutputStream os) throws javax.xml.bind.JAXBException, java.io.IOException
writeTo
in class CrawlerCommand
javax.xml.bind.JAXBException
java.io.IOException
public static RefreshDocuments fromString(java.lang.String s) throws javax.xml.bind.JAXBException, java.io.UnsupportedEncodingException
javax.xml.bind.JAXBException
java.io.UnsupportedEncodingException
public java.lang.String toString()
toString
in class CrawlerCommand
public void check(boolean deep, java.lang.String errorContext) throws com.exalead.util.TypedException
check
in interface com.exalead.util.Checkable
check
in class CrawlerCommand
com.exalead.util.TypedException
Copyright © 2021 Dassault Systèmes, All Rights Reserved.