public class RemoveClusterLabelOp extends FSNodeStoreLogOp<CommonNodeLabelsManager>
Modifier and Type | Field and Description |
---|---|
static int |
OPCODE |
Constructor and Description |
---|
RemoveClusterLabelOp() |
Modifier and Type | Method and Description |
---|---|
Collection<String> |
getLabels() |
int |
getOpCode() |
void |
recover(InputStream is,
CommonNodeLabelsManager mgr)
Read and populate StoreOp.
|
RemoveClusterLabelOp |
setLabels(Collection<String> nodeLabels) |
void |
write(OutputStream os,
CommonNodeLabelsManager mgr)
Write operation to persistent storage.
|
getNodeToAttributesMap
public static final int OPCODE
public void write(OutputStream os, CommonNodeLabelsManager mgr) throws IOException
StoreOp
os
- write to be done tomgr
- manager used by storeIOException
public void recover(InputStream is, CommonNodeLabelsManager mgr) throws IOException
StoreOp
is
- read to be done frommgr
- manager used by storeIOException
public RemoveClusterLabelOp setLabels(Collection<String> nodeLabels)
public Collection<String> getLabels()
public int getOpCode()
getOpCode
in class FSNodeStoreLogOp<CommonNodeLabelsManager>
Copyright © 2008–2022 Apache Software Foundation. All rights reserved.