public final class TimestampFilter extends AbstractFilterPlugin
IMonitoringRecord
objects based on their given timestamps.
This class has several specialized input ports and a single output port.
If the received record is within the defined timestamps, the object is delivered unmodified to the output port.IPlugin.PluginInputPortReference, IPlugin.STATE
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CONFIG_PROPERTY_NAME_IGNORE_AFTER_TIMESTAMP
This is the name of the property for the upper limit of the records.
|
static java.lang.String |
CONFIG_PROPERTY_NAME_IGNORE_BEFORE_TIMESTAMP
This is the name of the property for the lower limit of the records.
|
static java.lang.String |
CONFIG_PROPERTY_NAME_TIMEUNIT
This is the name of the property for the used time unit.
|
static java.lang.String |
CONFIG_PROPERTY_VALUE_MAX_TIMESTAMP
The default used upper limit for the records.
|
static java.lang.String |
CONFIG_PROPERTY_VALUE_MIN_TIMESTAMP
The default used lower limit for the records.
|
static java.lang.String |
CONFIG_PROPERTY_VALUE_TIMEUNIT
The default used time unit.
|
static java.lang.String |
INPUT_PORT_NAME_ANY_RECORD
The name of the input port accepting records of any type.
|
static java.lang.String |
INPUT_PORT_NAME_COMBINED |
static java.lang.String |
INPUT_PORT_NAME_EXECUTION
The name of the input port accepting execution records.
|
static java.lang.String |
INPUT_PORT_NAME_FLOW
The name of the input port accepting flow records.
|
static java.lang.String |
OUTPUT_PORT_NAME_OUTSIDE_PERIOD
The name of the output port delivering records which are not within the defined time limits.
|
static java.lang.String |
OUTPUT_PORT_NAME_WITHIN_PERIOD
The name of the output port delivering records which are within the defined time limits.
|
CONFIG_NAME, configuration, log, LOG, projectContext, recordsTimeUnitFromProjectContext
Constructor and Description |
---|
TimestampFilter(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 |
inputCombined(IMonitoringRecord record) |
void |
inputIMonitoringRecord(IMonitoringRecord record) |
void |
inputOperationExecutionRecord(OperationExecutionRecord execution)
This method represents the input port receiving trace events to be selected by a specific timestamp selector (based on tin and tout).
|
void |
inputTraceEvent(IFlowRecord record)
This method represents the input port receiving trace events to be selected by a specific timestamp selector.
|
init, terminate
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_ANY_RECORD
public static final java.lang.String INPUT_PORT_NAME_FLOW
public static final java.lang.String INPUT_PORT_NAME_EXECUTION
public static final java.lang.String INPUT_PORT_NAME_COMBINED
public static final java.lang.String OUTPUT_PORT_NAME_WITHIN_PERIOD
public static final java.lang.String OUTPUT_PORT_NAME_OUTSIDE_PERIOD
public static final java.lang.String CONFIG_PROPERTY_NAME_TIMEUNIT
public static final java.lang.String CONFIG_PROPERTY_NAME_IGNORE_BEFORE_TIMESTAMP
public static final java.lang.String CONFIG_PROPERTY_NAME_IGNORE_AFTER_TIMESTAMP
public static final java.lang.String CONFIG_PROPERTY_VALUE_TIMEUNIT
public static final java.lang.String CONFIG_PROPERTY_VALUE_MAX_TIMESTAMP
public static final java.lang.String CONFIG_PROPERTY_VALUE_MIN_TIMESTAMP
public TimestampFilter(Configuration configuration, IProjectContext projectContext)
configuration
- The configuration for this component.projectContext
- The project context for this component.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 void inputCombined(IMonitoringRecord record)
public final void inputIMonitoringRecord(IMonitoringRecord record)
public final void inputTraceEvent(IFlowRecord record)
record
- The new incoming record.public final void inputOperationExecutionRecord(OperationExecutionRecord execution)
execution
- The new incoming execution object.Copyright 2017 Kieker Project, http://kieker-monitoring.net