Class BrowserPrivacyContext
-
- All Implemented Interfaces:
-
ai.platon.pulsar.browser.privacy.PrivacyContext,java.lang.AutoCloseable,kotlin.Comparable
public class BrowserPrivacyContext extends AbstractPrivacyContext
-
-
Field Summary
Fields Modifier and Type Field Description private final BrowserIdbrowserIdprivate final WebDriverContextdriverContextprivate final ProxyContextproxyContextprivate final ProxyEntryproxyEntryprivate final BooleanisRetiredprivate final BooleanisActiveprivate final BooleanisReadyprivate final BooleanisFullCapacityprivate final Map<String, Object>stateprivate final ProxyPoolManagerproxyPoolManagerprivate final WebDriverPoolManagerdriverPoolManagerprivate final CoreMetricscoreMetricsprivate final PathbaseDirprivate final ImmutableConfigconfprivate final Stringdisplayprivate final DurationelapsedTimeprivate final FloatfailureRateprivate final FloatfailureRateThresholdprivate final ProfileIdidprivate final DurationidleTimeprivate 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 AtomicIntegerprivacyLeakMinorWarningsprivate final AtomicIntegerprivacyLeakWarningsprivate final BrowserProfileprofileprivate final StringreadableStateprivate final Integerseqprivate final DoublesmallPageRateprivate final InstantstartTimeprivate final FloatsuccessRateprivate WebDriverFetcherwebdriverFetcher
-
Constructor Summary
Constructors Constructor Description BrowserPrivacyContext(ProxyPoolManager proxyPoolManager, WebDriverPoolManager driverPoolManager, CoreMetrics coreMetrics, ImmutableConfig conf, BrowserProfile profile)
-
Method Summary
Modifier and Type Method Description final BrowserIdgetBrowserId()final WebDriverContextgetDriverContext()final ProxyContextgetProxyContext()final ProxyEntrygetProxyEntry()BooleanisRetired()BooleanisActive()BooleanisReady()BooleanisFullCapacity()Map<String, Object>getState()final ProxyPoolManagergetProxyPoolManager()final WebDriverPoolManagergetDriverPoolManager()final CoreMetricsgetCoreMetrics()FetchResultopen(String url)FetchResultopen(String url, LoadOptions options)Unitmaintain()IntegerpromisedWebDriverCount()WebDriversubscribeWebDriver()StringbuildReport()Unitreport()Unitclose()Closing call stack:PrivacyContextManager. -
Methods inherited from class ai.platon.pulsar.browser.privacy.AbstractPrivacyContext
buildStatusString, compareTo, dismiss, equals, formatState, getBaseDir, getConf, getDisplay, getElapsedTime, getFailureRate, getFailureRateThreshold, getId, getIdleTime, getLastActiveTime, getMaximumWarnings, getMeterFinishes, getMeterSmallPages, getMeterSuccesses, getMeterTasks, getMinimumThroughput, getMinorWarningFactor, getPrivacyLeakMinorWarnings, getPrivacyLeakWarnings, getProfile, getReadableState, getSeq, getSmallPageRate, getStartTime, getSuccessRate, getWebdriverFetcher, hasWebDriverPromise, hashCode, isClosed, isGood, isHighFailureRate, isIdle, isLeaked, isUnderLoaded, markLeaked, markMinorWarning, markSuccess, markWarning, markWarning, open, run, setWebdriverFetcher -
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, BrowserProfile profile)
-
-
Method Detail
-
getBrowserId
final BrowserId getBrowserId()
-
getDriverContext
final WebDriverContext getDriverContext()
-
getProxyContext
final ProxyContext getProxyContext()
-
getProxyEntry
final ProxyEntry getProxyEntry()
-
isFullCapacity
Boolean isFullCapacity()
-
getProxyPoolManager
final ProxyPoolManager getProxyPoolManager()
-
getDriverPoolManager
final WebDriverPoolManager getDriverPoolManager()
-
getCoreMetrics
final CoreMetrics getCoreMetrics()
-
open
FetchResult open(String url, LoadOptions options)
- Parameters:
url- The url to fetchoptions- Load options
-
promisedWebDriverCount
Integer promisedWebDriverCount()
-
subscribeWebDriver
WebDriver subscribeWebDriver()
-
buildReport
String buildReport()
-
-
-
-