Class GetApplicationsRequest
The request from clients to get a report of Applications
in the cluster from the ResourceManager.
- See Also:
-
ApplicationBaseProtocol.getApplications(GetApplicationsRequest)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract EnumSet<YarnApplicationState>Get the application states to filter applications ongetApplicationTags()Get the tags to filter applications.Get the application types to filter applications onabstract org.apache.commons.lang3.Range<Long>getFinishRange()Get the range of finish times to filter applications.abstract longgetLimit()Get the limit on the number applications to returnabstract StringgetName()Get the name to filter applications.getQueues()Get the queues to filter applications onabstract ApplicationsRequestScopegetScope()Get theApplicationsRequestScopeof applications to be filtered.abstract org.apache.commons.lang3.Range<Long>getStartRange()Get the range of start times to filter applications ongetUsers()Get the users to filter applications onstatic GetApplicationsRequeststatic GetApplicationsRequestnewInstance(EnumSet<YarnApplicationState> applicationStates) The request from clients to get a report of Applications matching the giving application states in the cluster from theResourceManager.static GetApplicationsRequestnewInstance(Set<String> applicationTypes) The request from clients to get a report of Applications matching the giving application types in the cluster from theResourceManager.static GetApplicationsRequestnewInstance(Set<String> applicationTypes, EnumSet<YarnApplicationState> applicationStates) The request from clients to get a report of Applications matching the giving and application types and application states in the cluster from theResourceManager.static GetApplicationsRequestThe request from clients to get a report of Applications matching the giving application types in the cluster from theResourceManager.static GetApplicationsRequestnewInstance(ApplicationsRequestScope scope, Set<String> users, Set<String> queues, Set<String> applicationTypes, Set<String> applicationTags, EnumSet<YarnApplicationState> applicationStates, org.apache.commons.lang3.Range<Long> startRange, org.apache.commons.lang3.Range<Long> finishRange, Long limit) The request from clients to get a report of Applications matching the giving application types in the cluster from theResourceManager.abstract voidsetApplicationStates(EnumSet<YarnApplicationState> applicationStates) Set the application states to filter applications onabstract voidSet the application states to filter applications onabstract voidSet the list of tags to filter applications.abstract voidSet the application types to filter applications onabstract voidsetFinishRange(long begin, long end) Set the range of finish times to filter applications.abstract voidsetFinishRange(org.apache.commons.lang3.Range<Long> range) Set the range of finish times to filter applications.abstract voidsetLimit(long limit) Limit the number applications to returnabstract voidsetName(String name) Set the name to filter applications.abstract voidSet the queue to filter applications onabstract voidsetScope(ApplicationsRequestScope scope) Set theApplicationsRequestScopeof applications to filter.abstract voidsetStartRange(long begin, long end) Set the range of start times to filter applications.abstract voidsetStartRange(org.apache.commons.lang3.Range<Long> range) Set the range of start times to filter applications.abstract voidSet the users to filter applications on
-
Constructor Details
-
GetApplicationsRequest
public GetApplicationsRequest()
-
-
Method Details
-
newInstance
-
newInstance
@Public @Stable public static GetApplicationsRequest newInstance(ApplicationsRequestScope scope, Set<String> users, Set<String> queues, Set<String> applicationTypes, Set<String> applicationTags, EnumSet<YarnApplicationState> applicationStates, org.apache.commons.lang3.Range<Long> startRange, org.apache.commons.lang3.Range<Long> finishRange, Long limit) The request from clients to get a report of Applications matching the giving application types in the cluster from the
ResourceManager.- Parameters:
scope-ApplicationsRequestScopeto filter byusers- list of users to filter byqueues- list of scheduler queues to filter byapplicationTypes- types of applicationsapplicationTags- application tags to filter byapplicationStates- application states to filter bystartRange- range of application start times to filter byfinishRange- range of application finish times to filter bylimit- number of applications to limit to- Returns:
GetApplicationsRequestto be used withApplicationBaseProtocol.getApplications(GetApplicationsRequest)- See Also:
-
Setting any of the parameters to null, would just disable that filter
-
newInstance
The request from clients to get a report of Applications matching the giving application types in the cluster from the
ResourceManager.- Parameters:
scope-ApplicationsRequestScopeto filter by- Returns:
- a report of Applications in
GetApplicationsRequest - See Also:
-
ApplicationBaseProtocol.getApplications(GetApplicationsRequest)
-
newInstance
The request from clients to get a report of Applications matching the giving application types in the cluster from the
ResourceManager.- Parameters:
applicationTypes- application types.- Returns:
- a report of Applications in
GetApplicationsRequest - See Also:
-
ApplicationBaseProtocol.getApplications(GetApplicationsRequest)
-
newInstance
@Public @Stable public static GetApplicationsRequest newInstance(EnumSet<YarnApplicationState> applicationStates) The request from clients to get a report of Applications matching the giving application states in the cluster from the
ResourceManager.- Parameters:
applicationStates- application states.- Returns:
- a report of Applications in
GetApplicationsRequest - See Also:
-
ApplicationBaseProtocol.getApplications(GetApplicationsRequest)
-
newInstance
@Public @Stable public static GetApplicationsRequest newInstance(Set<String> applicationTypes, EnumSet<YarnApplicationState> applicationStates) The request from clients to get a report of Applications matching the giving and application types and application states in the cluster from the
ResourceManager.- Parameters:
applicationStates- application states.applicationTypes- application types.- Returns:
- a report of Applications in
GetApplicationsRequest - See Also:
-
ApplicationBaseProtocol.getApplications(GetApplicationsRequest)
-
getApplicationTypes
Get the application types to filter applications on- Returns:
- Set of Application Types to filter on
-
setApplicationTypes
Set the application types to filter applications on- Parameters:
applicationTypes- A Set of Application Types to filter on. If not defined, match all applications
-
getApplicationStates
Get the application states to filter applications on- Returns:
- Set of Application states to filter on
-
setApplicationStates
@Private @Unstable public abstract void setApplicationStates(EnumSet<YarnApplicationState> applicationStates) Set the application states to filter applications on- Parameters:
applicationStates- A Set of Application states to filter on. If not defined, match all running applications
-
setApplicationStates
Set the application states to filter applications on- Parameters:
applicationStates- all lower-case string representation of the application states to filter on
-
getUsers
Get the users to filter applications on- Returns:
- set of users to filter applications on
-
setUsers
Set the users to filter applications on- Parameters:
users- set of users to filter applications on
-
getQueues
Get the queues to filter applications on- Returns:
- set of queues to filter applications on
-
setQueues
Set the queue to filter applications on- Parameters:
queue- user to filter applications on
-
getLimit
@Private @Unstable public abstract long getLimit()Get the limit on the number applications to return- Returns:
- number of applications to limit to
-
setLimit
@Private @Unstable public abstract void setLimit(long limit) Limit the number applications to return- Parameters:
limit- number of applications to limit to
-
getStartRange
Get the range of start times to filter applications on- Returns:
Rangeof start times to filter applications on
-
setStartRange
Set the range of start times to filter applications.- Parameters:
range- range of start times.
-
setStartRange
@Private @Unstable public abstract void setStartRange(long begin, long end) throws IllegalArgumentException Set the range of start times to filter applications.- Parameters:
begin- beginning of the rangeend- end of the range- Throws:
IllegalArgumentException- if an argument is invalid.
-
getFinishRange
Get the range of finish times to filter applications.- Returns:
Rangeof finish times to filter applications on
-
setFinishRange
Set the range of finish times to filter applications.- Parameters:
range- range of finish times.
-
setFinishRange
@Private @Unstable public abstract void setFinishRange(long begin, long end) Set the range of finish times to filter applications.- Parameters:
begin- beginning of the rangeend- end of the range- Throws:
IllegalArgumentException- if an argument is invalid.
-
getApplicationTags
Get the tags to filter applications.- Returns:
- list of tags to filter.
-
setApplicationTags
Set the list of tags to filter applications.- Parameters:
tags- list of tags to filter.
-
getScope
Get theApplicationsRequestScopeof applications to be filtered.- Returns:
ApplicationsRequestScopeof applications to return.
-
setScope
Set theApplicationsRequestScopeof applications to filter.- Parameters:
scope- scope to use for filtering applications
-
getName
Get the name to filter applications.- Returns:
- the name
-
setName
Set the name to filter applications.- Parameters:
name- of the application
-