/** * Creates a {@link TimestampFilter} with the given properties * using the constructor {@link TimestampFilter#TimestampFilter(kieker.common.configuration.Configuration, java.util.Map)}. * * @param ignoreExecutionsBeforeTimestamp * @param ignoreExecutionsAfterTimestamp * @return * @throws AnalysisConfigurationException * If the internally assembled analysis configuration is somehow invalid. * @throws IllegalStateException * If the internal analysis is in an invalid state. */ private void createTimestampFilter(final long ignoreExecutionsBeforeTimestamp, final long ignoreExecutionsAfterTimestamp) throws IllegalStateException, AnalysisConfigurationException { final Configuration cfg = new Configuration(); cfg.setProperty(TimestampFilter.CONFIG_PROPERTY_NAME_IGNORE_BEFORE_TIMESTAMP, Long.toString(ignoreExecutionsBeforeTimestamp)); cfg.setProperty(TimestampFilter.CONFIG_PROPERTY_NAME_IGNORE_AFTER_TIMESTAMP, Long.toString(ignoreExecutionsAfterTimestamp)); final TimestampFilter filter = new TimestampFilter(cfg, this.controller); this.controller.connect(this.reader, ListReader.OUTPUT_PORT_NAME, filter, TimestampFilter.INPUT_PORT_NAME_FLOW); this.controller.connect(filter, TimestampFilter.OUTPUT_PORT_NAME_WITHIN_PERIOD, this.sinkPlugin, ListCollectionFilter.INPUT_PORT_NAME); }
final TimestampFilter timestampFilter = new TimestampFilter(timestampFilterConfiguration, analysisInstance);
private TimestampFilter createTimestampFilter(final ThreadEvent2TraceEventFilter sourceStage) throws IllegalStateException, AnalysisConfigurationException { // Create the timestamp filter and connect to the reader's output port final Configuration configTimestampFilter = new Configuration(); configTimestampFilter.setProperty(TimestampFilter.CONFIG_PROPERTY_NAME_IGNORE_BEFORE_TIMESTAMP, this.longToString(this.settings.getIgnoreExecutionsBeforeDate())); configTimestampFilter.setProperty(TimestampFilter.CONFIG_PROPERTY_NAME_IGNORE_AFTER_TIMESTAMP, this.longToString(this.settings.getIgnoreExecutionsAfterDate())); final TimestampFilter timestampFilter = new TimestampFilter(configTimestampFilter, this.analysisController); this.analysisController.connect(sourceStage, ThreadEvent2TraceEventFilter.OUTPUT_PORT_NAME_DEFAULT, timestampFilter, TimestampFilter.INPUT_PORT_NAME_EXECUTION); this.analysisController.connect(sourceStage, ThreadEvent2TraceEventFilter.OUTPUT_PORT_NAME_DEFAULT, timestampFilter, TimestampFilter.INPUT_PORT_NAME_FLOW); return timestampFilter; }
final TimestampFilter timestampFilter = new TimestampFilter(timestampFilterConfiguration, analysisInstance);
Long.toString(this.ignoreExecutionsAfterTimestamp)); timestampFilter = new TimestampFilter(configTimestampFilter, this.analysisController); this.analysisController.connect(sourceStage, sourcePort, timestampFilter, TimestampFilter.INPUT_PORT_NAME_EXECUTION);
final TimestampFilter timestampFilter = new TimestampFilter(confTimestampFilter, analysisController);