@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
IOExceptionpublic void outputToXml(ContentHandler contentHandler) throws SAXException
SAXExceptionprotected abstract void toXml(ContentHandler contentHandler) throws SAXException
SAXExceptionpublic void decodeXml(XMLUtils.Stanza st) throws XMLUtils.InvalidXmlException
XMLUtils.InvalidXmlExceptionpublic static void blockToXml(ContentHandler contentHandler, Block block) throws SAXException
SAXExceptionpublic static Block blockFromXml(XMLUtils.Stanza st) throws XMLUtils.InvalidXmlException
XMLUtils.InvalidXmlExceptionpublic static void delegationTokenToXml(ContentHandler contentHandler, DelegationTokenIdentifier token) throws SAXException
SAXExceptionpublic static DelegationTokenIdentifier delegationTokenFromXml(XMLUtils.Stanza st) throws XMLUtils.InvalidXmlException
XMLUtils.InvalidXmlExceptionpublic static void delegationKeyToXml(ContentHandler contentHandler, DelegationKey key) throws SAXException
SAXExceptionpublic static DelegationKey delegationKeyFromXml(XMLUtils.Stanza st) throws XMLUtils.InvalidXmlException
XMLUtils.InvalidXmlExceptionpublic static void permissionStatusToXml(ContentHandler contentHandler, PermissionStatus perm) throws SAXException
SAXExceptionpublic static PermissionStatus permissionStatusFromXml(XMLUtils.Stanza st) throws XMLUtils.InvalidXmlException
XMLUtils.InvalidXmlExceptionCopyright © 2013 Apache Software Foundation. All rights reserved.