private RMContainer RecoverAndCreateContainer(NMContainerStatus status, RMNode node ) { Container container = Container.NewInstance(status.GetContainerId(), node.GetNodeID (), node.GetHttpAddress(), status.GetAllocatedResource(), status.GetPriority(), null); ApplicationAttemptId attemptId = container.GetId().GetApplicationAttemptId(); RMContainer rmContainer = new RMContainerImpl(container, attemptId, node.GetNodeID (), applications[attemptId.GetApplicationId()].GetUser(), rmContext, status.GetCreationTime ()); return(rmContainer); }