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