Class TaskTimerData

java.lang.Object
org.deltava.beans.acars.TaskTimerData
All Implemented Interfaces:
Serializable, Comparable<TaskTimerData>

public class TaskTimerData extends Object implements Serializable, Comparable<TaskTimerData>
A bean to store ACARS client task timer statistics.
Since:
8.6
Version:
10.0
Author:
Luke
See Also:
  • Constructor Details

    • TaskTimerData

      public TaskTimerData(String name, int tickSize)
      Creates the bean.
      Parameters:
      name - the timer name
      tickSize - the number of .NET ticks per millisecond
  • Method Details

    • getName

      public String getName()
      Returns the timer name.
      Returns:
      the name
    • getTickSize

      public int getTickSize()
      Returns the number of .NET ticks per millisecond.
      Returns:
      the number of ticks
    • getAverage

      public double getAverage()
      Returns the average execution time.
      Returns:
      the average execution time in ticks, or zero if never executed
    • getTotal

      public long getTotal()
      Returns the total execution time.
      Returns:
      the total time in ticks
    • getCount

      public long getCount()
      Returns the total number of executions.
      Returns:
      the execution count
    • getMin

      public int getMin()
      Returns the maximum execution time.
      Returns:
      the execution time in ticks
    • getMax

      public int getMax()
      Returns the minimum execution time.
      Returns:
      the execution time in ticks
    • getStdDev

      public double getStdDev()
      Returns the standard deviation.
      Returns:
      the standard deviation in ticks
    • setTotal

      public void setTotal(long total)
      Updates the total execution time.
      Parameters:
      total -
    • setCount

      public void setCount(long cnt)
      Updates the execution count.
      Parameters:
      cnt - the times executed
    • setMin

      public void setMin(int m)
      Updates the minimum execution time.
      Parameters:
      m - the minimum value
    • setMax

      public void setMax(int m)
      Updates the maximum execution time.
      Parameters:
      m - the maximum value
    • setStdDev

      public void setStdDev(double sd)
      Updates the standard deviation.
      Parameters:
      sd - the standard deviation in ticks
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • compareTo

      public int compareTo(TaskTimerData tt2)
      Specified by:
      compareTo in interface Comparable<TaskTimerData>