/** * Tell listeners about post log roll. */ private void tellListenersAboutPostLogRoll(final Path oldPath, final Path newPath) throws IOException { if (!this.listeners.isEmpty()) { for (WALActionsListener i : this.listeners) { i.postLogRoll(oldPath, newPath); } } coprocessorHost.postWALRoll(oldPath, newPath); }
@Override public byte[][] rollWriter() { if (!listeners.isEmpty()) { for (WALActionsListener listener : listeners) { listener.logRollRequested(false); } for (WALActionsListener listener : listeners) { try { listener.preLogRoll(path, path); } catch (IOException exception) { LOG.debug("Ignoring exception from listener.", exception); } } for (WALActionsListener listener : listeners) { try { listener.postLogRoll(path, path); } catch (IOException exception) { LOG.debug("Ignoring exception from listener.", exception); } } } return null; }
/** * Tell listeners about post log roll. * @throws IOException */ private void tellListenersAboutPostLogRoll(final Path oldPath, final Path newPath) throws IOException { if (!this.listeners.isEmpty()) { for (WALActionsListener i : this.listeners) { i.postLogRoll(oldPath, newPath); } } }
@Override public byte[][] rollWriter() { if (!listeners.isEmpty()) { for (WALActionsListener listener : listeners) { listener.logRollRequested(false); } for (WALActionsListener listener : listeners) { try { listener.preLogRoll(path, path); } catch (IOException exception) { LOG.debug("Ignoring exception from listener.", exception); } } for (WALActionsListener listener : listeners) { try { listener.postLogRoll(path, path); } catch (IOException exception) { LOG.debug("Ignoring exception from listener.", exception); } } } return null; }
i.postLogRoll(oldPath, newPath);