public final class NodeLabelUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
checkAndThrowAttributePrefix(String prefix) |
static void |
checkAndThrowAttributeValue(String value) |
static void |
checkAndThrowLabelName(String label) |
static Set<org.apache.hadoop.yarn.api.records.NodeAttribute> |
filterAttributesByPrefix(Set<org.apache.hadoop.yarn.api.records.NodeAttribute> attributeSet,
String prefix)
Filter a set of node attributes by a given prefix.
|
static void |
validateNodeAttributes(Set<org.apache.hadoop.yarn.api.records.NodeAttribute> attributeSet)
Validate if a given set of attributes are valid.
|
public static void checkAndThrowLabelName(String label) throws IOException
IOExceptionpublic static void checkAndThrowAttributeValue(String value) throws IOException
IOExceptionpublic static void checkAndThrowAttributePrefix(String prefix) throws IOException
IOExceptionpublic static void validateNodeAttributes(Set<org.apache.hadoop.yarn.api.records.NodeAttribute> attributeSet) throws IOException
attributeSet - IOExceptionpublic static Set<org.apache.hadoop.yarn.api.records.NodeAttribute> filterAttributesByPrefix(Set<org.apache.hadoop.yarn.api.records.NodeAttribute> attributeSet, String prefix)
attributeSet - node attribute setprefix - node attribute prefixCopyright © 2008–2019 Apache Software Foundation. All rights reserved.