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); }
public static GetApplicationsRequest NewInstance(EnumSet <YarnApplicationState> applicationStates ) { GetApplicationsRequest request = Org.Apache.Hadoop.Yarn.Util.Records.NewRecord <GetApplicationsRequest >(); request.SetApplicationStates(applicationStates); return(request); }