protected void signalDone(WriteBatch wb) { // Now that the data is on disk, remove the writes from the in // flight // cache. Journal.WriteCommand write = wb.writes.getHead(); while (write != null) { if (!write.sync) { inflightWrites.remove(new Journal.WriteKey(write.location)); } if (write.onComplete != null && wb.exception.get() == null) { try { write.onComplete.run(); } catch (Throwable e) { logger.info("Add exception was raised while executing the run command for onComplete", e); } } write = write.getNext(); } // Signal any waiting threads that the write is on disk. wb.latch.countDown(); }
private void signalDone(WriteBatch writeBatch) { // Now that the data is on disk, remove the writes from the in // flight cache and signal any onComplete requests. Journal.WriteCommand write = writeBatch.writes.getHead(); while (write != null) { if (!write.sync) { inflightWrites.remove(new Journal.WriteKey(write.location)); } if (write.onComplete != null) { try { write.onComplete.run(); } catch (Throwable e) { LOG.info("Add exception was raised while executing the run command for onComplete", e); } } write = write.getNext(); } } }
buff.writeByte(write.location.getType()); buff.write(write.data.getData(), write.data.getOffset(), write.data.getLength()); write = write.getNext();
buff.writeByte(write.location.getType()); buff.write(write.data.getData(), write.data.getOffset(), write.data.getLength()); write = write.getNext();
buff.writeByte(write.location.getType()); buff.write(write.data.getData(), write.data.getOffset(), write.data.getLength()); write = write.getNext();
buff.writeByte(write.location.getType()); buff.write(write.data.getData(), write.data.getOffset(), write.data.getLength()); write = write.getNext();
buff.writeByte(write.location.getType()); buff.write(write.data.getData(), write.data.getOffset(), write.data.getLength()); write = write.getNext();
buff.writeByte(write.location.getType()); buff.write(write.data.getData(), write.data.getOffset(), write.data.getLength()); write = write.getNext();
buff.writeByte(write.location.getType()); buff.write(write.data.getData(), write.data.getOffset(), write.data.getLength()); write = write.getNext();
protected void signalDone(WriteBatch wb) { // Now that the data is on disk, remove the writes from the in // flight // cache. Journal.WriteCommand write = wb.writes.getHead(); while (write != null) { if (!write.sync) { inflightWrites.remove(new Journal.WriteKey(write.location)); } if (write.onComplete != null && wb.exception.get() == null) { try { write.onComplete.run(); } catch (Throwable e) { logger.info("Add exception was raised while executing the run command for onComplete", e); } } write = write.getNext(); } // Signal any waiting threads that the write is on disk. wb.latch.countDown(); }
protected void signalDone(WriteBatch wb) { // Now that the data is on disk, remove the writes from the in // flight // cache. Journal.WriteCommand write = wb.writes.getHead(); while (write != null) { if (!write.sync) { inflightWrites.remove(new Journal.WriteKey(write.location)); } if (write.onComplete != null && wb.exception.get() == null) { try { write.onComplete.run(); } catch (Throwable e) { logger.info("Add exception was raised while executing the run command for onComplete", e); } } write = write.getNext(); } // Signal any waiting threads that the write is on disk. wb.latch.countDown(); }
private void signalDone(WriteBatch writeBatch) { // Now that the data is on disk, remove the writes from the in // flight cache and signal any onComplete requests. Journal.WriteCommand write = writeBatch.writes.getHead(); while (write != null) { if (!write.sync) { inflightWrites.remove(new Journal.WriteKey(write.location)); } if (write.onComplete != null) { try { write.onComplete.run(); } catch (Throwable e) { LOG.info("Add exception was raised while executing the run command for onComplete", e); } } write = write.getNext(); } } }
private void signalDone(WriteBatch writeBatch) { // Now that the data is on disk, remove the writes from the in // flight cache and signal any onComplete requests. Journal.WriteCommand write = writeBatch.writes.getHead(); while (write != null) { if (!write.sync) { inflightWrites.remove(new Journal.WriteKey(write.location)); } if (write.onComplete != null) { try { write.onComplete.run(); } catch (Throwable e) { LOG.info("Add exception was raised while executing the run command for onComplete", e); } } write = write.getNext(); } } }
protected void signalDone(WriteBatch wb) { // Now that the data is on disk, remove the writes from the in // flight // cache. Journal.WriteCommand write = wb.writes.getHead(); while (write != null) { if (!write.sync) { inflightWrites.remove(new Journal.WriteKey(write.location)); } if (write.onComplete != null && wb.exception.get() == null) { try { write.onComplete.run(); } catch (Throwable e) { logger.info("Add exception was raised while executing the run command for onComplete", e); } } write = write.getNext(); } // Signal any waiting threads that the write is on disk. wb.latch.countDown(); }
private void signalDone(WriteBatch writeBatch) { // Now that the data is on disk, remove the writes from the in // flight cache and signal any onComplete requests. Journal.WriteCommand write = writeBatch.writes.getHead(); while (write != null) { if (!write.sync) { inflightWrites.remove(new Journal.WriteKey(write.location)); } if (write.onComplete != null) { try { write.onComplete.run(); } catch (Throwable e) { LOG.info("Add exception was raised while executing the run command for onComplete", e); } } write = write.getNext(); } } }
private boolean syncBatch(LinkedNodeList<Journal.WriteCommand> writes) { Journal.WriteCommand write = writes.getHead(); while (write != null && write.sync) { write = write.getNext(); } return write == null; } }
private boolean syncBatch(LinkedNodeList<Journal.WriteCommand> writes) { Journal.WriteCommand write = writes.getHead(); while (write != null && write.sync) { write = write.getNext(); } return write == null; } }
private boolean syncBatch(LinkedNodeList<Journal.WriteCommand> writes) { Journal.WriteCommand write = writes.getHead(); while (write != null && write.sync) { write = write.getNext(); } return write == null; } }
buff.writeByte(write.location.getType()); buff.write(write.data.getData(), write.data.getOffset(), write.data.getLength()); write = write.getNext();
private boolean syncBatch(LinkedNodeList<Journal.WriteCommand> writes) { Journal.WriteCommand write = writes.getHead(); while (write != null && write.sync) { write = write.getNext(); } return write == null; } }