-
- All Implemented Interfaces:
-
ai.platon.pulsar.common.config.Parameterized,java.lang.AutoCloseable
public final class CoreMetrics implements Parameterized, AutoCloseable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classCoreMetrics.Companion
-
Field Summary
-
Constructor Summary
Constructors Constructor Description CoreMetrics(MiscMessageWriter messageWriter, ImmutableConfig conf)
-
Method Summary
-
-
Constructor Detail
-
CoreMetrics
CoreMetrics(MiscMessageWriter messageWriter, ImmutableConfig conf)
-
-
Method Detail
-
getGroupMode
final URLUtil.GroupMode getGroupMode()
-
getMaxHostFailureEvents
final Integer getMaxHostFailureEvents()
-
getStartTime
final Instant getStartTime()
-
getElapsedTime
final Duration getElapsedTime()
-
getUrlStatistics
final ConcurrentHashMap<String, UrlStat> getUrlStatistics()
Tracking statistics for each host
-
getUnreachableHosts
final ConcurrentSkipListSet<String> getUnreachableHosts()
Tracking unreachable hosts
-
getTimeoutUrls
final ConcurrentSkipListSet<String> getTimeoutUrls()
Tracking hosts who is failed to fetch tasks. A host is considered to be a unreachable host if there are too many failure
-
getMovedUrls
final ConcurrentSkipListSet<String> getMovedUrls()
-
getFailedUrls
final ConcurrentSkipListSet<String> getFailedUrls()
-
getDeadUrls
final ConcurrentSkipListSet<String> getDeadUrls()
-
getFailedHosts
final ConcurrentHashMultiset<String> getFailedHosts()
-
getMeterTotalNetworkIFsRecvMBytes
final Meter getMeterTotalNetworkIFsRecvMBytes()
-
getTasks
final Meter getTasks()
The total bytes of page content of all success web pages
-
getSuccessTasks
final Meter getSuccessTasks()
-
getFinishedTasks
final Meter getFinishedTasks()
-
getPersists
final MultiMetric getPersists()
-
getContentPersists
final MultiMetric getContentPersists()
-
getMeterContentMBytes
final MultiMetric getMeterContentMBytes()
-
getPersistContentMBytes
final MultiMetric getPersistContentMBytes()
-
getMeterContentBytes
final Meter getMeterContentBytes()
-
getHistogramContentBytes
final Histogram getHistogramContentBytes()
-
getPageImages
final Histogram getPageImages()
-
getPageAnchors
final Histogram getPageAnchors()
-
getPageNumbers
final Histogram getPageNumbers()
-
getPageSmallTexts
final Histogram getPageSmallTexts()
-
getPageHeights
final Histogram getPageHeights()
-
getRealTimeNetworkIFsRecvBytes
final Long getRealTimeNetworkIFsRecvBytes()
-
getInitNetworkIFsRecvBytes
final Long getInitNetworkIFsRecvBytes()
The total all bytes received by the hardware at the application startup
-
getTotalNetworkIFsRecvBytes
final Long getTotalNetworkIFsRecvBytes()
The total all bytes received by the hardware last read from system
-
setTotalNetworkIFsRecvBytes
final Unit setTotalNetworkIFsRecvBytes(Long totalNetworkIFsRecvBytes)
The total all bytes received by the hardware last read from system
-
getNetworkIFsRecvBytes
final Long getNetworkIFsRecvBytes()
-
getNetworkIFsRecvBytesPerSecond
final Long getNetworkIFsRecvBytesPerSecond()
-
getNetworkIFsRecvBytesPerPage
final Long getNetworkIFsRecvBytesPerPage()
-
getFinishedTasksPerSecond
final Float getFinishedTasksPerSecond()
-
getSuccessTasksPerSecond
final Float getSuccessTasksPerSecond()
-
getParams
Params getParams()
-
isReachable
final Boolean isReachable(String url)
-
isUnreachable
final Boolean isUnreachable(String url)
-
trackFailedUrl
final Unit trackFailedUrl(String url)
-
trackFailedUrls
final Unit trackFailedUrls(Collection<String> urls)
-
markTaskStart
final Unit markTaskStart()
-
markTaskStart
final Unit markTaskStart(Integer size)
-
trackSuccess
final Unit trackSuccess(WebPage page)
Available hosts statistics
-
trackTimeout
final Unit trackTimeout(String url)
-
trackMoved
final Unit trackMoved(String url)
-
trackHostUnreachable
final Boolean trackHostUnreachable(String url, Integer occurrences)
- Parameters:
url- The url
-
countHostTasks
final Integer countHostTasks(String host)
-
formatStatus
final String formatStatus()
-
updateSystemInfo
final Unit updateSystemInfo()
-
-
-
-