Пример #1
0
        public static GetApplicationsRequest NewInstance(ApplicationsRequestScope scope,
                                                         ICollection <string> users, ICollection <string> queues, ICollection <string> applicationTypes
                                                         , ICollection <string> applicationTags, EnumSet <YarnApplicationState> applicationStates
                                                         , LongRange startRange, LongRange finishRange, long limit)
        {
            GetApplicationsRequest request = Org.Apache.Hadoop.Yarn.Util.Records.NewRecord <GetApplicationsRequest
                                                                                            >();

            if (scope != null)
            {
                request.SetScope(scope);
            }
            request.SetUsers(users);
            request.SetQueues(queues);
            request.SetApplicationTypes(applicationTypes);
            request.SetApplicationTags(applicationTags);
            request.SetApplicationStates(applicationStates);
            if (startRange != null)
            {
                request.SetStartRange(startRange.GetMinimumLong(), startRange.GetMaximumLong());
            }
            if (finishRange != null)
            {
                request.SetFinishRange(finishRange.GetMinimumLong(), finishRange.GetMaximumLong()
                                       );
            }
            if (limit != null)
            {
                request.SetLimit(limit);
            }
            return(request);
        }
Пример #2
0
        public static GetApplicationsRequest NewInstance(ApplicationsRequestScope scope)
        {
            GetApplicationsRequest request = Org.Apache.Hadoop.Yarn.Util.Records.NewRecord <GetApplicationsRequest
                                                                                            >();

            request.SetScope(scope);
            return(request);
        }
Пример #3
0
        public static GetApplicationsRequest NewInstance(EnumSet <YarnApplicationState> applicationStates
                                                         )
        {
            GetApplicationsRequest request = Org.Apache.Hadoop.Yarn.Util.Records.NewRecord <GetApplicationsRequest
                                                                                            >();

            request.SetApplicationStates(applicationStates);
            return(request);
        }
Пример #4
0
        public static GetApplicationsRequest NewInstance(ICollection <string> applicationTypes
                                                         )
        {
            GetApplicationsRequest request = Org.Apache.Hadoop.Yarn.Util.Records.NewRecord <GetApplicationsRequest
                                                                                            >();

            request.SetApplicationTypes(applicationTypes);
            return(request);
        }
Пример #5
0
        public static GetApplicationsRequest NewInstance()
        {
            GetApplicationsRequest request = Records.NewRecord <GetApplicationsRequest>();

            return(request);
        }