@Test public void returnsZeroFromGetLastTermWhenLogIsEmpty() { ignoringLog(); assertThat(log.getLastTerm(), is(equalTo(0L))); }
@Override public long getLastTerm() { return currentTerm; }
Mooring implements ReplicatorLog { @Override public long getLastTerm() { return currentTerm; } }
Mooring implements ReplicatorLog { @Override public long getLastTerm() { return currentTerm; } Mooring(OLog log, String quorumId); }
Mooring implements ReplicatorLog { @Override public long getLastTerm() { return currentTerm; } Mooring(OLog log, String quorumId); @Override ListenableFuture<Boolean> logEntries(List<LogEntry> entries); @Override ListenableFuture<List<LogEntry>> getLogEntries(long start, long end); @Override long getLogTerm(long index); @Override long getLastTerm(); @Override long getLastIndex(); @Override ListenableFuture<Boolean> truncateLog(long entryIndex); @Override QuorumConfiguration getLastConfiguration(); @Override long getLastConfigurationIndex(); }
Mooring implements ReplicatorLog { @Override public long getLastTerm() { return currentTerm; } Mooring(OLog log, String quorumId); @Override ListenableFuture<Boolean> logEntries(List<LogEntry> entries); @Override ListenableFuture<List<LogEntry>> getLogEntries(long start, long end); @Override long getLogTerm(long index); @Override long getLastTerm(); @Override long getLastIndex(); @Override ListenableFuture<Boolean> truncateLog(long entryIndex); @Override QuorumConfiguration getLastConfiguration(); @Override long getLastConfigurationIndex();  }