public class TeeFilter
extends teetime.stage.basic.AbstractFilter<java.lang.Object>
Modifier and Type | Class and Description |
---|---|
static class |
TeeFilter.TeeFilterStreamType
Predefined types of streams for the
TeeFilter .STDLOG = standard log STDOUT = standard output STDERR = standard error output NULL = filter doesn't print anything |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_ENCODING
The default value of the encoding property which determines that the filter uses utf-8.
|
static boolean |
DEFAULT_STREAM_APPEND
The default value of the stream property which determines that the filter appends or overwrites a file.
|
Constructor and Description |
---|
TeeFilter(java.lang.String fileName,
java.lang.String encoding,
boolean append)
Creates a new instance of this class using the given parameters.
|
TeeFilter(TeeFilter.TeeFilterStreamType streamType,
java.lang.String encoding)
Creates a new instance of this class using the given parameters.
|
Modifier and Type | Method and Description |
---|---|
protected void |
execute(java.lang.Object object)
This method receives incoming objects from the filter's input port.
|
java.lang.String |
getPrintStreamName() |
protected void |
onTerminating() |
createInputPort, execute, getInputPort
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, workCompleted
public static final java.lang.String DEFAULT_ENCODING
public static final boolean DEFAULT_STREAM_APPEND
public TeeFilter(TeeFilter.TeeFilterStreamType streamType, java.lang.String encoding)
TeeFilter.TeeFilterStreamType
s.streamType
- Determines which of the predefined TeeFilter.TeeFilterStreamType
s the filter uses.encoding
- Determines which encoding the filter uses. Pass null for default encoding "UTF-8".public TeeFilter(java.lang.String fileName, java.lang.String encoding, boolean append)
FileOutputStream
.fileName
- The system dependent file name for the FileOutputStream
.encoding
- Determines which encoding the filter uses. Pass null for default encoding "UTF-8".append
- Determines whether the filter appends or overwrites a file.protected void onTerminating()
onTerminating
in class teetime.framework.AbstractStage
protected void execute(java.lang.Object object)
execute
in class teetime.framework.AbstractConsumerStage<java.lang.Object>
object
- The new object.public java.lang.String getPrintStreamName()
Copyright 2020 Kieker Project, http://kieker-monitoring.net