예제 #1
0
 /** 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);
 }
예제 #2
0
 protected void printLog() {
   for (int i = 1; i < log.length(); i++) {
     System.out.println(log.get(i).toString());
   }
 }
예제 #3
0
 /** 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);
 }