@Test public void testDefaultPropertiesAreValid() { RaftProperties props = new RaftProperties(); try (MockServer server = new MockServer()) { server.validateRaftProperties(props); } }
void validateRaftProperties(RaftProperties properties) { if (RaftServerConfigKeys.Snapshot.autoTriggerEnabled(properties)) { throw new IllegalStateException("Auto triggering snapshots is disallowed by the LogService"); } }
BaseServer implements Closeable { void validateRaftProperties(RaftProperties properties) { if (RaftServerConfigKeys.Snapshot.autoTriggerEnabled(properties)) { throw new IllegalStateException("Auto triggering snapshots is disallowed by the LogService"); } } }
BaseServer implements Closeable { void validateRaftProperties(RaftProperties properties) { if (RaftServerConfigKeys.Snapshot.autoTriggerEnabled(properties)) { throw new IllegalStateException("Auto triggering snapshots is disallowed by the LogService"); } } BaseServer(ServerOpts opts); }
BaseServer implements Closeable { void validateRaftProperties(RaftProperties properties) { if (RaftServerConfigKeys.Snapshot.autoTriggerEnabled(properties)) { throw new IllegalStateException("Auto triggering snapshots is disallowed by the LogService"); } } BaseServer(ServerOpts opts); ServerOpts getServerOpts(); LogServiceConfiguration getConfig(); }
BaseServer implements Closeable { void validateRaftProperties(RaftProperties properties) { if (RaftServerConfigKeys.Snapshot.autoTriggerEnabled(properties)) { throw new IllegalStateException("Auto triggering snapshots is disallowed by the LogService"); } } BaseServer(ServerOpts opts); ServerOpts getServerOpts(); LogServiceConfiguration getConfig();  }