Class BasicPulsarContext
-
- All Implemented Interfaces:
-
ai.platon.pulsar.skeleton.context.PulsarContext,java.lang.AutoCloseable
public class BasicPulsarContext extends AbstractPulsarContext
The main entry point for pulsar functionality.
A PulsarContext can be used to inject, fetch, load, parse, store Web pages.
-
-
Field Summary
Fields Modifier and Type Field Description private final BooleanisActiveprivate final Integeridprivate final ImmutableConfigconfigurationprivate final ChainedUrlNormalizerurlNormalizerprivate final ChainedUrlNormalizerurlNormalizerOrNullprivate final WebDbwebDbprivate final GlobalCacheFactoryglobalCacheFactoryprivate final BatchFetchComponentfetchComponentprivate final ParseComponentparseComponentprivate final UpdateComponentupdateComponentprivate final LoadComponentloadComponentprivate final GlobalCacheglobalCacheprivate final BrowserManagerbrowserManagerprivate final TaskLoopstaskLoopsprivate final LongstartTimeprivate final ConcurrentSkipListMap<Long, AbstractPulsarSession>sessionsprivate final AbstractApplicationContextapplicationContext
-
Constructor Summary
Constructors Constructor Description BasicPulsarContext(AbstractApplicationContext applicationContext)
-
Method Summary
Modifier and Type Method Description BasicPulsarSessioncreateSession()Create a session BasicPulsarSessioncreateSession(PulsarSettings settings)Create a pulsar session -
Methods inherited from class ai.platon.pulsar.skeleton.context.support.AbstractPulsarContext
await, capture, chat, chat, close, closeSession, delete, delete, exists, fetchState, flush, get, get, getApplicationContext, getBean, getBean, getBeanOrNull, getBeanOrNull, getBrowserManager, getConfiguration, getContent, getContentAsString, getFetchComponent, getGlobalCache, getGlobalCacheFactory, getId, getLoadComponent, getOrCreateSession, getOrCreateSession, getOrNull, getOrNull, getParseComponent, getSessions, getStartTime, getTaskLoops, getUpdateComponent, getUrlNormalizer, getUrlNormalizerOrNull, getWebDb, isActive, load, load, load, loadAll, loadAll, loadAllAsync, loadAsync, loadDeferred, normalize, normalize, normalize, normalize, normalizeOrNull, normalizeOrNull, open, parse, persist, registerClosable, registerShutdownHook, scan, scan, scan, submit, submitAll -
Methods inherited from class ai.platon.pulsar.skeleton.context.PulsarContext
launchDefaultBrowser, launchPrototypeBrowser, launchRandomTempBrowser, launchSystemDefaultBrowser -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
createSession
BasicPulsarSession createSession()
Create a session
-
createSession
BasicPulsarSession createSession(PulsarSettings settings)
Create a pulsar session
-
-
-
-