Class TargetApplicationsNamespace.NotSelf

java.lang.Object
org.apache.hadoop.yarn.server.resourcemanager.scheduler.constraint.TargetApplicationsNamespace
org.apache.hadoop.yarn.server.resourcemanager.scheduler.constraint.TargetApplicationsNamespace.NotSelf
All Implemented Interfaces:
Evaluable<TargetApplications>
Enclosing class:
TargetApplicationsNamespace

public static class TargetApplicationsNamespace.NotSelf extends TargetApplicationsNamespace
Namespace to all applications except itself.
  • Constructor Details

    • NotSelf

      public NotSelf()
  • Method Details

    • setApplicationId

      public void setApplicationId(org.apache.hadoop.yarn.api.records.ApplicationId appId)
      The scope of self namespace is to an application itself, the application ID can be delay binding to the namespace.
      Parameters:
      appId - application ID.
    • getApplicationId

      public org.apache.hadoop.yarn.api.records.ApplicationId getApplicationId()
    • evaluate

      public void evaluate(TargetApplications target)
      Description copied from class: TargetApplicationsNamespace
      Evaluate the namespace against given target applications if it is necessary. Only self/not-self/app-label namespace types require this evaluation step, because they are not binding to a specific scope during initiating. So we do lazy binding for them in this method.
      Specified by:
      evaluate in interface Evaluable<TargetApplications>
      Overrides:
      evaluate in class TargetApplicationsNamespace
      Parameters:
      target - a generic type target that impacts this evaluation.