/// <exception cref="Org.Apache.Hadoop.Yarn.Exceptions.YarnException"/> private void AddStartingContainer(NMClientImpl.StartedContainer startedContainer) { if (startedContainers.PutIfAbsent(startedContainer.containerId, startedContainer) != null) { throw RPCUtil.GetRemoteException("Container " + startedContainer.containerId.ToString () + " is already started"); } startedContainers[startedContainer.GetContainerId()] = startedContainer; }