Package kieker.analysis.generic.time
Class TimestampFilter
java.lang.Object
teetime.framework.CompositeStage
kieker.analysis.generic.time.TimestampFilter
public class TimestampFilter
extends teetime.framework.CompositeStage
Allows to filter
IMonitoringRecord objects based on their given timestamps. It handles flow events with their own timestamp and logging timestamp for
all other records and event types.
This class has several specialized internal filters to distinguish different timestamps for different record types. It has one input port and two output ports.
If the received record is within the defined timestamps, the object is delivered unmodified to the recordsWithinTimePeriodOutputPort, otherwise to the
recordsOutsideTimePeriodOutputPort.- Since:
- 1.2
- Author:
- Andre van Hoorn, Jan Waller, Lars Bluemke
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final StringThe default used lower limit for the records.Fields inherited from class teetime.framework.CompositeStage
DEFAULT_PIPE_CAPACITY -
Constructor Summary
ConstructorsConstructorDescriptionTimestampFilter(long ignoreBeforeTimestamp, long ignoreAfterTimestamp) Creates a new instance of this class using the given parameters. -
Method Summary
Modifier and TypeMethodDescriptionteetime.framework.InputPort<IMonitoringRecord>Returns the input port for the records.teetime.framework.OutputPort<IMonitoringRecord>Returns the output port for the records whose timestamps are outside the defined time period.teetime.framework.OutputPort<IMonitoringRecord>Returns the output port for the records whose timestamps are within the defined time period.Methods inherited from class teetime.framework.CompositeStage
connectPorts, connectPorts, createInputPort, createOutputPort
-
Field Details
-
CONFIG_PROPERTY_VALUE_MAX_TIMESTAMP
- See Also:
-
CONFIG_PROPERTY_VALUE_MIN_TIMESTAMP
The default used lower limit for the records.- See Also:
-
-
Constructor Details
-
TimestampFilter
public TimestampFilter(long ignoreBeforeTimestamp, long ignoreAfterTimestamp) Creates a new instance of this class using the given parameters.- Parameters:
ignoreBeforeTimestamp- The lower limit for the time stamps of the records.ignoreAfterTimestamp- The upper limit for the time stamps of the records.
-
-
Method Details
-
getMonitoringRecordsCombinedInputPort
Returns the input port for the records.- Returns:
- The input port.
-
getRecordsWithinTimePeriodOutputPort
Returns the output port for the records whose timestamps are within the defined time period.- Returns:
- The recordsWithinTimePeriod output port.
-
getRecordsOutsideTimePeriodOutputPort
Returns the output port for the records whose timestamps are outside the defined time period.- Returns:
- The recordsOutsideTimePeriod output port.
-