public abstract class TargetApplicationsNamespace extends Object implements Evaluable<TargetApplications>
AllocationTags. Each namespace can be evaluated against
 a target set applications, represented by TargetApplications.
 After evaluation, the namespace is interpreted to be a set of
 applications based on the namespace type.| Modifier and Type | Class and Description | 
|---|---|
| static class  | TargetApplicationsNamespace.AllNamespace to all applications in the cluster. | 
| static class  | TargetApplicationsNamespace.AppIDNamespace defined by a certain application ID. | 
| static class  | TargetApplicationsNamespace.AppTagNamespace to applications that attached with a certain application tag. | 
| static class  | TargetApplicationsNamespace.NotSelfNamespace to all applications except itself. | 
| static class  | TargetApplicationsNamespace.SelfNamespace within application itself. | 
| Modifier and Type | Field and Description | 
|---|---|
| static String | NAMESPACE_DELIMITER | 
| Constructor and Description | 
|---|
| TargetApplicationsNamespace(org.apache.hadoop.yarn.api.records.AllocationTagNamespaceType allocationTagNamespaceType) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | evaluate(TargetApplications target)Evaluate the namespace against given target applications
 if it is necessary. | 
| Set<org.apache.hadoop.yarn.api.records.ApplicationId> | getNamespaceScope()Get the scope of the namespace, in form of a set of applications. | 
| org.apache.hadoop.yarn.api.records.AllocationTagNamespaceType | getNamespaceType()Get the type of the namespace. | 
| static TargetApplicationsNamespace | parse(String namespaceStr)Parse namespace from a string. | 
| protected void | setScopeIfNotNull(Set<org.apache.hadoop.yarn.api.records.ApplicationId> appIds) | 
| String | toString() | 
public static final String NAMESPACE_DELIMITER
public TargetApplicationsNamespace(org.apache.hadoop.yarn.api.records.AllocationTagNamespaceType allocationTagNamespaceType)
protected void setScopeIfNotNull(Set<org.apache.hadoop.yarn.api.records.ApplicationId> appIds)
public org.apache.hadoop.yarn.api.records.AllocationTagNamespaceType getNamespaceType()
public Set<org.apache.hadoop.yarn.api.records.ApplicationId> getNamespaceScope()
public void evaluate(TargetApplications target) throws InvalidAllocationTagsQueryException
evaluate in interface Evaluable<TargetApplications>target - a generic type target that impacts this evaluation.InvalidAllocationTagsQueryExceptionpublic static TargetApplicationsNamespace parse(String namespaceStr) throws InvalidAllocationTagsQueryException
AllocationTagNamespaceType.namespaceStr - namespace string.TargetApplicationsNamespace.InvalidAllocationTagsQueryException - if given string is not in valid formatCopyright © 2008–2023 Apache Software Foundation. All rights reserved.