Class JMSReaderStage
java.lang.Object
teetime.framework.AbstractStage
teetime.framework.AbstractProducerStage<IMonitoringRecord>
kieker.analysis.generic.source.jms.JMSReaderStage
public class JMSReaderStage extends teetime.framework.AbstractProducerStage<IMonitoringRecord>
Reads monitoring records from a (remote or local) JMS queue by using the
read-method from JMSReaderLogicModule. JMSReaderLogicModule also delivers
read records to the output port.
- Since:
- 0.95a
- Author:
- Andre van Hoorn, Matthias Rohr, Lars Bluemke
-
Field Summary
-
Constructor Summary
Constructors Constructor Description JMSReaderStage(java.lang.String jmsProviderUrl, java.lang.String jmsDestination, java.lang.String jmsFactoryLookupName)
Creates a new JMSReader. -
Method Summary
Modifier and Type Method Description protected void
execute()
protected void
workCompleted()
Terminates the reader logic in addition to the following.Methods inherited from class teetime.framework.AbstractProducerStage
getOutputPort, getTerminationStrategy
Methods inherited from class teetime.framework.AbstractStage
abort, addInputPortRemovedListener, addOutputPortRemovedListener, compareAndSetBeingExecuted, createInputPort, createInputPort, createInputPort, createInputPort, createOutputPort, createOutputPort, createOutputPort, createOutputPort, declareActive, declarePassive, executeByFramework, getCurrentState, getId, getInputPorts, getOutputPorts, getOwningThread, isActive, isBeingExecuted, isPaused, isProducer, isStateless, onSignal, onStarting, onTerminating, onValidating, removeDynamicPort, removeDynamicPort, setPaused, setStateless, shouldBeTerminated, signalAlreadyReceived, terminateStage, toString
-
Constructor Details
-
JMSReaderStage
public JMSReaderStage(java.lang.String jmsProviderUrl, java.lang.String jmsDestination, java.lang.String jmsFactoryLookupName) throws AnalysisConfigurationExceptionCreates a new JMSReader.- Parameters:
jmsProviderUrl
- The name of the configuration determining the JMS provider URL, e.g.tcp://localhost:3035/
jmsDestination
- The name of the configuration determining the JMS destination, e.g.queue1
.jmsFactoryLookupName
- The name of the configuration determining the name of the used JMS factory, e.g.org.exolab.jms.jndi.InitialContextFactory
.- Throws:
AnalysisConfigurationException
- on errors when configuring the JMSReader
-
-
Method Details
-
execute
protected void execute()- Specified by:
execute
in classteetime.framework.AbstractStage
-
workCompleted
protected void workCompleted()Terminates the reader logic in addition to the following.- Overrides:
workCompleted
in classteetime.framework.AbstractStage
-