-
- 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 CrawlUrlNormalizersurlNormalizersprivate final WebDbwebDbprivate final GlobalCacheFactoryglobalCacheFactoryprivate final InjectComponentinjectComponentprivate final BatchFetchComponentfetchComponentprivate final ParseComponentparseComponentprivate final UpdateComponentupdateComponentprivate final LoadComponentloadComponentprivate final CrawlLoopscrawlLoopsprivate final StaticApplicationContextapplicationContextprivate final Integeridprivate final UrlPoolcrawlPoolprivate final LongstartTimeprivate final BooleanisActiveprivate final ConcurrentSkipListMap<Integer, PulsarSession>sessionsprivate final PulsarEnvironmentpulsarEnvironment
-
Constructor Summary
Constructors Constructor Description StaticPulsarContext(StaticApplicationContext applicationContext)
-
Method Summary
Modifier and Type Method Description ImmutableConfiggetUnmodifiedConfig()The unmodified config CrawlUrlNormalizersgetUrlNormalizers()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 StaticApplicationContextgetApplicationContext()IntegergetId()UrlPoolgetCrawlPool()final LonggetStartTime()The start time final BooleangetIsActive()final ConcurrentSkipListMap<Integer, PulsarSession>getSessions()All open sessions PulsarEnvironmentgetPulsarEnvironment()-
Methods inherited from class ai.platon.pulsar.context.support.StaticPulsarContext
createSession -
Methods inherited from class ai.platon.pulsar.context.support.BasicPulsarContext
await, clearCaches, 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
CrawlUrlNormalizers 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
-
getApplicationContext
StaticApplicationContext getApplicationContext()
-
getCrawlPool
UrlPool getCrawlPool()
-
getStartTime
final Long getStartTime()
The start time
-
getIsActive
final Boolean getIsActive()
-
getSessions
final ConcurrentSkipListMap<Integer, PulsarSession> getSessions()
All open sessions
-
getPulsarEnvironment
PulsarEnvironment getPulsarEnvironment()
-
-
-
-