示例#1
0
        /// <summary>
        /// Remove the child from this
        /// <see cref="JobQueueInfo"/>
        /// . This also resets the
        /// queue-name of the child from a fully-qualified name to a simple queue name.
        /// Only for testing.
        /// </summary>
        /// <param name="child"/>
        internal virtual void RemoveChild(Org.Apache.Hadoop.Mapred.JobQueueInfo child)
        {
            IList <Org.Apache.Hadoop.Mapred.JobQueueInfo> children = GetChildren();

            children.Remove(child);
            SetChildren(children);
        }
示例#2
0
        /// <summary>
        /// Add a child
        /// <see cref="JobQueueInfo"/>
        /// to this
        /// <see cref="JobQueueInfo"/>
        /// . Modify the
        /// fully-qualified name of the child
        /// <see cref="JobQueueInfo"/>
        /// to reflect the
        /// hierarchy.
        /// Only for testing.
        /// </summary>
        /// <param name="child"/>
        internal virtual void AddChild(Org.Apache.Hadoop.Mapred.JobQueueInfo child)
        {
            IList <Org.Apache.Hadoop.Mapred.JobQueueInfo> children = GetChildren();

            children.AddItem(child);
            SetChildren(children);
        }