public final class TeeFilter extends AbstractFilterPlugin
IPlugin.PluginInputPortReference, IPlugin.STATE
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CONFIG_PROPERTY_NAME_APPEND
The name of the property determining whether or not the stream appends or
overwrites to files.
|
static java.lang.String |
CONFIG_PROPERTY_NAME_ENCODING
The name of the property determining the used encoding.
|
static java.lang.String |
CONFIG_PROPERTY_NAME_STREAM
The name of the property determining the stream in which the incoming data
will be printed.
|
static java.lang.String |
CONFIG_PROPERTY_VALUE_DEFAULT_ENCODING
The default value of the encoding property which determines that the filter
uses utf-8.
|
static java.lang.String |
CONFIG_PROPERTY_VALUE_STREAM_APPEND
The default value of the stream property which determines that the filter
appends or overwrites a file.
|
static java.lang.String |
CONFIG_PROPERTY_VALUE_STREAM_NULL
The value of the stream property which determines that the filter doesn't
print anything.
|
static java.lang.String |
CONFIG_PROPERTY_VALUE_STREAM_STDERR
The value of the stream property which determines that the filter uses the
standard error output.
|
static java.lang.String |
CONFIG_PROPERTY_VALUE_STREAM_STDLOG
The value of the stream property which determines that the filter uses the
standard log.
|
static java.lang.String |
CONFIG_PROPERTY_VALUE_STREAM_STDOUT
The value of the stream property which determines that the filter uses the
standard output.
|
static java.lang.String |
INPUT_PORT_NAME_EVENTS
The name of the input port for incoming events.
|
static java.lang.String |
OUTPUT_PORT_NAME_RELAYED_EVENTS
The name of the output port delivering the incoming events.
|
CONFIG_NAME, configuration, logger, projectContext, recordsTimeUnitFromProjectContext
Constructor and Description |
---|
TeeFilter(Configuration configuration,
IProjectContext projectContext)
Creates a new instance of this class using the given parameters.
|
Modifier and Type | Method and Description |
---|---|
Configuration |
getCurrentConfiguration()
This method should deliver a
Configuration object containing the current configuration of this instance. |
void |
inputEvent(java.lang.Object object)
This method is the input port of the filter receiving incoming objects.
|
void |
terminate(boolean error)
Initiates a termination of the plugin.
|
init
areAllRepositoryPortsConnected, connect, connect, deliver, getAllDisplayNames, getAllInputPortNames, getAllOutputPortNames, getAllRepositoryPortNames, getConnectedPlugins, getCurrentRepositories, getDefaultConfiguration, getIncomingPlugins, getPluginDescription, getPluginName, getRepository, getState, isConnectionAllowed, notifyNewIncomingConnection, notifyNewOutgoingConnection, shutdown, start
getName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
connect, getAllDisplayNames, getAllInputPortNames, getAllOutputPortNames, getAllRepositoryPortNames, getConnectedPlugins, getCurrentRepositories, getName, getPluginDescription, getPluginName, getState
public static final java.lang.String INPUT_PORT_NAME_EVENTS
public static final java.lang.String OUTPUT_PORT_NAME_RELAYED_EVENTS
public static final java.lang.String CONFIG_PROPERTY_NAME_STREAM
public static final java.lang.String CONFIG_PROPERTY_NAME_ENCODING
public static final java.lang.String CONFIG_PROPERTY_NAME_APPEND
public static final java.lang.String CONFIG_PROPERTY_VALUE_STREAM_STDOUT
public static final java.lang.String CONFIG_PROPERTY_VALUE_STREAM_STDERR
public static final java.lang.String CONFIG_PROPERTY_VALUE_STREAM_STDLOG
public static final java.lang.String CONFIG_PROPERTY_VALUE_STREAM_NULL
public static final java.lang.String CONFIG_PROPERTY_VALUE_DEFAULT_ENCODING
public static final java.lang.String CONFIG_PROPERTY_VALUE_STREAM_APPEND
public TeeFilter(Configuration configuration, IProjectContext projectContext)
configuration
- The configuration for this component.projectContext
- The project context for this component.public final void terminate(boolean error)
AbstractFilterPlugin
AnalysisController.terminate(boolean)
instead.
After receiving this notification, the plugin should terminate any running
methods, e.g., read for readers.terminate
in interface IPlugin
terminate
in class AbstractFilterPlugin
error
- Determines whether the plugin is terminated due to an error or not.public final Configuration getCurrentConfiguration()
Configuration
object containing the current configuration of this instance. In other words: The constructor should be
able to use the given object to initialize a new instance of this class with the same intern properties.getCurrentConfiguration
in interface IAnalysisComponent
getCurrentConfiguration
in interface IPlugin
getCurrentConfiguration
in class AbstractAnalysisComponent
public final void inputEvent(java.lang.Object object)
object
- The new object.Copyright 2020 Kieker Project, http://kieker-monitoring.net