Class FetchTask
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enumFetchTask.Statepublic classFetchTask.Companion
-
Field Summary
Fields Modifier and Type Field Description private final AtomicReference<FetchTask.State>stateprivate ProxyEntryproxyEntryprivate final InstantcreatedTimeprivate final Stringurlprivate final Stringhrefprivate final VolatileConfigpageConfprivate final Stringdomainprivate final BooleanisCanceledprivate final BooleanisWorkingprivate final IntegerbatchIdprivate final Integerpriorityprivate final WebPagepageprivate final Fingerprintfingerprintprivate final IntegerbatchSizeprivate final IntegerbatchTaskIdprivate BatchStatbatchStatprivate final Integeridprivate IntegernRetriespublic final static FetchTask.CompanionCompanion
-
Method Summary
Modifier and Type Method Description final AtomicReference<FetchTask.State>getState()final ProxyEntrygetProxyEntry()final UnitsetProxyEntry(ProxyEntry proxyEntry)final InstantgetCreatedTime()final StringgetUrl()final StringgetHref()final VolatileConfiggetPageConf()final StringgetDomain()final BooleanisCanceled()final BooleanisWorking()final IntegergetBatchId()final IntegergetPriority()final WebPagegetPage()final FingerprintgetFingerprint()final IntegergetBatchSize()final IntegergetBatchTaskId()final BatchStatgetBatchStat()final UnitsetBatchStat(BatchStat batchStat)final IntegergetId()final IntegergetNRetries()final UnitsetNRetries(Integer nRetries)final UnitmarkReady()final UnitstartWork()final Unitcancel()final Unitdone()final Unitreset()final FetchTaskclone()IntegercompareTo(FetchTask other)Booleanequals(Object other)IntegerhashCode()StringtoString()-
-
Constructor Detail
-
FetchTask
FetchTask(Integer batchId, Integer priority, WebPage page, Fingerprint fingerprint, Integer batchSize, Integer batchTaskId, BatchStat batchStat, Integer id, Integer nRetries)
-
-
Method Detail
-
getState
final AtomicReference<FetchTask.State> getState()
-
getProxyEntry
final ProxyEntry getProxyEntry()
-
setProxyEntry
final Unit setProxyEntry(ProxyEntry proxyEntry)
-
getCreatedTime
final Instant getCreatedTime()
-
getUrl
final String getUrl()
-
getHref
final String getHref()
-
getPageConf
final VolatileConfig getPageConf()
-
getDomain
final String getDomain()
-
isCanceled
final Boolean isCanceled()
-
isWorking
final Boolean isWorking()
-
getBatchId
final Integer getBatchId()
-
getPriority
final Integer getPriority()
-
getPage
final WebPage getPage()
-
getFingerprint
final Fingerprint getFingerprint()
-
getBatchSize
final Integer getBatchSize()
-
getBatchTaskId
final Integer getBatchTaskId()
-
getBatchStat
final BatchStat getBatchStat()
-
setBatchStat
final Unit setBatchStat(BatchStat batchStat)
-
getId
final Integer getId()
-
getNRetries
final Integer getNRetries()
-
setNRetries
final Unit setNRetries(Integer nRetries)
-
equals
Boolean equals(Object other)
-
hashCode
Integer hashCode()
-
toString
String toString()
-
-
-
-