Class AllocationTags
java.lang.Object
org.apache.hadoop.yarn.server.resourcemanager.scheduler.constraint.AllocationTags
Allocation tags under same namespace.
-
Method Summary
Modifier and TypeMethodDescriptionstatic AllocationTagscreateAllocationTags(org.apache.hadoop.yarn.api.records.ApplicationId currentApplicationId, String namespaceString, Set<String> tags) static AllocationTagscreateGlobalAllocationTags(Set<String> tags) static AllocationTagscreateOtherAppAllocationTags(org.apache.hadoop.yarn.api.records.ApplicationId currentApp, Set<String> tags) static AllocationTagscreateSingleAppAllocationTags(org.apache.hadoop.yarn.api.records.ApplicationId appId, Set<String> tags) org.apache.hadoop.yarn.api.records.ApplicationIdgetTags()
-
Method Details
-
getNamespace
- Returns:
- the namespace of these tags.
-
getCurrentApplicationId
public org.apache.hadoop.yarn.api.records.ApplicationId getCurrentApplicationId() -
getTags
- Returns:
- the allocation tags.
-
createSingleAppAllocationTags
@VisibleForTesting public static AllocationTags createSingleAppAllocationTags(org.apache.hadoop.yarn.api.records.ApplicationId appId, Set<String> tags) -
createGlobalAllocationTags
-
createOtherAppAllocationTags
@VisibleForTesting public static AllocationTags createOtherAppAllocationTags(org.apache.hadoop.yarn.api.records.ApplicationId currentApp, Set<String> tags) -
createAllocationTags
public static AllocationTags createAllocationTags(org.apache.hadoop.yarn.api.records.ApplicationId currentApplicationId, String namespaceString, Set<String> tags) throws InvalidAllocationTagsQueryException
-