@InterfaceAudience.Private @VisibleForTesting public synchronized void stopResourceManager(int index) { if (resourceManagers[index] != null) { resourceManagers[index].stop(); resourceManagers[index] = null; } }
@After public void tearDown() throws Exception { if (resourceManager != null) { resourceManager.stop(); } }
@After public void teardown() { if (resourceManager != null) { resourceManager.stop(); resourceManager = null; } conf = null; }
@InterfaceAudience.Private @VisibleForTesting public synchronized void stopResourceManager(int index) { if (resourceManagers[index] != null) { resourceManagers[index].stop(); resourceManagers[index] = null; } }
@After public void tearDown() throws Exception { if (resourceManager != null) { resourceManager.stop(); } }
@After public void teardown() { if (resourceManager != null) { resourceManager.stop(); resourceManager = null; } conf = null; }
@After public void teardown() { if (resourceManager != null) { resourceManager.stop(); resourceManager = null; } }
@After public void teardown() { ALLOC_FILE.delete(); conf = null; if (resourceManager != null) { resourceManager.stop(); resourceManager = null; } }
@After public void teardown() { ALLOC_FILE.delete(); conf = null; if (resourceManager != null) { resourceManager.stop(); resourceManager = null; } }
@After public void teardown() { if (resourceManager != null) { resourceManager.stop(); resourceManager = null; } }
@After public void teardown() { if (resourceManager != null) { resourceManager.stop(); resourceManager = null; } }
@After public void teardown() { if (resourceManager != null) { resourceManager.stop(); resourceManager = null; } conf = null; }
@After public void teardown() { if (resourceManager != null) { resourceManager.stop(); resourceManager = null; } conf = null; }
@After public void teardown() { ALLOC_FILE.deleteOnExit(); if (resourceManager != null) { resourceManager.stop(); resourceManager = null; } }
@After public void tearDown() throws Exception { resourceManager.stop(); }
@After public void tearDown() throws Exception { resourceManager.stop(); }
@After public void teardown() { if (resourceManager != null) { resourceManager.stop(); resourceManager = null; } conf = null; }
@After public void cleanup() throws IOException { rm.stop(); curatorFramework.close(); curatorTestingServer.stop(); }
@After public void tearDown() { if (resourceManager != null) { resourceManager.stop(); resourceManager = null; } QueueMetrics.clearQueueMetrics(); DefaultMetricsSystem.shutdown(); }
@InterfaceAudience.Private @VisibleForTesting public synchronized void restartResourceManager(int index) throws InterruptedException { if (resourceManagers[index] != null) { resourceManagers[index].stop(); resourceManagers[index] = null; } resourceManagers[index] = new ResourceManager(); initResourceManager(index, getConfig()); startResourceManager(index); }