-
- All Implemented Interfaces:
-
ai.platon.pulsar.common.collect.collector.DataCollector,ai.platon.pulsar.common.collect.collector.PriorityDataCollector,kotlin.Comparable
public class CircularLocalFileHyperlinkCollector extends LocalFileHyperlinkCollector
-
-
Field Summary
Fields Modifier and Type Field Description private Stringnameprivate final Integercapacityprivate final StringfileNameprivate StringloadArgsprivate final List<Hyperlink>hyperlinksprivate final Integersizeprivate final Pathpathprivate IntegercollectCountprivate final DurationcollectTimeprivate IntegercollectedCountprivate Stringcountryprivate final InstantcreateTimeprivate InstantdeadTimeprivate Stringdistrictprivate final IntegerestimatedExternalSizeprivate final IntegerestimatedSizeprivate final IntegerexternalSizeprivate InstantfirstCollectTimeprivate final Integeridprivate final BooleanisDeadprivate final Set<String>labelsprivate Stringlangprivate InstantlastCollectedTimeprivate final Integerpriority
-
Constructor Summary
Constructors Constructor Description CircularLocalFileHyperlinkCollector(Path path, Priority13 priority)
-
Method Summary
-
Methods inherited from class ai.platon.pulsar.common.collect.collector.AbstractPriorityDataCollector
clear, collectTo, collectTo, collectTo, compareTo -
Methods inherited from class ai.platon.pulsar.common.collect.CircularLocalFileHyperlinkCollector
dump, hasMore -
Methods inherited from class ai.platon.pulsar.common.collect.collector.AbstractDataCollector
deepClear -
Methods inherited from class ai.platon.pulsar.common.collect.LocalFileHyperlinkCollector
toString -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
CircularLocalFileHyperlinkCollector
CircularLocalFileHyperlinkCollector(Path path, Priority13 priority)
-
-
Method Detail
-
getCapacity
Integer getCapacity()
The cache capacity, we assume that all items in the file are loaded into the cache
-
getFileName
final String getFileName()
-
getLoadArgs
final String getLoadArgs()
-
setLoadArgs
final Unit setLoadArgs(String loadArgs)
-
getHyperlinks
final List<Hyperlink> getHyperlinks()
-
getCollectCount
Integer getCollectCount()
-
setCollectCount
Unit setCollectCount(Integer collectCount)
-
getCollectTime
Duration getCollectTime()
-
getCollectedCount
Integer getCollectedCount()
-
setCollectedCount
Unit setCollectedCount(Integer collectedCount)
-
getCountry
String getCountry()
-
setCountry
Unit setCountry(String country)
-
getCreateTime
Instant getCreateTime()
-
getDeadTime
Instant getDeadTime()
-
setDeadTime
Unit setDeadTime(Instant deadTime)
-
getDistrict
String getDistrict()
-
setDistrict
Unit setDistrict(String district)
-
getEstimatedExternalSize
Integer getEstimatedExternalSize()
-
getEstimatedSize
Integer getEstimatedSize()
-
getExternalSize
Integer getExternalSize()
-
getFirstCollectTime
Instant getFirstCollectTime()
-
setFirstCollectTime
Unit setFirstCollectTime(Instant firstCollectTime)
-
getLastCollectedTime
Instant getLastCollectedTime()
-
setLastCollectedTime
Unit setLastCollectedTime(Instant lastCollectedTime)
-
getPriority
Integer getPriority()
-
-
-
-