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 TypeMethodDescriptionint
compareTo
(TaskTimerData tt2) double
Returns the average execution time.long
getCount()
Returns the total number of executions.int
getMax()
Returns the minimum execution time.int
getMin()
Returns the maximum execution time.getName()
Returns the timer name.double
Returns the standard deviation.int
Returns the number of .NET ticks per millisecond.long
getTotal()
Returns the total execution time.int
hashCode()
void
setCount
(long cnt) Updates the execution count.void
setMax
(int m) Updates the maximum execution time.void
setMin
(int m) Updates the minimum execution time.void
setStdDev
(double sd) Updates the standard deviation.void
setTotal
(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:
compareTo
in interfaceComparable<TaskTimerData>
-