public class ExecutionTraceWriterFilter extends AbstractExecutionTraceProcessingFilter
IPlugin.PluginInputPortReference, IPlugin.STATE
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CONFIG_PROPERTY_NAME_OUTPUT_FN
The name of the configuration determining the output file name.
|
static java.lang.String |
INPUT_PORT_NAME_EXECUTION_TRACES
This is the name of the input port receiving new execution traces.
|
CONFIG_PROPERTY_VALUE_VERBOSE, LOG, REPOSITORY_PORT_NAME_SYSTEM_MODEL
CONFIG_NAME, configuration, log, projectContext, recordsTimeUnitFromProjectContext
Constructor and Description |
---|
ExecutionTraceWriterFilter(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 |
newExecutionTrace(ExecutionTrace et)
This method represents the input port of this filter.
|
void |
printStatusMessage()
Returns a user-addressed status message to be logged by the calling tool.
|
void |
terminate(boolean error)
Initiates a termination of the plugin.
|
getErrorCount, getLastTraceIdError, getLastTraceIdSuccess, getSuccessCount, getTotalCount, reportError, reportSuccess
createExecutionByEntityNames, createExecutionByEntityNames, createExecutionByEntityNames, createExecutionByEntityNames, getSystemEntityFactory, printDebugLogMessage, printErrorLogMessage
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_EXECUTION_TRACES
public static final java.lang.String CONFIG_PROPERTY_NAME_OUTPUT_FN
public ExecutionTraceWriterFilter(Configuration configuration, IProjectContext projectContext) throws java.io.IOException
configuration
- The configuration for this component.projectContext
- The project context for this component.java.io.IOException
- If the write stream could not be prepared.public void printStatusMessage()
AbstractTraceProcessingFilter
printStatusMessage
in class AbstractTraceProcessingFilter
public void terminate(boolean error)
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 void newExecutionTrace(ExecutionTrace et)
et
- The next execution trace.public 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 AbstractTraceAnalysisFilter
Copyright 2017 Kieker Project, http://kieker-monitoring.net