-
- All Implemented Interfaces:
-
ai.platon.pulsar.common.collect.collector.DataCollector
public abstract class AbstractDataCollector<E extends Object> implements DataCollector<E>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classAbstractDataCollector.Companion
-
Field Summary
Fields Modifier and Type Field Description private final Integercapacityprivate final Integeridprivate Stringnameprivate final Set<String>labelsprivate Stringlangprivate Stringcountryprivate Stringdistrictprivate final Integersizeprivate final IntegerexternalSizeprivate final IntegerestimatedExternalSizeprivate final IntegerestimatedSizeprivate IntegercollectCountprivate IntegercollectedCountprivate final InstantcreateTimeprivate InstantfirstCollectTimeprivate InstantlastCollectedTimeprivate InstantdeadTimeprivate final DurationcollectTimeprivate final BooleanisDead
-
Constructor Summary
Constructors Constructor Description AbstractDataCollector()
-
Method Summary
Modifier and Type Method Description IntegergetCapacity()The capacity IntegergetId()The collector id StringgetName()The collector name UnitsetName(String name)The collector name Set<String>getLabels()The task labels StringgetLang()Required website language UnitsetLang(String lang)Required website language StringgetCountry()Required website country UnitsetCountry(String country)Required website country StringgetDistrict()Required website district UnitsetDistrict(String district)Required website district IntegergetSize()IntegergetExternalSize()IntegergetEstimatedExternalSize()IntegergetEstimatedSize()IntegergetCollectCount()The total count of collect attempt UnitsetCollectCount(Integer collectCount)The total count of collect attempt IntegergetCollectedCount()The total collected count UnitsetCollectedCount(Integer collectedCount)The total collected count InstantgetCreateTime()InstantgetFirstCollectTime()UnitsetFirstCollectTime(Instant firstCollectTime)InstantgetLastCollectedTime()UnitsetLastCollectedTime(Instant lastCollectedTime)InstantgetDeadTime()UnitsetDeadTime(Instant deadTime)DurationgetCollectTime()BooleangetIsDead()IntegercollectTo(E element, List<E> sink)IntegercollectTo(Integer index, E element, List<E> sink)IntegercollectTo(Integer index, List<E> sink)Unitclear()StringtoString()-
-
Method Detail
-
getCapacity
Integer getCapacity()
The capacity
-
getCountry
String getCountry()
Required website country
-
setCountry
Unit setCountry(String country)
Required website country
-
getDistrict
String getDistrict()
Required website district
-
setDistrict
Unit setDistrict(String district)
Required website district
-
getExternalSize
Integer getExternalSize()
-
getEstimatedExternalSize
Integer getEstimatedExternalSize()
-
getEstimatedSize
Integer getEstimatedSize()
-
getCollectCount
Integer getCollectCount()
The total count of collect attempt
-
setCollectCount
Unit setCollectCount(Integer collectCount)
The total count of collect attempt
-
getCollectedCount
Integer getCollectedCount()
The total collected count
-
setCollectedCount
Unit setCollectedCount(Integer collectedCount)
The total collected count
-
getCreateTime
Instant getCreateTime()
-
getFirstCollectTime
Instant getFirstCollectTime()
-
setFirstCollectTime
Unit setFirstCollectTime(Instant firstCollectTime)
-
getLastCollectedTime
Instant getLastCollectedTime()
-
setLastCollectedTime
Unit setLastCollectedTime(Instant lastCollectedTime)
-
getDeadTime
Instant getDeadTime()
-
setDeadTime
Unit setDeadTime(Instant deadTime)
-
getCollectTime
Duration getCollectTime()
-
-
-
-