Class StatefulTailer
java.lang.Object
com.arpnetworking.metrics.common.tailer.StatefulTailer
A reimplementation of the Apache Commons IO tailer based on the 2.5 snapshot
version. This version attempts to address several shortcomings of the Apache
Commons implementation. In particular, more robust support for rename-
recreate file rotations and some progress for copy-truncate cases. The major
new feature is the
PositionStore
which is used to checkpoint
the offset in the tailed file as identified by a hash of the file prefix.- Author:
- Brandon Arp (brandon dot arp at inscopemetrics dot io), Ville Koskela (ville dot koskela at inscopemetrics dot io)
-
Nested Class Summary
-
Method Summary
-
Method Details
-
stop
public void stop()Description copied from interface:Tailer
Stop theTailer
instance. -
run
public void run() -
toLogValue
Generate a Steno log compatible representation.- Returns:
- Steno log compatible representation.
-
toString
-
isRunning
protected boolean isRunning()Determine if theTailer
is running.- Returns:
True
if and only if theTailer
is running.
-