Class TimerData

    • Constructor Detail

      • TimerData

        public TimerData​(char typeCode)
        Creates a new TimerData object and gives it the specified type code.
        Parameters:
        typeCode - the type code
      • TimerData

        public TimerData​(java.lang.String name,
                         char typeCode)
        Creates a new TimerData object and gives it the specified name and type code. Furthermore, the start time attribute is set to the current time.
        Parameters:
        name - the request name
        typeCode - the type code
    • Method Detail

      • getEndTime

        public long getEndTime()
        Returns the end time. Calculated from start time and run time.
        Returns:
        the end time
      • getRunTime

        public int getRunTime()
        Returns the run time.
        Returns:
        the run time
      • hasFailed

        public boolean hasFailed()
        Indicates whether or not a failure had occurred.
        Returns:
        the failure status
      • setFailed

        public void setFailed​(boolean failed)
        Sets whether or not a failure had occurred.
        Parameters:
        failed - the new status
      • setRunTime

        public void setRunTime​(long runTime)
        Sets the run time. Convenience method for long values, but note that internally the value is cast to int.
        Parameters:
        runTime - the runTime
      • setRunTime

        public void setRunTime​(int runTime)
        Sets the run time.
        Parameters:
        runTime - the runTime
      • addValues

        protected java.util.List<java.lang.String> addValues()
        Builds a list of string values that represents the state of this object. Override this method in sub classes to add custom values and use the list created by the super class.
        Overrides:
        addValues in class AbstractData
        Returns:
        the list of values
      • getMinNoCSVElements

        protected int getMinNoCSVElements()
        Returns the minimum number of elements in the CSV string.
        Overrides:
        getMinNoCSVElements in class AbstractData
        Returns:
        minimum number of elements in the CSV string