Package kieker.analysis.generic
Class TeeFilter
java.lang.Object
teetime.framework.AbstractStage
teetime.framework.AbstractConsumerStage<I>
teetime.stage.basic.AbstractTransformation<E,E>
teetime.stage.basic.AbstractFilter<Object>
kieker.analysis.generic.TeeFilter
This filter has exactly one input port and one output port.
A simple message is printed to a configurable stream and all objects are forwarded to the output port.
- Since:
- 1.2
- Author:
- Matthias Rohr, Jan Waller, Lars Bluemke
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumPredefined types of streams for theTeeFilter.
STDLOG = standard log
STDOUT = standard output
STDERR = standard error output
NULL = filter doesn't print anything -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe default value of the encoding property which determines that the filter uses utf-8.static final booleanThe default value of the stream property which determines that the filter appends or overwrites a file.Fields inherited from class teetime.stage.basic.AbstractTransformation
outputPortFields inherited from class teetime.framework.AbstractConsumerStage
inputPortFields inherited from class teetime.framework.AbstractStage
logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidThis method receives incoming objects from the filter's input port.protected voidMethods inherited from class teetime.stage.basic.AbstractTransformation
getOutputPortMethods inherited from class teetime.framework.AbstractConsumerStage
createInputPort, execute, getInputPortMethods inherited from class teetime.framework.AbstractStage
abort, addInputPortRemovedListener, addOutputPortRemovedListener, compareAndSetBeingExecuted, createInputPort, createInputPort, createInputPort, createOutputPort, createOutputPort, createOutputPort, createOutputPort, declareActive, declarePassive, executeByFramework, getCurrentState, getId, getInputPorts, getOutputPorts, getOwningThread, getTerminationStrategy, isActive, isBeingExecuted, isPaused, isProducer, isStateless, onSignal, onStarting, onValidating, removeDynamicPort, removeDynamicPort, setPaused, setStateless, shouldBeTerminated, signalAlreadyReceived, terminateStage, toString, workCompletedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface teetime.stage.basic.ITransformation
getInputPort
-
Field Details
-
DEFAULT_ENCODING
The default value of the encoding property which determines that the filter uses utf-8.- See Also:
-
DEFAULT_STREAM_APPEND
public static final boolean DEFAULT_STREAM_APPENDThe default value of the stream property which determines that the filter appends or overwrites a file.- See Also:
-
-
Constructor Details
-
TeeFilter
Creates a new instance of this class using the given parameters. Uses one of the predefinedTeeFilter.TeeFilterStreamTypes.- Parameters:
streamType- Determines which of the predefinedTeeFilter.TeeFilterStreamTypes the filter uses.encoding- Determines which encoding the filter uses. Pass null for default encoding "UTF-8".
-
TeeFilter
Creates a new instance of this class using the given parameters. Uses aFileOutputStream.- Parameters:
fileName- The system dependent file name for theFileOutputStream.encoding- Determines which encoding the filter uses. Pass null for default encoding "UTF-8".append- Determines whether the filter appends or overwrites a file.
-
-
Method Details
-
onTerminating
protected void onTerminating()- Overrides:
onTerminatingin classteetime.framework.AbstractStage
-
execute
This method receives incoming objects from the filter's input port. Every object will be printed into a stream (based on the configuration) before the filter sends it to the output port.- Specified by:
executein classteetime.framework.AbstractConsumerStage<Object>- Parameters:
object- The new object.
-
getPrintStreamName
-