Class ResponseTimeDecoration

java.lang.Object
kieker.tools.trace.analysis.filter.visualization.graph.AbstractVertexDecoration
kieker.visualization.trace.dependency.graph.ResponseTimeDecoration

public class ResponseTimeDecoration
extends AbstractVertexDecoration
Response time decoration for graph vertices. This decoration extracts response times from executions and keeps track of the minimal, maximal and average response time.
Since:
1.5
  • Constructor Summary

    Constructors 
    Constructor Description
    ResponseTimeDecoration​(java.util.concurrent.TimeUnit executionTimeunit, java.util.concurrent.TimeUnit displayTimeunit)
    Creates a new response time decoration.
  • Method Summary

    Modifier and Type Method Description
    java.lang.String createFormattedOutput()
    Creates formatted output for this decoration.
    double getAverageResponseTime()
    Returns the average response time (in ms) registered by this decoration.
    long getMaximalResponseTime()
    Returns the maximal response time (in ms) registered by this decoration.
    long getMinimalResponseTime()
    Returns the minimal response time (in ms) registered by this decoration.
    long getTotalResponseTime()  
    void registerExecution​(kieker.model.system.model.Execution execution)
    Registers a given execution for the decorated vertex.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ResponseTimeDecoration

      public ResponseTimeDecoration​(java.util.concurrent.TimeUnit executionTimeunit, java.util.concurrent.TimeUnit displayTimeunit)
      Creates a new response time decoration.
      Parameters:
      executionTimeunit - The time unit which tells how to interpret the times of the executions.
      displayTimeunit - The time unit used for printing the time value.
  • Method Details

    • registerExecution

      public void registerExecution​(kieker.model.system.model.Execution execution)
      Registers a given execution for the decorated vertex.
      Parameters:
      execution - The execution to register
    • getMinimalResponseTime

      public long getMinimalResponseTime()
      Returns the minimal response time (in ms) registered by this decoration.
      Returns:
      See above
    • getMaximalResponseTime

      public long getMaximalResponseTime()
      Returns the maximal response time (in ms) registered by this decoration.
      Returns:
      See above
    • getAverageResponseTime

      public double getAverageResponseTime()
      Returns the average response time (in ms) registered by this decoration.
      Returns:
      See above
    • getTotalResponseTime

      public long getTotalResponseTime()
    • createFormattedOutput

      public java.lang.String createFormattedOutput()
      Description copied from class: AbstractVertexDecoration
      Creates formatted output for this decoration.
      Specified by:
      createFormattedOutput in class AbstractVertexDecoration
      Returns:
      See above