public class MessageTraceWriterFilter extends AbstractMessageTraceProcessingFilter
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.
|
INPUT_PORT_NAME_MESSAGE_TRACES
CONFIG_PROPERTY_VALUE_VERBOSE, LOG, REPOSITORY_PORT_NAME_SYSTEM_MODEL
CONFIG_NAME, configuration, log, projectContext, recordsTimeUnitFromProjectContext
Constructor and Description |
---|
MessageTraceWriterFilter(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 |
inputMessageTraces(MessageTrace mt)
This is the (abstract) input port for the incoming message traces.
|
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 CONFIG_PROPERTY_NAME_OUTPUT_FN
public MessageTraceWriterFilter(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 either the default encoding is not supported or the given file is somehow invalid.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 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
public void inputMessageTraces(MessageTrace mt)
inputMessageTraces
in class AbstractMessageTraceProcessingFilter
mt
- The incoming message trace.Copyright 2017 Kieker Project, http://kieker-monitoring.net