@After public void tearDown() throws InterruptedException { masterClientRunner.stop(); masterSlaveRunner.stop(); for (ServerRunner slaveRunner : slaveRunners.values()) { slaveRunner.stop(); } client = null; master = null; slaveRunners = null; }
protected void stopSlave(String name) throws InterruptedException { ServerRunner sr = slaveRunners.get(name); if (sr == null) { throw new RuntimeException("Slave does not exist!"); } else { sr.stop(); } }