public override long GetLimit()
 {
     if (this.limit == long.MaxValue)
     {
         YarnServiceProtos.GetApplicationsRequestProtoOrBuilder p = viaProto ? proto : builder;
         this.limit = p.HasLimit() ? p.GetLimit() : long.MaxValue;
     }
     return(this.limit);
 }
 private void InitScope()
 {
     if (this.scope != null)
     {
         return;
     }
     YarnServiceProtos.GetApplicationsRequestProtoOrBuilder p = viaProto ? proto : builder;
     this.scope = ProtoUtils.ConvertFromProtoFormat(p.GetScope());
 }
 private void InitApplicationTags()
 {
     if (this.applicationTags != null)
     {
         return;
     }
     YarnServiceProtos.GetApplicationsRequestProtoOrBuilder p = viaProto ? proto : builder;
     this.applicationTags = new HashSet <string>();
     Sharpen.Collections.AddAll(this.applicationTags, p.GetApplicationTagsList());
 }
        private void InitQueues()
        {
            if (this.queues != null)
            {
                return;
            }
            YarnServiceProtos.GetApplicationsRequestProtoOrBuilder p = viaProto ? proto : builder;
            IList <string> queuesList = p.GetQueuesList();

            this.queues = new HashSet <string>();
            Sharpen.Collections.AddAll(this.queues, queuesList);
        }
 public override LongRange GetFinishRange()
 {
     if (this.finish == null)
     {
         YarnServiceProtos.GetApplicationsRequestProtoOrBuilder p = viaProto ? proto : builder;
         if (p.HasFinishBegin() || p.HasFinishEnd())
         {
             long begin = p.HasFinishBegin() ? p.GetFinishBegin() : 0L;
             long end   = p.HasFinishEnd() ? p.GetFinishEnd() : long.MaxValue;
             this.finish = new LongRange(begin, end);
         }
     }
     return(this.finish);
 }
        private void InitApplicationStates()
        {
            if (this.applicationStates != null)
            {
                return;
            }
            YarnServiceProtos.GetApplicationsRequestProtoOrBuilder p             = viaProto ? proto : builder;
            IList <YarnProtos.YarnApplicationStateProto>           appStatesList = p.GetApplicationStatesList
                                                                                       ();

            this.applicationStates = EnumSet.NoneOf <YarnApplicationState>();
            foreach (YarnProtos.YarnApplicationStateProto c in appStatesList)
            {
                this.applicationStates.AddItem(ProtoUtils.ConvertFromProtoFormat(c));
            }
        }