Package kieker.monitoring.timer
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 protectedAbstractTimeSource(Configuration configuration)This constructor initializes the class using the given configuration. -
Method Summary
Modifier and Type Method Description protected ConfigurationgetDefaultConfiguration()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.StringtoString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface kieker.monitoring.timer.ITimeSource
getOffset, getTime, getTimeUnit
-
Constructor Details
-
AbstractTimeSource
This constructor initializes the class using the given configuration.- Parameters:
configuration- The configuration for this time source.
-
-
Method Details
-
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:
toStringin interfaceITimeSource- Overrides:
toStringin classjava.lang.Object- Returns:
- A String representation of the timesource. E.g., the meaning of a timestamp from this source.
-