public class PipeReader extends teetime.framework.AbstractProducerStage<IMonitoringRecord> implements IPipeReader
Constructor and Description |
---|
PipeReader(java.lang.String pipeName)
Creates a new instance of this class using the given parameters.
|
Modifier and Type | Method and Description |
---|---|
protected void |
execute()
Blocks until the associated pipe is being closed.
|
boolean |
newMonitoringRecord(IMonitoringRecord rec)
This method sends a given records directly to the output port.
|
void |
notifyPipeClosed()
Called to notify the reader that the pipe is closed.
|
void |
terminateStage() |
getOutputPort, getTerminationStrategy
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, toString, workCompleted
public PipeReader(java.lang.String pipeName)
configuration
- The configuration for this component.projectContext
- The project context for this component.protected void execute()
execute
in class teetime.framework.AbstractStage
public boolean newMonitoringRecord(IMonitoringRecord rec)
newMonitoringRecord
in interface IPipeReader
rec
- The new record object.public void notifyPipeClosed()
notifyPipeClosed
in interface IPipeReader
public void terminateStage()
terminateStage
in class teetime.framework.AbstractStage
Copyright 2020 Kieker Project, http://kieker-monitoring.net