Package kieker.monitoring.timer
Class AbstractTimeSource
java.lang.Object
kieker.monitoring.timer.AbstractTimeSource
- All Implemented Interfaces:
ITimeSource
- Direct Known Subclasses:
SystemMilliTimer,SystemNanoTimer
- Since:
- 1.3
- Author:
- Jan Waller
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractTimeSource(Configuration configuration) This constructor initializes the class using the given configuration. -
Method Summary
Modifier and TypeMethodDescriptionprotected ConfigurationThis 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 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
- Specified by:
toStringin interfaceITimeSource- Overrides:
toStringin classObject- Returns:
- A String representation of the timesource. E.g., the meaning of a timestamp from this source.
-