ServerLogReaderTransactional logReader = new ServerLogReaderTransactional(
core, Util.fileAsURI(editsDir));
try {
while (true) {
NamespaceNotification n = logReader.getNamespaceNotification();
LOG.info("Got notification: " + n);
}
} catch (IOException e) {
// this will finally fail, because we close last segment
LOG.info("Exception: " + e.getMessage(), e);