Class CpeTimerImpl

  • All Implemented Interfaces:
    CpeTimer

    public class CpeTimerImpl
    extends java.lang.Object
    implements CpeTimer
    This class provides an API to plug in custom timers.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String timer
      The timer.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private CpeTimerImpl()
      Instantiates a new cpe timer impl.
        CpeTimerImpl​(java.lang.String aTimerClass)
      Instantiates a new cpe timer impl.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String get()
      Return a name of the timer class
      void set​(java.lang.String aTimerClass)
      Plug-in a custom timer class to be used for measuring performance.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • timer

        private java.lang.String timer
        The timer.
    • Constructor Detail

      • CpeTimerImpl

        private CpeTimerImpl()
        Instantiates a new cpe timer impl.
      • CpeTimerImpl

        public CpeTimerImpl​(java.lang.String aTimerClass)
        Instantiates a new cpe timer impl.
        Parameters:
        aTimerClass - the a timer class
    • Method Detail

      • set

        public void set​(java.lang.String aTimerClass)
                 throws CpeDescriptorException
        Description copied from interface: CpeTimer
        Plug-in a custom timer class to be used for measuring performance.
        Specified by:
        set in interface CpeTimer
        Parameters:
        aTimerClass - - name of a timer class
        Throws:
        CpeDescriptorException - tbd
      • get

        public java.lang.String get()
        Description copied from interface: CpeTimer
        Return a name of the timer class
        Specified by:
        get in interface CpeTimer
        Returns:
        - class as string