public abstract class BaseMainProcessingUnit extends BaseProcessingUnit<EventProcessorAdapter<?>> implements MainProcessingUnit
BaseProcessingUnit.EventLoopWorker, BaseProcessingUnit.LoopWorker| Modifier and Type | Field and Description |
|---|---|
protected Map<ProcessorType,MainProcessingUnitHandler> |
handlers
Map of handlers.
|
eventProcessorRegistrationListener, GET_ITERATION_TIMEOUT, lock| Modifier | Constructor and Description |
|---|---|
protected |
BaseMainProcessingUnit(String name,
SpongeEngine engine,
EventQueue inQueue,
EventQueue outQueue)
Creates a new main processing unit.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
createHandlers() |
boolean |
existsProcessor(String name,
ProcessorType type) |
List<CorrelatorAdapterGroup> |
getCorrelatorAdapterGroups() |
MainProcessingUnitHandler |
getHandler(ProcessorType type) |
Map<ProcessorType,MainProcessingUnitHandler> |
getHandlers() |
protected <A extends ProcessorAdapter<?>> |
getProcessorAdapterList(ProcessorType type) |
List<RuleAdapterGroup> |
getRuleAdapterGroups() |
List<TriggerAdapter> |
getTriggerAdapters() |
protected void |
processorChanged(EventProcessorAdapter oldProcessor,
EventProcessorAdapter newProcessor) |
protected void |
shutdownHandlers() |
protected void |
startupHandlers()
Starts up handers.
|
addProcessor, clearUnusedEventMapping, existsProcessor, getEventProcessorRegistrationListener, getEventProcessors, getInQueue, getOutQueue, getRegisteredProcessorAdapterMap, getThreadPoolManager, invalidateCache, removeAllProcessors, removeProcessor, resolveEventProcessors, setEventProcessorRegistrationListenerdoShutdown, doStartup, getDescription, getDisplayName, getEngine, getInternalService, getName, getState, isFailed, isNew, isNewOrStartingOrRunning, isRunning, isStarting, isStopping, isTerminated, setDescription, setDisplayName, setEngine, setName, shutdown, startup, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAsyncEventSetProcessorThreadPool, getWorkerThreadPooladdProcessor, existsProcessor, getRegisteredProcessorAdapterMap, removeAllProcessors, removeProcessor, supportsConcurrentListenerThreadPoolisFailed, isNew, isRunning, isStarting, isStopping, isTerminated, shutdown, startupgetDescription, getDisplayName, getName, setDescription, setDisplayName, setNamecreateWorkerprotected Map<ProcessorType,MainProcessingUnitHandler> handlers
protected BaseMainProcessingUnit(String name, SpongeEngine engine, EventQueue inQueue, EventQueue outQueue)
name - name.engine - the engine.inQueue - input queue.outQueue - output queue.protected void createHandlers()
protected void startupHandlers()
protected void shutdownHandlers()
protected <A extends ProcessorAdapter<?>> List<A> getProcessorAdapterList(ProcessorType type)
public boolean existsProcessor(String name, ProcessorType type)
existsProcessor in interface MainProcessingUnitpublic List<TriggerAdapter> getTriggerAdapters()
getTriggerAdapters in interface MainProcessingUnitpublic List<RuleAdapterGroup> getRuleAdapterGroups()
getRuleAdapterGroups in interface MainProcessingUnitpublic List<CorrelatorAdapterGroup> getCorrelatorAdapterGroups()
getCorrelatorAdapterGroups in interface MainProcessingUnitpublic MainProcessingUnitHandler getHandler(ProcessorType type)
getHandler in interface MainProcessingUnitpublic Map<ProcessorType,MainProcessingUnitHandler> getHandlers()
protected void processorChanged(EventProcessorAdapter oldProcessor, EventProcessorAdapter newProcessor)
processorChanged in class BaseProcessingUnit<EventProcessorAdapter<?>>Copyright © 2016–2018 Softelnet. All rights reserved.