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 resource manager 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
- io error occur.void addNodeAttributes(List<org.apache.hadoop.yarn.server.api.protocolrecords.NodeToAttributes> nodeToAttribute) throws IOException
nodeToAttribute
- node to attribute list.IOException
- io error occur.void removeNodeAttributes(List<org.apache.hadoop.yarn.server.api.protocolrecords.NodeToAttributes> nodeToAttribute) throws IOException
nodeToAttribute
- node to attribute list.IOException
- io error occur.void init(org.apache.hadoop.conf.Configuration configuration, NodeAttributesManager mgr) throws Exception
configuration
- configuration instance.mgr
- node attribute manager instance.Exception
- exception occurs.void recover() throws IOException, org.apache.hadoop.yarn.exceptions.YarnException
IOException
- io error occur.org.apache.hadoop.yarn.exceptions.YarnException
- exceptions from yarn servers.Copyright © 2008–2024 Apache Software Foundation. All rights reserved.