Пример #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);
 }