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.IOExceptionvoid addNodeAttributes(List<org.apache.hadoop.yarn.server.api.protocolrecords.NodeToAttributes> nodeToAttribute) throws IOException
nodeToAttribute - node to attribute list.IOExceptionvoid removeNodeAttributes(List<org.apache.hadoop.yarn.server.api.protocolrecords.NodeToAttributes> nodeToAttribute) throws IOException
nodeToAttribute - node to attribute list.IOExceptionvoid init(org.apache.hadoop.conf.Configuration configuration,
          NodeAttributesManager mgr)
   throws Exception
configuration - configuration instance.mgr - nodeattributemanager instance.Exceptionvoid recover()
      throws IOException,
             org.apache.hadoop.yarn.exceptions.YarnException
IOExceptionorg.apache.hadoop.yarn.exceptions.YarnExceptionCopyright © 2008–2023 Apache Software Foundation. All rights reserved.