Kieker 1.2

kieker.tools.traceAnalysis.plugins.executionFilter
Class TraceIdFilter

java.lang.Object
  extended by kieker.tools.traceAnalysis.plugins.executionFilter.TraceIdFilter
All Implemented Interfaces:
IAnalysisPlugin

public class TraceIdFilter
extends Object
implements IAnalysisPlugin

Allows to filter Execution objects based on their traceId.

Author:
Andre van Hoorn

Constructor Summary
TraceIdFilter(TreeSet<Long> selectedTraces)
          Creates a filter instance that only passes Execution objects e whose traceId (e.traceId) is element of the set selectedTraces.
 
Method Summary
 boolean execute()
          Initiates the start of a component.
 IInputPort<Execution> getExecutionInputPort()
           
 IOutputPort<Execution> getExecutionOutputPort()
           
 void terminate(boolean error)
          Initiates a termination of the component.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TraceIdFilter

public TraceIdFilter(TreeSet<Long> selectedTraces)
Creates a filter instance that only passes Execution objects e whose traceId (e.traceId) is element of the set selectedTraces.

Parameters:
selectedTraces -
Method Detail

getExecutionInputPort

public IInputPort<Execution> getExecutionInputPort()

getExecutionOutputPort

public IOutputPort<Execution> getExecutionOutputPort()

execute

public boolean execute()
Description copied from interface: IAnalysisPlugin
Initiates the start of a component. This method is called once when a TpanInstance's run() method is called. This implementation must not be blocking! Asynchronous consumers would spawn (an) aynchronous thread(s) in this method.

Specified by:
execute in interface IAnalysisPlugin
Returns:
true on success; false otherwise.

terminate

public void terminate(boolean error)
Description copied from interface: IAnalysisPlugin
Initiates a termination of the component. The value of the parameter error indicates whether an error occured.

Specified by:
terminate in interface IAnalysisPlugin
Parameters:
error - true iff an error occured.

Kieker 1.2

Copyright 2010 the Kieker Project, http://kieker.sourceforge.net