Class BrowserPrivacyContext
-
- All Implemented Interfaces:
-
java.lang.AutoCloseable,kotlin.Comparable
public class BrowserPrivacyContext extends PrivacyContext
-
-
Field Summary
Fields Modifier and Type Field Description private final BooleanisRetiredprivate final BooleanisReadyprivate final BooleanisFullCapacityprivate final ProxyPoolManagerproxyPoolManagerprivate final WebDriverPoolManagerdriverPoolManagerprivate final CoreMetricscoreMetricsprivate final PathbaseDirprivate final ImmutableConfigconfprivate final Stringdisplayprivate final DurationelapsedTimeprivate final FloatfailureRateprivate final FloatfailureRateThresholdprivate final PrivacyAgentIdidprivate final DurationidelTimeprivate final BooleanisActiveprivate final BooleanisClosedprivate final BooleanisGoodprivate final BooleanisHighFailureRateprivate final BooleanisIdleprivate final BooleanisLeakedprivate final BooleanisUnderLoadedprivate final InstantlastActiveTimeprivate final IntegermaximumWarningsprivate final MetermeterFinishesprivate final MetermeterSmallPagesprivate final MetermeterSuccessesprivate final MetermeterTasksprivate final FloatminimumThroughputprivate final IntegerminorWarningFactorprivate final PrivacyAgentprivacyAgentprivate final AtomicIntegerprivacyLeakMinorWarningsprivate final AtomicIntegerprivacyLeakWarningsprivate final StringreadableStateprivate final Integerseqprivate final DoublesmallPageRateprivate final InstantstartTimeprivate final FloatsuccessRate
-
Constructor Summary
Constructors Constructor Description BrowserPrivacyContext(ProxyPoolManager proxyPoolManager, WebDriverPoolManager driverPoolManager, CoreMetrics coreMetrics, ImmutableConfig conf, PrivacyAgent privacyAgent)
-
Method Summary
Modifier and Type Method Description BooleanisRetired()BooleanisReady()BooleanisFullCapacity()final ProxyPoolManagergetProxyPoolManager()final WebDriverPoolManagergetDriverPoolManager()final CoreMetricsgetCoreMetrics()FetchResultdoRun(FetchTask task, SuspendFunction2<FetchTask, WebDriver, FetchResult> fetchFun)Unitmaintain()IntegerpromisedWebDriverCount()WebDriversubscribeWebDriver()StringgetReport()Unitreport()Unitclose()Closing call stack:PrivacyContextManager. -
Methods inherited from class ai.platon.pulsar.crawl.fetch.privacy.PrivacyContext
compareTo, dismiss, equals, getBaseDir, getConf, getDisplay, getElapsedTime, getFailureRate, getFailureRateThreshold, getId, getIdelTime, getLastActiveTime, getMaximumWarnings, getMeterFinishes, getMeterSmallPages, getMeterSuccesses, getMeterTasks, getMinimumThroughput, getMinorWarningFactor, getPrivacyAgent, getPrivacyLeakMinorWarnings, getPrivacyLeakWarnings, getReadableState, getSeq, getSmallPageRate, getStartTime, getSuccessRate, hasWebDriverPromise, hashCode, isActive, isClosed, isGood, isHighFailureRate, isIdle, isLeaked, isUnderLoaded, markLeaked, markMinorWarning, markSuccess, markWarning, markWarning, run, takeSnapshot -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
BrowserPrivacyContext
BrowserPrivacyContext(ProxyPoolManager proxyPoolManager, WebDriverPoolManager driverPoolManager, CoreMetrics coreMetrics, ImmutableConfig conf, PrivacyAgent privacyAgent)
-
-
Method Detail
-
isFullCapacity
Boolean isFullCapacity()
-
getProxyPoolManager
final ProxyPoolManager getProxyPoolManager()
-
getDriverPoolManager
final WebDriverPoolManager getDriverPoolManager()
-
getCoreMetrics
final CoreMetrics getCoreMetrics()
-
doRun
FetchResult doRun(FetchTask task, SuspendFunction2<FetchTask, WebDriver, FetchResult> fetchFun)
-
promisedWebDriverCount
Integer promisedWebDriverCount()
-
subscribeWebDriver
@Beta() WebDriver subscribeWebDriver()
-
-
-
-