Class AMQPReaderStage
java.lang.Object
teetime.framework.AbstractStage
teetime.framework.AbstractProducerStage<IMonitoringRecord>
kieker.analysis.generic.source.amqp.AMQPReaderStage
public class AMQPReaderStage extends teetime.framework.AbstractProducerStage<IMonitoringRecord>
Reader stage that reads monitoring records from an AMQP queue.
- Since:
- 1.12
- Author:
- Holger Knoche, Lars Bluemke, Sören Henning
-
Field Summary
-
Constructor Summary
Constructors Constructor Description AMQPReaderStage(java.lang.String uri, java.lang.String queueName, int heartbeat)
Creates a new AMQP reader. -
Method Summary
Modifier and Type Method Description protected void
execute()
void
workCompleted()
Terminates the reader logic by returning from read method and terminates the execution of the stage.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
-
AMQPReaderStage
public AMQPReaderStage(java.lang.String uri, java.lang.String queueName, int heartbeat)Creates a new AMQP reader.- Parameters:
uri
- The name of the configuration property for the server URI.queueName
- The name of the configuration property for the AMQP queue name.heartbeat
- The name of the configuration property for the heartbeat timeout.
-
-
Method Details
-
execute
protected void execute()- Specified by:
execute
in classteetime.framework.AbstractStage
-
workCompleted
public void workCompleted()Terminates the reader logic by returning from read method and terminates the execution of the stage.- Overrides:
workCompleted
in classteetime.framework.AbstractStage
-