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
IOException
public static void checkAndThrowAttributeValue(String value) throws IOException
IOException
public static void checkAndThrowAttributePrefix(String prefix) throws IOException
IOException
public static void validateNodeAttributes(Set<org.apache.hadoop.yarn.api.records.NodeAttribute> attributeSet) throws IOException
attributeSet
- IOException
public 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.