public interface NodeAttributeStore extends Closeable
Modifier and Type | Method and Description |
---|---|
void |
addNodeAttributes(List<org.apache.hadoop.yarn.server.api.protocolrecords.NodeToAttributes> nodeToAttribute)
Add attribute to node.
|
void |
init(org.apache.hadoop.conf.Configuration configuration,
NodeAttributesManager mgr)
Initialize based on configuration and NodeAttributesManager.
|
void |
recover()
Recover store on resourcemanager startup.
|
void |
removeNodeAttributes(List<org.apache.hadoop.yarn.server.api.protocolrecords.NodeToAttributes> nodeToAttribute)
Remove attribute from node.
|
void |
replaceNodeAttributes(List<org.apache.hadoop.yarn.server.api.protocolrecords.NodeToAttributes> nodeToAttribute)
Replace labels on node.
|
void replaceNodeAttributes(List<org.apache.hadoop.yarn.server.api.protocolrecords.NodeToAttributes> nodeToAttribute) throws IOException
nodeToAttribute
- node to attribute list.IOException
void addNodeAttributes(List<org.apache.hadoop.yarn.server.api.protocolrecords.NodeToAttributes> nodeToAttribute) throws IOException
nodeToAttribute
- node to attribute list.IOException
void removeNodeAttributes(List<org.apache.hadoop.yarn.server.api.protocolrecords.NodeToAttributes> nodeToAttribute) throws IOException
nodeToAttribute
- node to attribute list.IOException
void init(org.apache.hadoop.conf.Configuration configuration, NodeAttributesManager mgr) throws Exception
configuration
- configuration instance.mgr
- nodeattributemanager instance.Exception
void recover() throws IOException, org.apache.hadoop.yarn.exceptions.YarnException
IOException
org.apache.hadoop.yarn.exceptions.YarnException
Copyright © 2008–2019 Apache Software Foundation. All rights reserved.