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

How to use
TeeFilter
in
kieker.analysis.plugin.filter.forward

Best Java code snippets using kieker.analysis.plugin.filter.forward.TeeFilter (Showing top 5 results out of 315)

origin: kieker-monitoring/kieker

  /**
   * This method is the input port of the filter receiving incoming objects. Every
   * object will be printed into a stream (based on the configuration) before the
   * filter sends it to the output port.
   *
   * @param object
   *            The new object.
   */
  @InputPort(name = INPUT_PORT_NAME_EVENTS, description = "Receives incoming objects to be logged and forwarded", eventTypes = {
    Object.class })
  public final void inputEvent(final Object object) {
    if (this.active) {
      final StringBuilder sb = new StringBuilder(128);
      sb.append(this.getName()).append('(').append(object.getClass().getSimpleName()).append(") ")
          .append(object.toString());
      final String record = sb.toString();
      if (this.printStream != null) {
        this.printStream.println(record);
      } else {
        this.logger.info(record);
      }
    }
    super.deliver(OUTPUT_PORT_NAME_RELAYED_EVENTS, object);
  }
}
origin: kieker-monitoring/kieker

private void executeAnalysis(final File tempFile, final boolean append, final List<Integer> objectsToWrite) throws IllegalStateException,
    AnalysisConfigurationException {
  final Configuration configuration = new Configuration();
  configuration.setProperty(TeeFilter.CONFIG_PROPERTY_NAME_APPEND, Boolean.toString(append));
  configuration.setProperty(TeeFilter.CONFIG_PROPERTY_NAME_STREAM, tempFile.getAbsolutePath());
  final IAnalysisController analysisController = new AnalysisController();
  final TeeFilter teeFilter = new TeeFilter(configuration, analysisController);
  final ListReader<Integer> simpleListReader = new ListReader<Integer>(new Configuration(), analysisController);
  analysisController.connect(simpleListReader, ListReader.OUTPUT_PORT_NAME, teeFilter, TeeFilter.INPUT_PORT_NAME_EVENTS);
  simpleListReader.addAllObjects(objectsToWrite);
  analysisController.run();
}
origin: kieker-monitoring/kieker

confTeeFilter1.setProperty(TeeFilter.CONFIG_PROPERTY_NAME_STREAM, TeeFilter.CONFIG_PROPERTY_VALUE_STREAM_STDOUT);
confTeeFilter1.setProperty(TeeFilter.CONFIG_PROPERTY_NAME_STREAM, TeeFilter.CONFIG_PROPERTY_VALUE_STREAM_NULL);
final TeeFilter teeFilter1 = new TeeFilter(confTeeFilter1, analysisController);
confTeeFilter1.setProperty(TeeFilter.CONFIG_PROPERTY_NAME_STREAM, TeeFilter.CONFIG_PROPERTY_VALUE_STREAM_STDOUT);
final TeeFilter teeFilter2 = new TeeFilter(confTeeFilter2, analysisController);
origin: kieker-monitoring/kieker

confTeeFilter1.setProperty(TeeFilter.CONFIG_PROPERTY_NAME_STREAM, TeeFilter.CONFIG_PROPERTY_VALUE_STREAM_STDOUT);
final TeeFilter teeFilter1 = new TeeFilter(confTeeFilter1, analysisController);
confTeeFilter2.setProperty(TeeFilter.CONFIG_PROPERTY_NAME_STREAM, TeeFilter.CONFIG_PROPERTY_VALUE_STREAM_NULL);
confTeeFilter2.setProperty(AbstractAnalysisComponent.CONFIG_NAME, "CountBegin");
final TeeFilter teeFilter2 = new TeeFilter(confTeeFilter2, analysisController);
confTeeFilter3.setProperty(TeeFilter.CONFIG_PROPERTY_NAME_STREAM, TeeFilter.CONFIG_PROPERTY_VALUE_STREAM_NULL);
confTeeFilter3.setProperty(AbstractAnalysisComponent.CONFIG_NAME, "CountAfter");
final TeeFilter teeFilter3 = new TeeFilter(confTeeFilter3, analysisController);
origin: net.kieker-monitoring/kieker

  /**
   * This method is the input port of the filter receiving incoming objects. Every object will be printed into a stream (based on the configuration) before the
   * filter sends it to the output port.
   * 
   * @param object
   *            The new object.
   */
  @InputPort(name = INPUT_PORT_NAME_EVENTS, description = "Receives incoming objects to be logged and forwarded", eventTypes = { Object.class })
  public final void inputEvent(final Object object) {
    if (this.active) {
      final StringBuilder sb = new StringBuilder(128);
      sb.append(this.getName());
      sb.append('(').append(object.getClass().getSimpleName()).append(") ").append(object.toString());
      final String record = sb.toString();
      if (this.printStream != null) {
        this.printStream.println(record);
      } else {
        this.log.info(record);
      }
    }
    super.deliver(OUTPUT_PORT_NAME_RELAYED_EVENTS, object);
  }
}
kieker.analysis.plugin.filter.forwardTeeFilter

Javadoc

This filter has exactly one input port and one output port. A simple message is printed to a configurable stream and all objects are forwarded to the output port.

Most used methods

  • <init>
    Creates a new instance of this class using the given parameters.
  • getName

Popular in Java

  • Parsing JSON documents to java classes using gson
  • startActivity (Activity)
  • findViewById (Activity)
  • setRequestProperty (URLConnection)
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • 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