Class TaskTimerData
java.lang.Object
org.deltava.beans.acars.TaskTimerData
- All Implemented Interfaces:
Serializable, Comparable<TaskTimerData>
A bean to store ACARS client task timer statistics.
- Since:
- 8.6
- Version:
- 10.0
- Author:
- Luke
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(TaskTimerData tt2) doubleReturns the average execution time.longgetCount()Returns the total number of executions.intgetMax()Returns the minimum execution time.intgetMin()Returns the maximum execution time.getName()Returns the timer name.doubleReturns the standard deviation.intReturns the number of .NET ticks per millisecond.longgetTotal()Returns the total execution time.inthashCode()voidsetCount(long cnt) Updates the execution count.voidsetMax(int m) Updates the maximum execution time.voidsetMin(int m) Updates the minimum execution time.voidsetStdDev(double sd) Updates the standard deviation.voidsetTotal(long total) Updates the total execution time.
-
Constructor Details
-
TaskTimerData
Creates the bean.- Parameters:
name- the timer nametickSize- the number of .NET ticks per millisecond
-
-
Method Details
-
getName
-
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
-
compareTo
- Specified by:
compareToin interfaceComparable<TaskTimerData>
-