Пример #1
0
        /// <summary>
        /// Initializes a new instance of the ApplicationAttemptDetails class.
        /// </summary>
        /// <param name="attemptResult">
        /// Result of a REST call, containing details about an application's attempt.
        /// </param>
        /// <param name="application">
        /// The application with which this attempt is associated.
        /// </param>
        internal ApplicationAttemptDetails(ApplicationAttemptGetResult attemptResult, ApplicationDetails application)
        {
            if (attemptResult == null)
            {
                throw new ArgumentNullException("attemptResult");
            }

            if (application == null)
            {
                throw new ArgumentNullException("application");
            }

            this.ApplicationAttemptId = attemptResult.ApplicationAttemptId;
            this.Host  = attemptResult.Host;
            this.State = attemptResult.State;
            this.ApplicationMasterContainerId = attemptResult.ApplicationMasterContainerId;
            this.DiagnosticInfo = attemptResult.DiagnosticInfo;

            this.ParentApplication = application;
        }
        /// <summary>
        /// Initializes a new instance of the ApplicationAttemptDetails class.
        /// </summary>
        /// <param name="attemptResult">
        /// Result of a REST call, containing details about an application's attempt.
        /// </param>
        /// <param name="application">
        /// The application with which this attempt is associated.
        /// </param>
        internal ApplicationAttemptDetails(ApplicationAttemptGetResult attemptResult, ApplicationDetails application)
        {
            if (attemptResult == null)
            {
                throw new ArgumentNullException("attemptResult");
            }

            if (application == null)
            {
                throw new ArgumentNullException("application");
            }

            this.ApplicationAttemptId = attemptResult.ApplicationAttemptId;
            this.Host = attemptResult.Host;
            this.State = attemptResult.State;
            this.ApplicationMasterContainerId = attemptResult.ApplicationMasterContainerId;
            this.DiagnosticInfo = attemptResult.DiagnosticInfo;

            this.ParentApplication = application;
        }