@InterfaceAudience.Private @InterfaceStability.Unstable public abstract class FSEditLogOp extends Object
Modifier and Type | Class and Description |
---|---|
static class |
FSEditLogOp.OpInstanceCache |
static class |
FSEditLogOp.Reader
Class for reading editlog ops from a stream
|
static class |
FSEditLogOp.Writer
Class for writing editlog ops
|
Modifier and Type | Field and Description |
---|---|
FSEditLogOpCodes |
opCode |
public final FSEditLogOpCodes opCode
public long getTransactionId()
public String getTransactionIdStr()
public boolean hasTransactionId()
public void setTransactionId(long txid)
public boolean hasRpcIds()
public byte[] getClientId()
hasRpcIds()
public void setRpcClientId(byte[] clientId)
public int getCallId()
hasRpcIds()
public void setRpcCallId(int callId)
public abstract void writeFields(DataOutputStream out) throws IOException
IOException
public void outputToXml(ContentHandler contentHandler) throws SAXException
SAXException
protected abstract void toXml(ContentHandler contentHandler) throws SAXException
SAXException
public void decodeXml(XMLUtils.Stanza st) throws XMLUtils.InvalidXmlException
XMLUtils.InvalidXmlException
public static void blockToXml(ContentHandler contentHandler, Block block) throws SAXException
SAXException
public static Block blockFromXml(XMLUtils.Stanza st) throws XMLUtils.InvalidXmlException
XMLUtils.InvalidXmlException
public static void delegationTokenToXml(ContentHandler contentHandler, DelegationTokenIdentifier token) throws SAXException
SAXException
public static DelegationTokenIdentifier delegationTokenFromXml(XMLUtils.Stanza st) throws XMLUtils.InvalidXmlException
XMLUtils.InvalidXmlException
public static void delegationKeyToXml(ContentHandler contentHandler, DelegationKey key) throws SAXException
SAXException
public static DelegationKey delegationKeyFromXml(XMLUtils.Stanza st) throws XMLUtils.InvalidXmlException
XMLUtils.InvalidXmlException
public static void permissionStatusToXml(ContentHandler contentHandler, PermissionStatus perm) throws SAXException
SAXException
public static PermissionStatus permissionStatusFromXml(XMLUtils.Stanza st) throws XMLUtils.InvalidXmlException
XMLUtils.InvalidXmlException
Copyright © 2013 Apache Software Foundation. All rights reserved.