@Public
@Stable
public abstract class GetApplicationsRequest
extends java.lang.Object
The request from clients to get a report of Applications
in the cluster from the ResourceManager.
| Constructor | Description |
|---|---|
GetApplicationsRequest() |
| Modifier and Type | Method | Description |
|---|---|---|
abstract java.util.EnumSet<YarnApplicationState> |
getApplicationStates() |
Get the application states to filter applications on
|
abstract java.util.Set<java.lang.String> |
getApplicationTags() |
Get the tags to filter applications.
|
abstract java.util.Set<java.lang.String> |
getApplicationTypes() |
Get the application types to filter applications on
|
abstract org.apache.commons.lang3.Range<java.lang.Long> |
getFinishRange() |
Get the range of finish times to filter applications.
|
abstract long |
getLimit() |
Get the limit on the number applications to return
|
abstract java.lang.String |
getName() |
Get the name to filter applications.
|
abstract java.util.Set<java.lang.String> |
getQueues() |
Get the queues to filter applications on
|
abstract ApplicationsRequestScope |
getScope() |
Get the
ApplicationsRequestScope of applications to be filtered. |
abstract org.apache.commons.lang3.Range<java.lang.Long> |
getStartRange() |
Get the range of start times to filter applications on
|
abstract java.util.Set<java.lang.String> |
getUsers() |
Get the users to filter applications on
|
static GetApplicationsRequest |
newInstance() |
|
static GetApplicationsRequest |
newInstance(java.util.EnumSet<YarnApplicationState> applicationStates) |
The request from clients to get a report of Applications matching the
giving application states in the cluster from the
ResourceManager. |
static GetApplicationsRequest |
newInstance(java.util.Set<java.lang.String> applicationTypes) |
The request from clients to get a report of Applications matching the
giving application types in the cluster from the
ResourceManager. |
static GetApplicationsRequest |
newInstance(java.util.Set<java.lang.String> applicationTypes,
java.util.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. |
static GetApplicationsRequest |
newInstance(ApplicationsRequestScope scope) |
The request from clients to get a report of Applications matching the
giving application types in the cluster from the
ResourceManager. |
static GetApplicationsRequest |
newInstance(ApplicationsRequestScope scope,
java.util.Set<java.lang.String> users,
java.util.Set<java.lang.String> queues,
java.util.Set<java.lang.String> applicationTypes,
java.util.Set<java.lang.String> applicationTags,
java.util.EnumSet<YarnApplicationState> applicationStates,
org.apache.commons.lang3.Range<java.lang.Long> startRange,
org.apache.commons.lang3.Range<java.lang.Long> finishRange,
java.lang.Long limit) |
The request from clients to get a report of Applications matching the
giving application types in the cluster from the
ResourceManager. |
abstract void |
setApplicationStates(java.util.EnumSet<YarnApplicationState> applicationStates) |
Set the application states to filter applications on
|
abstract void |
setApplicationStates(java.util.Set<java.lang.String> applicationStates) |
Set the application states to filter applications on
|
abstract void |
setApplicationTags(java.util.Set<java.lang.String> tags) |
Set the list of tags to filter applications.
|
abstract void |
setApplicationTypes(java.util.Set<java.lang.String> applicationTypes) |
Set the application types to filter applications on
|
abstract void |
setFinishRange(long begin,
long end) |
Set the range of finish times to filter applications.
|
abstract void |
setFinishRange(org.apache.commons.lang3.Range<java.lang.Long> range) |
Set the range of finish times to filter applications.
|
abstract void |
setLimit(long limit) |
Limit the number applications to return
|
abstract void |
setName(java.lang.String name) |
Set the name to filter applications.
|
abstract void |
setQueues(java.util.Set<java.lang.String> queue) |
Set the queue to filter applications on
|
abstract void |
setScope(ApplicationsRequestScope scope) |
Set the
ApplicationsRequestScope of applications to filter. |
abstract void |
setStartRange(long begin,
long end) |
Set the range of start times to filter applications.
|
abstract void |
setStartRange(org.apache.commons.lang3.Range<java.lang.Long> range) |
Set the range of start times to filter applications.
|
abstract void |
setUsers(java.util.Set<java.lang.String> users) |
Set the users to filter applications on
|
@Public @Stable public static GetApplicationsRequest newInstance()
@Public @Stable public static GetApplicationsRequest newInstance(ApplicationsRequestScope scope, java.util.Set<java.lang.String> users, java.util.Set<java.lang.String> queues, java.util.Set<java.lang.String> applicationTypes, java.util.Set<java.lang.String> applicationTags, java.util.EnumSet<YarnApplicationState> applicationStates, org.apache.commons.lang3.Range<java.lang.Long> startRange, org.apache.commons.lang3.Range<java.lang.Long> finishRange, java.lang.Long limit)
The request from clients to get a report of Applications matching the
giving application types in the cluster from the
ResourceManager.
scope - ApplicationsRequestScope to 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 toGetApplicationsRequest to be used with
ApplicationBaseProtocol.getApplications(GetApplicationsRequest)Setting any of the parameters to null, would just disable that
filter@Public @Stable public static GetApplicationsRequest newInstance(ApplicationsRequestScope scope)
The request from clients to get a report of Applications matching the
giving application types in the cluster from the
ResourceManager.
scope - ApplicationsRequestScope to filter byGetApplicationsRequestApplicationBaseProtocol.getApplications(GetApplicationsRequest)@Public @Stable public static GetApplicationsRequest newInstance(java.util.Set<java.lang.String> applicationTypes)
The request from clients to get a report of Applications matching the
giving application types in the cluster from the
ResourceManager.
applicationTypes - application types.GetApplicationsRequestApplicationBaseProtocol.getApplications(GetApplicationsRequest)@Public @Stable public static GetApplicationsRequest newInstance(java.util.EnumSet<YarnApplicationState> applicationStates)
The request from clients to get a report of Applications matching the
giving application states in the cluster from the
ResourceManager.
applicationStates - application states.GetApplicationsRequestApplicationBaseProtocol.getApplications(GetApplicationsRequest)@Public @Stable public static GetApplicationsRequest newInstance(java.util.Set<java.lang.String> applicationTypes, java.util.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.
applicationStates - application states.applicationTypes - application types.GetApplicationsRequestApplicationBaseProtocol.getApplications(GetApplicationsRequest)@Public @Stable public abstract java.util.Set<java.lang.String> getApplicationTypes()
@Private @Unstable public abstract void setApplicationTypes(java.util.Set<java.lang.String> applicationTypes)
applicationTypes - A Set of Application Types to filter on.
If not defined, match all applications@Public @Stable public abstract java.util.EnumSet<YarnApplicationState> getApplicationStates()
@Private @Unstable public abstract void setApplicationStates(java.util.EnumSet<YarnApplicationState> applicationStates)
applicationStates - A Set of Application states to filter on.
If not defined, match all running applications@Private @Unstable public abstract void setApplicationStates(java.util.Set<java.lang.String> applicationStates)
applicationStates - all lower-case string representation of the
application states to filter on@Private @Unstable public abstract java.util.Set<java.lang.String> getUsers()
@Private @Unstable public abstract void setUsers(java.util.Set<java.lang.String> users)
users - set of users to filter applications on@Private @Unstable public abstract java.util.Set<java.lang.String> getQueues()
@Private @Unstable public abstract void setQueues(java.util.Set<java.lang.String> queue)
queue - user to filter applications on@Private @Unstable public abstract long getLimit()
@Private @Unstable public abstract void setLimit(long limit)
limit - number of applications to limit to@Private @Unstable public abstract org.apache.commons.lang3.Range<java.lang.Long> getStartRange()
Range of start times to filter applications on@Private @Unstable public abstract void setStartRange(org.apache.commons.lang3.Range<java.lang.Long> range)
range - range of start times.@Private
@Unstable
public abstract void setStartRange(long begin,
long end)
throws java.lang.IllegalArgumentException
begin - beginning of the rangeend - end of the rangejava.lang.IllegalArgumentException - if an argument is invalid.@Private @Unstable public abstract org.apache.commons.lang3.Range<java.lang.Long> getFinishRange()
Range of finish times to filter applications on@Private @Unstable public abstract void setFinishRange(org.apache.commons.lang3.Range<java.lang.Long> range)
range - range of finish times.@Private
@Unstable
public abstract void setFinishRange(long begin,
long end)
begin - beginning of the rangeend - end of the rangejava.lang.IllegalArgumentException - if an argument is invalid.@Private @Unstable public abstract java.util.Set<java.lang.String> getApplicationTags()
@Private @Unstable public abstract void setApplicationTags(java.util.Set<java.lang.String> tags)
tags - list of tags to filter.@Private @Unstable public abstract ApplicationsRequestScope getScope()
ApplicationsRequestScope of applications to be filtered.ApplicationsRequestScope of applications to return.@Private @Unstable public abstract void setScope(ApplicationsRequestScope scope)
ApplicationsRequestScope of applications to filter.scope - scope to use for filtering applications@Private @Unstable public abstract java.lang.String getName()
@Private @Unstable public abstract void setName(java.lang.String name)
name - of the applicationCopyright © 2008–2025 Apache Software Foundation. All rights reserved.