public static AMInfo NewAMInfo(ApplicationAttemptId appAttemptId, long startTime,
                                       ContainerId containerId, string nmHost, int nmPort, int nmHttpPort)
        {
            AMInfo amInfo = Org.Apache.Hadoop.Yarn.Util.Records.NewRecord <AMInfo>();

            amInfo.SetAppAttemptId(appAttemptId);
            amInfo.SetStartTime(startTime);
            amInfo.SetContainerId(containerId);
            amInfo.SetNodeManagerHost(nmHost);
            amInfo.SetNodeManagerPort(nmPort);
            amInfo.SetNodeManagerHttpPort(nmHttpPort);
            return(amInfo);
        }