use of io.aeron.samples.cluster.EchoServiceNode in project Aeron by real-logic.
the class ClusterNetworkTopologyTest method setUp.
@BeforeEach
void setUp() {
Tests.await(() -> {
final List<VirtualMachineDescriptor> list = VirtualMachine.list();
final List<VirtualMachineDescriptor> echoServices = list.stream().filter((vm) -> EchoServiceNode.class.getName().equals(vm.displayName())).collect(Collectors.toList());
if (!echoServices.isEmpty()) {
System.out.println(echoServices);
Tests.sleep(200, () -> "Failed to shutdown EchoServiceNode");
}
return echoServices.isEmpty();
}, SECONDS.toNanos(10));
baseDir = FileResolveUtil.resolveClusterScriptDir();
IoUtil.delete(new File(baseDir, "node0"), true);
IoUtil.delete(new File(baseDir, "node1"), true);
IoUtil.delete(new File(baseDir, "node2"), true);
}
use of io.aeron.samples.cluster.EchoServiceNode in project aeron by real-logic.
the class ClusterNetworkTopologyTest method setUp.
@BeforeEach
void setUp() {
Tests.await(() -> {
final List<VirtualMachineDescriptor> list = VirtualMachine.list();
final List<VirtualMachineDescriptor> echoServices = list.stream().filter((vm) -> EchoServiceNode.class.getName().equals(vm.displayName())).collect(Collectors.toList());
if (!echoServices.isEmpty()) {
System.out.println(echoServices);
Tests.sleep(200, () -> "Failed to shutdown EchoServiceNode");
}
return echoServices.isEmpty();
}, SECONDS.toNanos(10));
baseDir = FileResolveUtil.resolveClusterScriptDir();
IoUtil.delete(new File(baseDir, "node0"), true);
IoUtil.delete(new File(baseDir, "node1"), true);
IoUtil.delete(new File(baseDir, "node2"), true);
}
Aggregations