Tabnine Logo
TimestampFilter
Code IndexAdd Tabnine to your IDE (free)

How to use
TimestampFilter
in
kieker.analysis.plugin.filter.select

Best Java code snippets using kieker.analysis.plugin.filter.select.TimestampFilter (Showing top 14 results out of 315)

origin: net.kieker-monitoring/kieker

  /**
   * This method represents the input port receiving trace events to be selected by a specific timestamp selector (based on tin and tout).
   * 
   * @param execution
   *            The new incoming execution object.
   */
  @InputPort(name = INPUT_PORT_NAME_EXECUTION, description = "Receives trace events to be selected by a specific timestamp selector (based on tin and tout)",
      eventTypes = { OperationExecutionRecord.class })
  public final void inputOperationExecutionRecord(final OperationExecutionRecord execution) {
    if (this.inRange(execution.getTin()) && this.inRange(execution.getTout())) {
      super.deliver(OUTPUT_PORT_NAME_WITHIN_PERIOD, execution);
    } else {
      super.deliver(OUTPUT_PORT_NAME_OUTSIDE_PERIOD, execution);
    }
  }
}
origin: kieker-monitoring/kieker

@InputPort(name = INPUT_PORT_NAME_COMBINED, description = "Receives records to be selected by timestamps, based on type-specific selectors", eventTypes = {
  IMonitoringRecord.class })
public void inputCombined(final IMonitoringRecord record) {
  if (record instanceof OperationExecutionRecord) {
    this.inputOperationExecutionRecord((OperationExecutionRecord) record);
  } else if (record instanceof IEventRecord) {
    this.inputTraceEvent((IEventRecord) record);
  } else {
    this.inputIMonitoringRecord(record);
  }
}
origin: kieker-monitoring/kieker

final TimestampFilter timestampFilter = new TimestampFilter(timestampFilterConfiguration, analysisInstance);
origin: kieker-monitoring/kieker

/**
 * 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);
}
origin: kieker-monitoring/kieker

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;
}
origin: net.kieker-monitoring/kieker

@InputPort(name = INPUT_PORT_NAME_COMBINED, description = "Receives records to be selected by timestamps, based on type-specific selectors",
    eventTypes = { IMonitoringRecord.class })
public void inputCombined(final IMonitoringRecord record) {
  if (record instanceof OperationExecutionRecord) {
    this.inputOperationExecutionRecord((OperationExecutionRecord) record);
  } else if (record instanceof IEventRecord) {
    this.inputTraceEvent((IEventRecord) record);
  } else {
    this.inputIMonitoringRecord(record);
  }
}
origin: kieker-monitoring/kieker

  /**
   * This method represents the input port receiving trace events to be selected
   * by a specific timestamp selector (based on tin and tout).
   *
   * @param execution
   *            The new incoming execution object.
   */
  @InputPort(name = INPUT_PORT_NAME_EXECUTION, description = "Receives trace events to be selected by a specific timestamp selector (based on tin and tout)", eventTypes = {
    OperationExecutionRecord.class })
  public final void inputOperationExecutionRecord(final OperationExecutionRecord execution) {
    if (this.inRange(execution.getTin()) && this.inRange(execution.getTout())) {
      super.deliver(OUTPUT_PORT_NAME_WITHIN_PERIOD, execution);
    } else {
      super.deliver(OUTPUT_PORT_NAME_OUTSIDE_PERIOD, execution);
    }
  }
}
origin: net.kieker-monitoring/kieker

final TimestampFilter timestampFilter = new TimestampFilter(timestampFilterConfiguration, analysisInstance);
origin: net.kieker-monitoring/kieker

@InputPort(name = INPUT_PORT_NAME_ANY_RECORD, description = "Receives records to be selected by their logging timestamps",
    eventTypes = { IMonitoringRecord.class })
