@InterfaceAudience.Public @InterfaceStability.Stable public abstract class GetApplicationsRequest extends Object
The request from clients to get a report of Applications
in the cluster from the ResourceManager
.
Constructor and Description |
---|
GetApplicationsRequest() |
Modifier and Type | Method and Description |
---|---|
abstract EnumSet<YarnApplicationState> |
getApplicationStates()
Get the application states to filter applications on
|
abstract Set<String> |
getApplicationTypes()
Get the application types to filter applications on
|
static GetApplicationsRequest |
newInstance() |
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 . |
static GetApplicationsRequest |
newInstance(Set<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(Set<String> applicationTypes,
EnumSet<YarnApplicationState> applicationStates)
The request from clients to get a report of Applications matching the
giving and application types and application types in the cluster from the
ResourceManager . |
abstract void |
setApplicationStates(EnumSet<YarnApplicationState> applicationStates)
Set the application states to filter applications on
|
abstract void |
setApplicationTypes(Set<String> applicationTypes)
Set the application types to filter applications on
|
@InterfaceAudience.Public @InterfaceStability.Stable public static GetApplicationsRequest newInstance()
@InterfaceAudience.Public @InterfaceStability.Stable public static GetApplicationsRequest newInstance(Set<String> applicationTypes)
The request from clients to get a report of Applications matching the
giving application types in the cluster from the
ResourceManager
.
@InterfaceAudience.Public @InterfaceStability.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
.
@InterfaceAudience.Public @InterfaceStability.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 types in the cluster from the
ResourceManager
.
@InterfaceAudience.Public @InterfaceStability.Stable public abstract Set<String> getApplicationTypes()
@InterfaceAudience.Private @InterfaceStability.Unstable public abstract void setApplicationTypes(Set<String> applicationTypes)
applicationTypes
- A Set of Application Types to filter on.
If not defined, match all applications@InterfaceAudience.Public @InterfaceStability.Stable public abstract EnumSet<YarnApplicationState> getApplicationStates()
@InterfaceAudience.Private @InterfaceStability.Unstable public abstract void setApplicationStates(EnumSet<YarnApplicationState> applicationStates)
applicationStates
- A Set of Application states to filter on.
If not defined, match all running applicationsCopyright © 2013 Apache Software Foundation. All rights reserved.