Integer timeoutToUse = (excludes.get(n.getHostName()) != null)? excludes.get(n.getHostName()) : timeout; e = new RMNodeDecommissioningEvent(n.getNodeID(), timeoutToUse); } else { RMNodeEventType eventType = isUntrackedNode(n.getHostName())?
public void sendNodeGracefulDecommission( MockNM nm, int timeout) throws Exception { RMNodeImpl node = (RMNodeImpl) getRMContext().getRMNodes().get(nm.getNodeId()); Assert.assertNotNull("node shouldn't be null", node); node.handle(new RMNodeDecommissioningEvent(nm.getNodeId(), timeout)); }