use of io.atomix.protocols.backup.protocol.TestPrimaryBackupProtocolFactory in project atomix by atomix.
the class PrimaryBackupTest method clearTests.
@Before
@After
public void clearTests() throws Exception {
Futures.allOf(servers.stream().map(s -> s.stop().exceptionally(v -> null)).collect(Collectors.toList())).get(30, TimeUnit.SECONDS);
Futures.allOf(clients.stream().map(c -> c.close().exceptionally(v -> null)).collect(Collectors.toList())).get(30, TimeUnit.SECONDS);
nodes = new ArrayList<>();
memberId = 0;
sessionId = 0;
clients = new ArrayList<>();
servers = new ArrayList<>();
protocolFactory = new TestPrimaryBackupProtocolFactory();
election = new TestPrimaryElection(PartitionId.from("test", 1));
}
Aggregations