Class MultipleConnectionTcpSourceStage
java.lang.Object
teetime.framework.AbstractStage
teetime.framework.AbstractProducerStage<IMonitoringRecord>
kieker.analysis.generic.source.tcp.MultipleConnectionTcpSourceStage
public class MultipleConnectionTcpSourceStage extends teetime.framework.AbstractProducerStage<IMonitoringRecord>
This is a multi connection tcp source stage.
- Since:
- 1.15
- Author:
- Reiner Jung
-
Field Summary
-
Constructor Summary
Constructors Constructor Description MultipleConnectionTcpSourceStage(int inputPort, int bufferSize, ITraceMetadataRewriter recordRewriter)
Create a single threaded multi connection tcp reader stage. -
Method Summary
Modifier and Type Method Description protected void
execute()
protected void
onTerminating()
void
rejectNewConnection()
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, onValidating, removeDynamicPort, removeDynamicPort, setPaused, setStateless, shouldBeTerminated, signalAlreadyReceived, terminateStage, toString, workCompleted
-
Constructor Details
-
MultipleConnectionTcpSourceStage
public MultipleConnectionTcpSourceStage(int inputPort, int bufferSize, ITraceMetadataRewriter recordRewriter)Create a single threaded multi connection tcp reader stage.- Parameters:
inputPort
- used to acceptIMonitoringRecord
s and string registry entries.bufferSize
- capacity of the receiving bufferrecordRewriter
- rewriting records
-
-
Method Details
-
execute
protected void execute()- Specified by:
execute
in classteetime.framework.AbstractStage
-
rejectNewConnection
public void rejectNewConnection() -
onTerminating
protected void onTerminating()- Overrides:
onTerminating
in classteetime.framework.AbstractStage
-