java.io.Closeable, java.lang.AutoCloseable, org.apache.hadoop.service.Service, PlacementConstraintManagerMemoryPlacementConstraintManager@Private @Unstable public abstract class PlacementConstraintManagerService extends org.apache.hadoop.service.AbstractService implements PlacementConstraintManager
PlacementConstraintManager interface.| Modifier and Type | Field | Description |
|---|---|---|
protected static org.slf4j.Logger |
LOG |
| Constructor | Description |
|---|---|
PlacementConstraintManagerService() |
| Modifier and Type | Method | Description |
|---|---|---|
protected java.lang.String |
getValidSourceTag(java.util.Set<java.lang.String> sourceTags) |
This method will return a single allocation tag.
|
boolean |
validateConstraint(java.util.Set<java.lang.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(java.util.Set<java.lang.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(java.util.Set<java.lang.String> sourceTags,
org.apache.hadoop.yarn.api.resource.PlacementConstraint placementConstraint)
PlacementConstraintManagervalidateConstraint in interface PlacementConstraintManagersourceTags - the associated allocation tagsplacementConstraint - the constraintprotected boolean validateSourceTags(java.util.Set<java.lang.String> sourceTags)
sourceTags - the source allocation tagsprotected java.lang.String getValidSourceTag(java.util.Set<java.lang.String> sourceTags)
validateSourceTags(java.util.Set<java.lang.String>).sourceTags - the source allocation tagsCopyright © 2008–2025 Apache Software Foundation. All rights reserved.