Old files deletion/archiving

30 views
Skip to first unread message

Mickael Marrache

unread,
May 11, 2016, 7:29:24 AM5/11/16
to Chronicle
Hi,

When the tailer reads from the queue, it moves from cycle to cycle and therefore from file to file. I would like to delete these files after they have been processed.

Is there a way to keep track of which files have already been processed?

Also, is it possible for a tailer to execute some action (e.g. moving the file to an archive directory) when it moves from one file to another?

Thanks,
Mickael

Peter Lawrey

unread,
May 11, 2016, 8:07:40 AM5/11/16
to java-ch...@googlegroups.com
We can add a call back to this effect. In the short term you can look at the index, which has the cycle number in the high bits and the sequence number in the low bits.  You can use RollCycle.DAILY.toCycle(index) to see when the cycle changes.

--
You received this message because you are subscribed to the Google Groups "Chronicle" group.
To unsubscribe from this group and stop receiving emails from it, send an email to java-chronicl...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages