Class NodeAttributeMirrorOp
java.lang.Object
org.apache.hadoop.yarn.nodelabels.store.op.FSNodeStoreLogOp<NodeAttributesManager>
org.apache.hadoop.yarn.nodelabels.store.op.NodeAttributeMirrorOp
- All Implemented Interfaces:
StoreOp<OutputStream,InputStream, NodeAttributesManager>
File System Node Attribute Mirror read and write operation.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintvoidrecover(InputStream is, NodeAttributesManager mgr) Read and populate StoreOp.voidwrite(OutputStream os, NodeAttributesManager mgr) Write operation to persistent storage.Methods inherited from class org.apache.hadoop.yarn.nodelabels.store.op.FSNodeStoreLogOp
getNodeToAttributesMap
-
Constructor Details
-
NodeAttributeMirrorOp
public NodeAttributeMirrorOp()
-
-
Method Details
-
write
Description copied from interface:StoreOpWrite operation to persistent storage.- Parameters:
os- write to be done tomgr- manager used by store- Throws:
IOException- io error occur.
-
recover
Description copied from interface:StoreOpRead and populate StoreOp.- Parameters:
is- read to be done frommgr- manager used by store- Throws:
IOException- io error occur.
-
getOpCode
public int getOpCode()- Specified by:
getOpCodein classFSNodeStoreLogOp<NodeAttributesManager>
-