use of org.apache.ratis.server.storage.MemoryRaftLog in project incubator-ratis by apache.
the class MiniRaftCluster method printAllLogs.
public String printAllLogs() {
StringBuilder b = new StringBuilder("\n#servers = " + servers.size() + "\n");
for (RaftServerImpl s : iterateServerImpls()) {
b.append(" ");
b.append(s).append("\n");
final RaftLog log = s.getState().getLog();
if (log instanceof MemoryRaftLog) {
b.append(" ");
b.append(((MemoryRaftLog) log).getEntryString());
}
}
return b.toString();
}
Aggregations