@InterfaceAudience.Private @InterfaceStability.Unstable public abstract class PlacementConstraintManagerService extends org.apache.hadoop.service.AbstractService implements PlacementConstraintManager
PlacementConstraintManager interface.| Modifier and Type | Field and Description | 
|---|---|
| protected static org.slf4j.Logger | LOG | 
| Constructor and Description | 
|---|
| PlacementConstraintManagerService() | 
| Modifier and Type | Method and Description | 
|---|---|
| protected String | getValidSourceTag(Set<String> sourceTags)This method will return a single allocation tag. | 
| boolean | validateConstraint(Set<String> sourceTags,
                  org.apache.hadoop.yarn.api.resource.PlacementConstraint placementConstraint)Validate a placement constraint and the set of allocation tags that will
 enable it. | 
| protected boolean | validateSourceTags(Set<String> sourceTags)Validates whether the allocation tags that will enable a constraint have
 the expected format. | 
close, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, noteFailure, putBlocker, registerGlobalListener, registerServiceListener, removeBlocker, serviceInit, serviceStart, serviceStop, setConfig, start, stop, toString, unregisterGlobalListener, unregisterServiceListener, waitForServiceToStopclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddConstraint, addGlobalConstraint, getConstraint, getConstraints, getGlobalConstraint, getMultilevelConstraint, getNumGlobalConstraints, getNumRegisteredApplications, registerApplication, removeGlobalConstraint, unregisterApplicationpublic boolean validateConstraint(Set<String> sourceTags, org.apache.hadoop.yarn.api.resource.PlacementConstraint placementConstraint)
PlacementConstraintManagervalidateConstraint in interface PlacementConstraintManagersourceTags - the associated allocation tagsplacementConstraint - the constraintprotected boolean validateSourceTags(Set<String> sourceTags)
sourceTags - the source allocation tagsprotected String getValidSourceTag(Set<String> sourceTags)
validateSourceTags(java.util.Set<java.lang.String>).sourceTags - the source allocation tagsCopyright © 2008–2023 Apache Software Foundation. All rights reserved.