-
- All Implemented Interfaces:
-
ai.platon.pulsar.context.PulsarContext,java.lang.AutoCloseable
public final class StaticPulsarContext extends BasicPulsarContext
-
-
Field Summary
Fields Modifier and Type Field Description private final ImmutableConfigunmodifiedConfigprivate final ChainedUrlNormalizerurlNormalizersprivate final WebDbwebDbprivate final GlobalCacheFactoryglobalCacheFactoryprivate final InjectComponentinjectComponentprivate final BatchFetchComponentfetchComponentprivate final ParseComponentparseComponentprivate final UpdateComponentupdateComponentprivate final LoadComponentloadComponentprivate final CrawlLoopscrawlLoopsprivate final BooleanisActiveprivate final Integeridprivate final GlobalCacheglobalCacheprivate final UrlPoolcrawlPoolprivate final LongstartTimeprivate final ConcurrentSkipListMap<Integer, PulsarSession>sessionsprivate final AbstractApplicationContextapplicationContextprivate final PulsarEnvironmentpulsarEnvironment
-
Constructor Summary
Constructors Constructor Description StaticPulsarContext(StaticApplicationContext applicationContext)
-
Method Summary
Modifier and Type Method Description ImmutableConfiggetUnmodifiedConfig()The unmodified config ChainedUrlNormalizergetUrlNormalizers()Url normalizers WebDbgetWebDb()The web db GlobalCacheFactorygetGlobalCacheFactory()The global cache InjectComponentgetInjectComponent()The injection component BatchFetchComponentgetFetchComponent()The fetch component ParseComponentgetParseComponent()The parse component UpdateComponentgetUpdateComponent()The update component LoadComponentgetLoadComponent()The load component CrawlLoopsgetCrawlLoops()The main loop final BooleangetIsActive()IntegergetId()The context id GlobalCachegetGlobalCache()UrlPoolgetCrawlPool()final LonggetStartTime()The start time final ConcurrentSkipListMap<Integer, PulsarSession>getSessions()All open sessions final AbstractApplicationContextgetApplicationContext()final PulsarEnvironmentgetPulsarEnvironment()-
Methods inherited from class ai.platon.pulsar.context.support.StaticPulsarContext
createSession -
Methods inherited from class ai.platon.pulsar.context.support.BasicPulsarContext
await, close, closeSession, delete, delete, exists, fetchState, flush, get, getBean, getBean, getBeanOrNull, getBeanOrNull, getOrNull, inject, inject, load, load, load, loadAll, loadAll, loadAllAsync, loadAsync, loadDeferred, normalize, normalize, normalize, normalize, normalizeOrNull, normalizeOrNull, 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
-
getUnmodifiedConfig
ImmutableConfig getUnmodifiedConfig()
The unmodified config
-
getUrlNormalizers
ChainedUrlNormalizer getUrlNormalizers()
Url normalizers
-
getWebDb
WebDb getWebDb()
The web db
-
getGlobalCacheFactory
GlobalCacheFactory getGlobalCacheFactory()
The global cache
-
getInjectComponent
InjectComponent getInjectComponent()
The injection component
-
getFetchComponent
BatchFetchComponent getFetchComponent()
The fetch component
-
getParseComponent
ParseComponent getParseComponent()
The parse component
-
getUpdateComponent
UpdateComponent getUpdateComponent()
The update component
-
getLoadComponent
LoadComponent getLoadComponent()
The load component
-
getCrawlLoops
CrawlLoops getCrawlLoops()
The main loop
-
getIsActive
final Boolean getIsActive()
-
getGlobalCache
GlobalCache getGlobalCache()
-
getCrawlPool
UrlPool getCrawlPool()
-
getStartTime
final Long getStartTime()
The start time
-
getSessions
final ConcurrentSkipListMap<Integer, PulsarSession> getSessions()
All open sessions
-
getApplicationContext
final AbstractApplicationContext getApplicationContext()
-
getPulsarEnvironment
final PulsarEnvironment getPulsarEnvironment()
-
-
-
-