public class AddNodeToAttributeLogOp extends FSNodeStoreLogOp<NodeAttributesManager>
| Modifier and Type | Field and Description | 
|---|---|
| static int | OPCODE | 
| Constructor and Description | 
|---|
| AddNodeToAttributeLogOp() | 
| Modifier and Type | Method and Description | 
|---|---|
| int | getOpCode() | 
| void | recover(InputStream is,
       NodeAttributesManager mgr)Read and populate StoreOp. | 
| AddNodeToAttributeLogOp | setAttributes(List<org.apache.hadoop.yarn.server.api.protocolrecords.NodeToAttributes> attributesList) | 
| void | write(OutputStream os,
     NodeAttributesManager mgr)Write operation to persistent storage. | 
getNodeToAttributesMappublic static final int OPCODE
public void write(OutputStream os, NodeAttributesManager mgr) throws IOException
StoreOpos - write to be done tomgr - manager used by storeIOExceptionpublic void recover(InputStream is, NodeAttributesManager mgr) throws IOException
StoreOpis - read to be done frommgr - manager used by storeIOExceptionpublic AddNodeToAttributeLogOp setAttributes(List<org.apache.hadoop.yarn.server.api.protocolrecords.NodeToAttributes> attributesList)
public int getOpCode()
getOpCode in class FSNodeStoreLogOp<NodeAttributesManager>Copyright © 2008–2023 Apache Software Foundation. All rights reserved.