Class AbstractTimeSource

java.lang.Object
kieker.monitoring.timer.AbstractTimeSource
All Implemented Interfaces:
ITimeSource
Direct Known Subclasses:
SystemMilliTimer, SystemNanoTimer

public abstract class AbstractTimeSource
extends java.lang.Object
implements ITimeSource
Since:
1.3
Author:
Jan Waller
  • Constructor Summary

    Constructors 
    Modifier Constructor Description
    protected AbstractTimeSource​(Configuration configuration)
    This constructor initializes the class using the given configuration.
  • Method Summary

    Modifier and Type Method Description
    protected Configuration getDefaultConfiguration()
    This method should be overwritten, iff the timer is external to Kieker and thus its default configuration is not included in the default config file.
    abstract java.lang.String toString()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface kieker.monitoring.timer.ITimeSource

    getOffset, getTime, getTimeUnit
  • Constructor Details

    • AbstractTimeSource

      protected AbstractTimeSource​(Configuration configuration)
      This constructor initializes the class using the given configuration.
      Parameters:
      configuration - The configuration for this time source.
  • Method Details

    • getDefaultConfiguration

      protected Configuration getDefaultConfiguration()
      This method should be overwritten, iff the timer is external to Kieker and thus its default configuration is not included in the default config file.
      Returns:
      The configuration object containing the default configuration.
    • toString

      public abstract java.lang.String toString()
      Specified by:
      toString in interface ITimeSource
      Overrides:
      toString in class java.lang.Object
      Returns:
      A String representation of the timesource. E.g., the meaning of a timestamp from this source.