public class TraceAggregationFilter extends AbstractFilterPlugin
IPlugin.PluginInputPortReference, IPlugin.STATE| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CONFIG_PROPERTY_NAME_MAX_COLLECTION_DURATION
The name of the property determining the maximal trace timeout.
|
static java.lang.String |
CONFIG_PROPERTY_NAME_TIMEUNIT
The name of the property determining the time unit.
|
static java.lang.String |
CONFIG_PROPERTY_VALUE_MAX_COLLECTION_DURATION
The default value of the property determining the maximal trace timeout.
|
static java.lang.String |
CONFIG_PROPERTY_VALUE_TIMEUNIT
The default value of the time unit property (nanoseconds).
|
static java.lang.String |
INPUT_PORT_NAME_TIME_EVENT
Clock input for timeout handling.
|
static java.lang.String |
INPUT_PORT_NAME_TRACES
The name of the input port receiving the trace records.
|
static java.lang.String |
OUTPUT_PORT_NAME_TRACES
The name of the output port delivering the valid traces.
|
CONFIG_NAME, configuration, logger, projectContext, recordsTimeUnitFromProjectContext| Constructor and Description |
|---|
TraceAggregationFilter(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 |
newEvent(java.lang.Long timestamp)
This method is the input port for the timeout.
|
void |
newEvent(TraceEventRecords traceEventRecords)
This method is the input port for incoming traces.
|
void |
terminate(boolean error)
Initiates a termination of the plugin.
|
initareAllRepositoryPortsConnected, connect, connect, deliver, getAllDisplayNames, getAllInputPortNames, getAllOutputPortNames, getAllRepositoryPortNames, getConnectedPlugins, getCurrentRepositories, getDefaultConfiguration, getIncomingPlugins, getPluginDescription, getPluginName, getRepository, getState, isConnectionAllowed, notifyNewIncomingConnection, notifyNewOutgoingConnection, shutdown, startgetNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconnect, getAllDisplayNames, getAllInputPortNames, getAllOutputPortNames, getAllRepositoryPortNames, getConnectedPlugins, getCurrentRepositories, getName, getPluginDescription, getPluginName, getStatepublic static final java.lang.String OUTPUT_PORT_NAME_TRACES
public static final java.lang.String INPUT_PORT_NAME_TRACES
public static final java.lang.String CONFIG_PROPERTY_NAME_TIMEUNIT
public static final java.lang.String INPUT_PORT_NAME_TIME_EVENT
public static final java.lang.String CONFIG_PROPERTY_VALUE_TIMEUNIT
public static final java.lang.String CONFIG_PROPERTY_NAME_MAX_COLLECTION_DURATION
public static final java.lang.String CONFIG_PROPERTY_VALUE_MAX_COLLECTION_DURATION
public TraceAggregationFilter(Configuration configuration, IProjectContext projectContext)
configuration - The configuration for this component.projectContext - The project context for this component.public void newEvent(java.lang.Long timestamp)
timestamp - The timestamppublic void newEvent(TraceEventRecords traceEventRecords)
traceEventRecords - incoming TraceEventRecordspublic 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 IPluginterminate in class AbstractFilterPluginerror - 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 IAnalysisComponentgetCurrentConfiguration in interface IPlugingetCurrentConfiguration in class AbstractAnalysisComponentCopyright 2020 Kieker Project, http://kieker-monitoring.net