-
- All Implemented Interfaces:
-
java.lang.AutoCloseable
public abstract class PrivacyContext implements AutoCloseable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classPrivacyContext.Companion
-
Field Summary
Fields Modifier and Type Field Description private final Integersequenceprivate final Stringdisplayprivate final FloatminimumThroughputprivate final IntegermaximumWarningsprivate final IntegerminorWarningFactorprivate final AtomicIntegerprivacyLeakWarningsprivate final AtomicIntegerprivacyLeakMinorWarningsprivate final MetermeterTasksprivate final MetermeterSuccessesprivate final MetermeterFinishesprivate final MetermeterSmallPagesprivate final DoublesmallPageRateprivate final InstantstartTimeprivate InstantlastActiveTimeprivate final DurationelapsedTimeprivate final DurationidleTimeoutprivate final BooleanisIdleprivate final AtomicIntegernumRunningTasksprivate final Set<String>historyUrlprivate final AtomicBooleanclosedprivate final BooleanisGoodprivate final BooleanisLeakedprivate final BooleanisActiveprivate final PrivacyContextIdidprivate final ImmutableConfigconf
-
Constructor Summary
Constructors Constructor Description PrivacyContext(PrivacyContextId id, ImmutableConfig conf)
-
Method Summary
-
-
Constructor Detail
-
PrivacyContext
PrivacyContext(PrivacyContextId id, ImmutableConfig conf)
-
-
Method Detail
-
getSequence
final Integer getSequence()
-
getDisplay
final String getDisplay()
-
getMinimumThroughput
final Float getMinimumThroughput()
-
getMaximumWarnings
final Integer getMaximumWarnings()
-
getMinorWarningFactor
final Integer getMinorWarningFactor()
-
getPrivacyLeakWarnings
final AtomicInteger getPrivacyLeakWarnings()
-
getPrivacyLeakMinorWarnings
final AtomicInteger getPrivacyLeakMinorWarnings()
-
getMeterTasks
final Meter getMeterTasks()
-
getMeterSuccesses
final Meter getMeterSuccesses()
-
getMeterFinishes
final Meter getMeterFinishes()
-
getMeterSmallPages
final Meter getMeterSmallPages()
-
getSmallPageRate
final Double getSmallPageRate()
-
getStartTime
final Instant getStartTime()
-
getLastActiveTime
final Instant getLastActiveTime()
-
setLastActiveTime
final Unit setLastActiveTime(Instant lastActiveTime)
-
getElapsedTime
final Duration getElapsedTime()
-
getIdleTimeout
final Duration getIdleTimeout()
-
getNumRunningTasks
final AtomicInteger getNumRunningTasks()
-
getHistoryUrl
final Set<String> getHistoryUrl()
-
getClosed
final AtomicBoolean getClosed()
-
getIsLeaked
final Boolean getIsLeaked()
-
getIsActive
final Boolean getIsActive()
-
getId
final PrivacyContextId getId()
The data directory for this context, very context has it's own data directory
-
getConf
final ImmutableConfig getConf()
-
markSuccess
final Unit markSuccess()
-
markWarning
final Unit markWarning()
-
markWarning
final Unit markWarning(Integer n)
-
markMinorWarning
final Unit markMinorWarning()
-
markLeaked
final Integer markLeaked()
-
run
FetchResult run(FetchTask task, SuspendFunction2<FetchTask, WebDriver, FetchResult> browseFun)
-
doRun
abstract FetchResult doRun(FetchTask task, SuspendFunction2<FetchTask, WebDriver, FetchResult> browseFun)
-
-
-
-