Class FairQueuePlacementUtils
java.lang.Object
org.apache.hadoop.yarn.server.resourcemanager.placement.FairQueuePlacementUtils
Utility methods used by Fair scheduler placement rules.
FairScheduler-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionprotected static StringassureRoot(String queueName) Assure root prefix for a queue name.protected static StringReplace the periods in the username or group name with "_dot_" and remove trailing and leading whitespace.protected static booleanisValidQueueName(String queueName) Validate the queue name: it may not start or end with aDOT.
-
Field Details
-
DOT
- See Also:
-
DOT_REPLACEMENT
- See Also:
-
ROOT_QUEUE
- See Also:
-
-
Method Details
-
cleanName
Replace the periods in the username or group name with "_dot_" and remove trailing and leading whitespace.- Parameters:
name- The name to clean- Returns:
- The name with
DOTreplaced withDOT_REPLACEMENT
-
assureRoot
Assure root prefix for a queue name.- Parameters:
queueName- The queue name to check for the root prefix- Returns:
- The root prefixed queue name
-
isValidQueueName
Validate the queue name: it may not start or end with aDOT.- Parameters:
queueName- The queue name to validate- Returns:
falseif the queue name starts or ends with aDOT,true
-