-
- All Implemented Interfaces:
-
ai.platon.pulsar.crawl.fetch.driver.BrowserInstance,java.lang.AutoCloseable
public abstract class AbstractBrowserInstance implements BrowserInstance
-
-
Field Summary
Fields Modifier and Type Field Description private final BooleanisGUIprivate final AtomicIntegertabCountprivate final List<NavigateEntry>navigateHistoryprivate InstantactiveTimeprivate final DurationidleTimeoutprivate final BooleanisIdleprivate final BrowserInstanceIdidprivate final LauncherOptionslauncherOptionsprivate final ChromeOptionslaunchOptions
-
Constructor Summary
Constructors Constructor Description AbstractBrowserInstance(BrowserInstanceId id, LauncherOptions launcherOptions, ChromeOptions launchOptions)
-
Method Summary
Modifier and Type Method Description final BooleangetIsGUI()AtomicIntegergetTabCount()List<NavigateEntry>getNavigateHistory()final InstantgetActiveTime()final UnitsetActiveTime(Instant activeTime)final DurationgetIdleTimeout()BooleangetIsIdle()BrowserInstanceIdgetId()LauncherOptionsgetLauncherOptions()ChromeOptionsgetLaunchOptions()Unitawait()UnitsignalAll()-
Methods inherited from class ai.platon.pulsar.crawl.fetch.driver.AbstractBrowserInstance
launch -
Methods inherited from class ai.platon.pulsar.crawl.fetch.driver.BrowserInstance
close -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
AbstractBrowserInstance
AbstractBrowserInstance(BrowserInstanceId id, LauncherOptions launcherOptions, ChromeOptions launchOptions)
-
-
Method Detail
-
getTabCount
AtomicInteger getTabCount()
-
getNavigateHistory
List<NavigateEntry> getNavigateHistory()
-
getActiveTime
final Instant getActiveTime()
-
setActiveTime
final Unit setActiveTime(Instant activeTime)
-
getIdleTimeout
final Duration getIdleTimeout()
-
getId
BrowserInstanceId getId()
-
getLauncherOptions
LauncherOptions getLauncherOptions()
-
getLaunchOptions
ChromeOptions getLaunchOptions()
-
-
-
-