public class MonitoringRecordLoggerFilter extends AbstractFilterPlugin
IMonitoringRecord
s received via its input port INPUT_PORT_NAME_RECORD
to its own MonitoringController
instance,
which is created based on the Configuration
file passed via the filter's property CONFIG_PROPERTY_NAME_MONITORING_PROPS_FN
.
Additionally, incoming records are relayed via the output port OUTPUT_PORT_NAME_RELAYED_EVENTS
.IPlugin.PluginInputPortReference, IPlugin.STATE
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CONFIG_PROPERTY_NAME_MONITORING_PROPS_FN |
static java.lang.String |
INPUT_PORT_NAME_RECORD
This is the name of the input port receiving new records.
|
static java.lang.String |
OUTPUT_PORT_NAME_RELAYED_EVENTS
This is the name of the output port delivering the relayed events.
|
CONFIG_NAME, log, LOG, projectContext, recordsTimeUnitFromProjectContext
Constructor and Description |
---|
MonitoringRecordLoggerFilter(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 |
inputIMonitoringRecord(IMonitoringRecord record)
This method represents the input port.
|
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_RECORD
public static final java.lang.String OUTPUT_PORT_NAME_RELAYED_EVENTS
public static final java.lang.String CONFIG_PROPERTY_NAME_MONITORING_PROPS_FN
public MonitoringRecordLoggerFilter(Configuration configuration, IProjectContext projectContext)
configuration
- The configuration for this component.projectContext
- The project context for this component.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 AbstractAnalysisComponent
public final void inputIMonitoringRecord(IMonitoringRecord record)
record
- The next record.Copyright 2017 Kieker Project, http://kieker-monitoring.net