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
Namespace to all applications except itself.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.hadoop.yarn.server.resourcemanager.scheduler.constraint.TargetApplicationsNamespace
TargetApplicationsNamespace.All, TargetApplicationsNamespace.AppID, TargetApplicationsNamespace.AppTag, TargetApplicationsNamespace.NotSelf, TargetApplicationsNamespace.Self -
Field Summary
Fields inherited from class org.apache.hadoop.yarn.server.resourcemanager.scheduler.constraint.TargetApplicationsNamespace
NAMESPACE_DELIMITER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidevaluate(TargetApplications target) Evaluate the namespace against given target applications if it is necessary.org.apache.hadoop.yarn.api.records.ApplicationIdvoidsetApplicationId(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.Methods inherited from class org.apache.hadoop.yarn.server.resourcemanager.scheduler.constraint.TargetApplicationsNamespace
getNamespaceScope, getNamespaceType, parse, setScopeIfNotNull, toString
-
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
Description copied from class:TargetApplicationsNamespaceEvaluate 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:
evaluatein interfaceEvaluable<TargetApplications>- Overrides:
evaluatein classTargetApplicationsNamespace- Parameters:
target- a generic type target that impacts this evaluation.
-