public class DecomposedQueueMainProcessingUnit extends BaseMainProcessingUnit
| Modifier and Type | Class and Description |
|---|---|
class |
DecomposedQueueMainProcessingUnit.DecomposedQueueReaderProcessable |
protected class |
DecomposedQueueMainProcessingUnit.DecomposedQueueReaderWorker |
protected class |
DecomposedQueueMainProcessingUnit.DecomposedQueueWriterLoopWorker |
BaseProcessingUnit.EventLoopWorker, BaseProcessingUnit.LoopWorker| Modifier and Type | Field and Description |
|---|---|
protected org.openksavi.sponge.engine.ThreadPool |
asyncEventSetProcessorThreadPool
The thread pool used by the Main Processing Unit for asynchronous processing of event set processors.
|
protected org.openksavi.sponge.engine.ProcessableThreadPool |
decomposedQueueThreadPool
The thread pool used by the Main Processing Unit for listening to the decomposed queue.
|
protected org.openksavi.sponge.engine.ProcessableThreadPool |
listenerThreadPool
The thread pool used by the Main Processing Unit for listening to the Main Event Queue.
|
protected org.openksavi.sponge.engine.ThreadPool |
workerThreadPool
The thread pool used by the Main Processing Unit for worker threads.
|
handlerseventProcessorRegistrationListener, GET_ITERATION_TIMEOUT, lock| Constructor and Description |
|---|
DecomposedQueueMainProcessingUnit(String name,
org.openksavi.sponge.engine.Engine engine,
org.openksavi.sponge.engine.event.EventQueue inQueue,
org.openksavi.sponge.engine.event.EventQueue outQueue)
Creates a new main processing unit.
|
| Modifier and Type | Method and Description |
|---|---|
Runnable |
createWorker()
Creates the worker.
|
void |
doShutdown() |
void |
doStartup()
Starts up this managed entity.
|
org.openksavi.sponge.engine.ThreadPool |
getAsyncEventSetProcessorThreadPool() |
DecomposedQueue<org.openksavi.sponge.EventProcessorAdapter<?>> |
getDecomposedQueue() |
org.openksavi.sponge.engine.ProcessableThreadPool |
getDecomposedQueueThreadPool() |
org.openksavi.sponge.engine.ThreadPool |
getWorkerThreadPool() |
boolean |
processEvent(org.openksavi.sponge.event.Event event)
Processes an event.
|
protected void |
putIntoDecomposedQueue(org.apache.commons.lang3.tuple.Pair<org.openksavi.sponge.EventProcessorAdapter<?>,org.openksavi.sponge.event.Event> entry) |
void |
setDecomposedQueue(DecomposedQueue<org.openksavi.sponge.EventProcessorAdapter<?>> decomposedQueue) |
boolean |
supportsConcurrentListenerThreadPool() |
protected boolean |
supportsControlEventForProcessor(org.openksavi.sponge.ProcessorAdapter<?> processorAdapter) |
createHandlers, existsProcessor, getCorrelatorAdapterGroups, getHandler, getHandlers, getProcessorAdapterList, getRuleAdapterGroups, getTriggerAdapters, processorChanged, shutdownHandlers, startupHandlersaddProcessor, clearUnusedEventMapping, existsProcessor, getEventProcessorRegistrationListener, getEventProcessors, getInQueue, getOutQueue, getRegisteredProcessorAdapterMap, getThreadPoolManager, invalidateCache, removeAllProcessors, removeProcessor, resolveEventProcessors, setEventProcessorRegistrationListenergetEngine, getName, getService, getState, isFailed, isNew, isNewOrStartingOrRunning, isRunning, isStarting, isStopping, isTerminated, setEngine, setName, shutdown, startup, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddProcessor, existsProcessor, getRegisteredProcessorAdapterMap, removeAllProcessors, removeProcessorprotected org.openksavi.sponge.engine.ProcessableThreadPool listenerThreadPool
protected org.openksavi.sponge.engine.ProcessableThreadPool decomposedQueueThreadPool
protected org.openksavi.sponge.engine.ThreadPool workerThreadPool
protected org.openksavi.sponge.engine.ThreadPool asyncEventSetProcessorThreadPool
public DecomposedQueueMainProcessingUnit(String name, org.openksavi.sponge.engine.Engine engine, org.openksavi.sponge.engine.event.EventQueue inQueue, org.openksavi.sponge.engine.event.EventQueue outQueue)
name - name.engine - the engine.inQueue - input queue.outQueue - output queue.public void setDecomposedQueue(DecomposedQueue<org.openksavi.sponge.EventProcessorAdapter<?>> decomposedQueue)
public void doStartup()
doStartup in class BaseEngineModulepublic void doShutdown()
doShutdown in class BaseEngineModulepublic Runnable createWorker()
protected boolean supportsControlEventForProcessor(org.openksavi.sponge.ProcessorAdapter<?> processorAdapter)
public boolean processEvent(org.openksavi.sponge.event.Event event)
throws InterruptedException
event - an event.true if the event hasn't been processed by any adapters and should be put into the Output Queue.InterruptedException - if interrupted.protected void putIntoDecomposedQueue(org.apache.commons.lang3.tuple.Pair<org.openksavi.sponge.EventProcessorAdapter<?>,org.openksavi.sponge.event.Event> entry)
throws InterruptedException
InterruptedExceptionpublic boolean supportsConcurrentListenerThreadPool()
public DecomposedQueue<org.openksavi.sponge.EventProcessorAdapter<?>> getDecomposedQueue()
public org.openksavi.sponge.engine.ThreadPool getWorkerThreadPool()
public org.openksavi.sponge.engine.ThreadPool getAsyncEventSetProcessorThreadPool()
public org.openksavi.sponge.engine.ProcessableThreadPool getDecomposedQueueThreadPool()
Copyright © 2016–2017 Softelnet. All rights reserved.