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

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

Best Java code snippets using kieker.analysis.plugin.filter.select.TimestampFilter.inRange (Showing top 6 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

  /**
   * 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

@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

@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

/**
 * 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.selectTimestampFilterinRange

Javadoc

A simple helper method which checks whether the given timestamp is in the configured limits.

Popular methods of TimestampFilter

  • <init>
    Creates a new instance of this class using the given parameters.
  • 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

  • Parsing JSON documents to java classes using gson
  • compareTo (BigDecimal)
  • onCreateOptionsMenu (Activity)
  • setContentView (Activity)
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • BoxLayout (javax.swing)
  • JTextField (javax.swing)
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • Best plugins for Eclipse
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