possible to open a chronicle read only?

35 views
Skip to first unread message

Jerry Shea

unread,
Jul 3, 2016, 9:46:51 PM7/3/16
to Chronicle
Right now it doesn't seem possible to open a chronicle queue (v 3.6.1.8) against read-only .index and .data files, an exception is thown because IndexedChronicle tries to open the files read/write.

        this.indexFileCache = VanillaMappedBlocks.readWrite(new File(basePath + ".index"),
                builder.indexBlockSize(), builder.fileLifecycleListener());
        this.dataFileCache = VanillaMappedBlocks.readWrite(new File(basePath + ".data"),
                builder.dataBlockSize(), builder.fileLifecycleListener());

Is there a way to open up a chronicle against a read-only file for tailing only?

Thanks, Jerry

Peter Lawrey

unread,
Jul 4, 2016, 2:27:23 AM7/4/16
to java-ch...@googlegroups.com

Hello Jerry,
   Not at the moment. Queue v4.4 doesn't support this either. If you need this we could add it to 4.5 if you raise an issue.

Regards, Peter.

--
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.

Jerry Shea

unread,
Jul 4, 2016, 8:46:52 AM7/4/16
to Chronicle
Done - thanks!
Reply all
Reply to author
Forward
0 new messages