Class CrawlOptions
-
- All Implemented Interfaces:
-
ai.platon.pulsar.common.config.Parameterized
public final class CrawlOptions extends CommonOptions
Created by vincent on 17-3-18. Copyright @ 2013-2023 Platon AI. All rights reserved
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classCrawlOptions.Companion
-
Field Summary
Fields Modifier and Type Field Description public final static CrawlOptionsDEFAULTprivate Integerverboseprivate DurationfetchIntervalprivate IntegerfetchPriorityprivate Integerscoreprivate Integerdepthprivate StringzoneIdprivate Map<String, Double>keywordsprivate StringindexerUrlprivate final LinkOptionslinkOptionsprivate BooleanisHelpprivate BooleanexpandAtSignprivate BooleanacceptUnknownOptionsprivate BooleanallowParameterOverwritingprivate final Stringargsprivate final Array<String>argvpublic final static CrawlOptions.CompanionCompanion
-
Constructor Summary
Constructors Constructor Description CrawlOptions()CrawlOptions(String args)CrawlOptions(String args, ImmutableConfig conf)CrawlOptions(Array<String> argv, ImmutableConfig conf)CrawlOptions(Array<String> argv)
-
Method Summary
Modifier and Type Method Description final IntegergetVerbose()final UnitsetVerbose(Integer verbose)final DurationgetFetchInterval()final UnitsetFetchInterval(Duration fetchInterval)final IntegergetFetchPriority()final UnitsetFetchPriority(Integer fetchPriority)final IntegergetScore()final UnitsetScore(Integer score)final IntegergetDepth()final UnitsetDepth(Integer depth)final StringgetZoneId()final UnitsetZoneId(String zoneId)final Map<String, Double>getKeywords()final UnitsetKeywords(Map<String, Double> keywords)final StringgetIndexerUrl()final UnitsetIndexerUrl(String indexerUrl)final LinkOptionsgetLinkOptions()ParamsgetParams()StringtoString()-
Methods inherited from class ai.platon.pulsar.common.options.CommonOptions
isHelp, setHelp -
Methods inherited from class ai.platon.pulsar.common.options.PulsarOptions
addObjects, equals, getAcceptUnknownOptions, getAllowParameterOverwriting, getArgs, getArgv, getExpandAtSign, hashCode, parse, parseOrExit, setAcceptUnknownOptions, setAllowParameterOverwriting, setExpandAtSign, setObjects, toArgsMap, toArgv, toCmdLine, toMutableArgsMap, usage -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getVerbose
final Integer getVerbose()
-
setVerbose
final Unit setVerbose(Integer verbose)
-
getFetchInterval
final Duration getFetchInterval()
-
setFetchInterval
final Unit setFetchInterval(Duration fetchInterval)
-
getFetchPriority
final Integer getFetchPriority()
-
setFetchPriority
final Unit setFetchPriority(Integer fetchPriority)
-
getKeywords
final Map<String, Double> getKeywords()
-
setKeywords
final Unit setKeywords(Map<String, Double> keywords)
-
getIndexerUrl
final String getIndexerUrl()
-
setIndexerUrl
final Unit setIndexerUrl(String indexerUrl)
-
getLinkOptions
final LinkOptions getLinkOptions()
-
getParams
Params getParams()
-
-
-
-