/** Appends {@code numEntries} increasingly numbered ByteBuffer wrapped entries to the log. */ protected List<Long> appendEntries(int numEntries, Compaction.Mode mode) { return appendEntries(numEntries, (int) log.length() + 1, mode); }
protected void printLog() { for (int i = 1; i < log.length(); i++) { System.out.println(log.get(i).toString()); } }
/** Appends {@code numEntries} increasingly numbered ByteBuffer wrapped entries to the log. */ protected List<Long> appendEntries(int numEntries) { return appendEntries(numEntries, (int) log.length() + 1, Compaction.Mode.QUORUM); }