/** * Tell listeners about pre log roll. */ private void tellListenersAboutPreLogRoll(final Path oldPath, final Path newPath) throws IOException { coprocessorHost.preWALRoll(oldPath, newPath); if (!this.listeners.isEmpty()) { for (WALActionsListener i : this.listeners) { i.preLogRoll(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 pre log roll. * @throws IOException */ private void tellListenersAboutPreLogRoll(final Path oldPath, final Path newPath) throws IOException { if (!this.listeners.isEmpty()) { for (WALActionsListener i : this.listeners) { i.preLogRoll(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.preLogRoll(oldPath, newPath);