java.lang.Object
org.apache.hadoop.yarn.server.resourcemanager.scheduler.constraint.AllocationTags

public final class AllocationTags extends Object
Allocation tags under same namespace.
  • Method Details

    • getNamespace

      public TargetApplicationsNamespace getNamespace()
      Returns:
      the namespace of these tags.
    • getCurrentApplicationId

      public org.apache.hadoop.yarn.api.records.ApplicationId getCurrentApplicationId()
    • getTags

      public Set<String> getTags()
      Returns:
      the allocation tags.
    • createSingleAppAllocationTags

      @VisibleForTesting public static AllocationTags createSingleAppAllocationTags(org.apache.hadoop.yarn.api.records.ApplicationId appId, Set<String> tags)
    • createGlobalAllocationTags

      @VisibleForTesting public static AllocationTags createGlobalAllocationTags(Set<String> tags)
    • 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
      Throws:
      InvalidAllocationTagsQueryException