Class FileSource<T>
java.lang.Object
com.arpnetworking.metrics.common.sources.BaseSource
com.arpnetworking.metrics.common.sources.FileSource<T>
- Type Parameters:
T
- The data type to parse from theSource
.
- All Implemented Interfaces:
com.arpnetworking.commons.observer.Observable
,Source
Produce instances of
FileSource
from a file. Supports rotating files
using Tailer
from Apache Commons IO.- Author:
- Ville Koskela (ville dot koskela at inscopemetrics dot io)
-
Nested Class Summary
-
Method Summary
Methods inherited from class com.arpnetworking.metrics.common.sources.BaseSource
attach, detach, getMetricSafeName, getName, notify
-
Method Details
-
start
public void start()Description copied from interface:Source
Called to allow the source to start producing records. -
stop
public void stop()Description copied from interface:Source
Called to allow the source to clean-up. No further records should be produced. -
toLogValue
Generate a Steno log compatible representation.- Overrides:
toLogValue
in classBaseSource
- Returns:
- Steno log compatible representation.
-
toString
- Overrides:
toString
in classBaseSource
-