@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, waitForServiceToStop
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addConstraint, addGlobalConstraint, getConstraint, getConstraints, getGlobalConstraint, getMultilevelConstraint, getNumGlobalConstraints, getNumRegisteredApplications, registerApplication, removeGlobalConstraint, unregisterApplication
public boolean validateConstraint(Set<String> sourceTags, org.apache.hadoop.yarn.api.resource.PlacementConstraint placementConstraint)
PlacementConstraintManager
validateConstraint
in interface PlacementConstraintManager
sourceTags
- 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–2024 Apache Software Foundation. All rights reserved.