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 ImmutableConfigunmodifiedConfigprivate final ChainedUrlNormalizerurlNormalizerprivate final ChainedUrlNormalizerurlNormalizerOrNullprivate final WebDbwebDbprivate final GlobalCacheFactoryglobalCacheFactoryprivate final BatchFetchComponentfetchComponentprivate final ParseComponentparseComponentprivate final UpdateComponentupdateComponentprivate final LoadComponentloadComponentprivate final GlobalCacheglobalCacheprivate final UrlPoolcrawlPoolprivate final CrawlLoopscrawlLoopsprivate final LongstartTimeprivate final ConcurrentSkipListMap<Integer, AbstractPulsarSession>sessionsprivate final AbstractApplicationContextapplicationContextprivate final PulsarEnvironmentpulsarEnvironment
-
Constructor Summary
Constructors Constructor Description BasicPulsarContext(AbstractApplicationContext applicationContext)
-
Method Summary
Modifier and Type Method Description BasicPulsarSessioncreateSession()Create a session -
Methods inherited from class ai.platon.pulsar.skeleton.context.support.AbstractPulsarContext
await, chat, chat, close, closeSession, delete, delete, exists, fetchState, flush, get, get, getApplicationContext, getBean, getBean, getBeanOrNull, getBeanOrNull, getContent, getContentAsString, getCrawlLoops, getCrawlPool, getFetchComponent, getGlobalCache, getGlobalCacheFactory, getId, getLoadComponent, getOrCreateSession, getOrNull, getOrNull, getParseComponent, getPulsarEnvironment, getSessions, getStartTime, getUnmodifiedConfig, 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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
createSession
BasicPulsarSession createSession()
Create a session
-
-
-
-