public final void inputIMonitoringRecord(final IMonitoringRecord record) {
  if (this.inRange(record.getLoggingTimestamp())) {
    super.deliver(OUTPUT_PORT_NAME_WITHIN_PERIOD, record);
  } else {
    super.deliver(OUTPUT_PORT_NAME_OUTSIDE_PERIOD, record);
  }
}
origin: net.kieker-monitoring/kieker

    Long.toString(this.ignoreExecutionsAfterTimestamp));
timestampFilter = new TimestampFilter(configTimestampFilter, this.analysisController);
this.analysisController.connect(sourceStage, sourcePort, timestampFilter,
    TimestampFilter.INPUT_PORT_NAME_EXECUTION);
origin: kieker-monitoring/kieker

@InputPort(name = INPUT_PORT_NAME_ANY_RECORD, description = "Receives records to be selected by their logging timestamps", eventTypes = {
  IMonitoringRecord.class })
public final void inputIMonitoringRecord(final IMonitoringRecord record) {
  if (this.inRange(record.getLoggingTimestamp())) {
    super.deliver(OUTPUT_PORT_NAME_WITHIN_PERIOD, record);
  } else {
    super.deliver(OUTPUT_PORT_NAME_OUTSIDE_PERIOD, record);
  }
}
origin: kieker-monitoring/kieker

final TimestampFilter timestampFilter = new TimestampFilter(confTimestampFilter, analysisController);
origin: net.kieker-monitoring/kieker

/**
 * This method represents the input port receiving trace events to be selected by a specific timestamp selector.
 * 
 * @param record
 *            The new incoming record.
 */
@InputPort(name = INPUT_PORT_NAME_FLOW, description = "Receives trace events to be selected by a specific timestamp selector",
    eventTypes = { IEventRecord.class, TraceMetadata.class })
public final void inputTraceEvent(final IFlowRecord record) {
  final long timestamp;
  if (record instanceof TraceMetadata) {
    timestamp = ((TraceMetadata) record).getLoggingTimestamp();
  } else if (record instanceof IEventRecord) {
    timestamp = ((IEventRecord) record).getTimestamp();
  } else {
    // should not happen given the accepted type
    return;
  }
  if (this.inRange(timestamp)) {
    super.deliver(OUTPUT_PORT_NAME_WITHIN_PERIOD, record);
  } else {
    super.deliver(OUTPUT_PORT_NAME_OUTSIDE_PERIOD, record);
  }
}
origin: kieker-monitoring/kieker

/**
 * This method represents the input port receiving trace events to be selected
 * by a specific timestamp selector.
 *
 * @param record
 *            The new incoming record.
 */
@InputPort(name = INPUT_PORT_NAME_FLOW, description = "Receives trace events to be selected by a specific timestamp selector", eventTypes = {
  IEventRecord.class, TraceMetadata.class })
public final void inputTraceEvent(final IFlowRecord record) {
  final long timestamp;
  if (record instanceof TraceMetadata) {
    timestamp = ((TraceMetadata) record).getLoggingTimestamp();
  } else if (record instanceof IEventRecord) {
    timestamp = ((IEventRecord) record).getTimestamp();
  } else {
    // should not happen given the accepted type
    return;
  }
  if (this.inRange(timestamp)) {
    super.deliver(OUTPUT_PORT_NAME_WITHIN_PERIOD, record);
  } else {
    super.deliver(OUTPUT_PORT_NAME_OUTSIDE_PERIOD, record);
  }
}
kieker.analysis.plugin.filter.selectTimestampFilter

Javadoc

Allows to filter 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.

Most used methods

  • <init>
    Creates a new instance of this class using the given parameters.
  • inRange
    A simple helper method which checks whether the given timestamp is in the configured limits.
  • inputIMonitoringRecord
  • inputOperationExecutionRecord
    This method represents the input port receiving trace events to be selected by a specific timestamp
  • inputTraceEvent
    This method represents the input port receiving trace events to be selected by a specific timestamp

Popular in Java

  • Start an intent from android
  • getContentResolver (Context)
  • runOnUiThread (Activity)
  • getSupportFragmentManager (FragmentActivity)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • Socket (java.net)
    Provides a client-side TCP socket.
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now