Evaluable<TargetApplications>TargetApplicationsNamespace.All, TargetApplicationsNamespace.AppID, TargetApplicationsNamespace.AppTag, TargetApplicationsNamespace.NotSelf, TargetApplicationsNamespace.Selfpublic abstract class TargetApplicationsNamespace extends java.lang.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 | Description |
|---|---|---|
static class |
TargetApplicationsNamespace.All |
Namespace to all applications in the cluster.
|
static class |
TargetApplicationsNamespace.AppID |
Namespace defined by a certain application ID.
|
static class |
TargetApplicationsNamespace.AppTag |
Namespace to applications that attached with a certain application tag.
|
static class |
TargetApplicationsNamespace.NotSelf |
Namespace to all applications except itself.
|
static class |
TargetApplicationsNamespace.Self |
Namespace within application itself.
|
| Modifier and Type | Field | Description |
|---|---|---|
static java.lang.String |
NAMESPACE_DELIMITER |
| Constructor | Description |
|---|---|
TargetApplicationsNamespace(org.apache.hadoop.yarn.api.records.AllocationTagNamespaceType allocationTagNamespaceType) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
evaluate(TargetApplications target) |
Evaluate the namespace against given target applications
if it is necessary.
|
java.util.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(java.lang.String namespaceStr) |
Parse namespace from a string.
|
protected void |
setScopeIfNotNull(java.util.Set<org.apache.hadoop.yarn.api.records.ApplicationId> appIds) |
|
java.lang.String |
toString() |
public static final java.lang.String NAMESPACE_DELIMITER
public TargetApplicationsNamespace(org.apache.hadoop.yarn.api.records.AllocationTagNamespaceType allocationTagNamespaceType)
protected void setScopeIfNotNull(java.util.Set<org.apache.hadoop.yarn.api.records.ApplicationId> appIds)
public org.apache.hadoop.yarn.api.records.AllocationTagNamespaceType getNamespaceType()
public java.util.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.InvalidAllocationTagsQueryException - if given string is not in valid format.public java.lang.String toString()
toString in class java.lang.Objectpublic static TargetApplicationsNamespace parse(java.lang.String namespaceStr) throws InvalidAllocationTagsQueryException
AllocationTagNamespaceType.namespaceStr - namespace string.TargetApplicationsNamespace.InvalidAllocationTagsQueryException - if given string is not in valid formatCopyright © 2008–2025 Apache Software Foundation. All rights reserved.