@InterfaceAudience.Private public abstract class INodeWithAdditionalFields extends INode implements LightWeightGSet.LinkedElement
INode
with additional fields including id, name, permission,
access time and modification time.INode.BlocksMapUpdateInfo
INodeAttributes.SnapshotCopy
Modifier and Type | Method and Description |
---|---|
short |
getFsPermissionShort() |
long |
getId()
Get inode id
|
byte[] |
getLocalNameBytes() |
LightWeightGSet.LinkedElement |
getNext()
Get the next element.
|
long |
getPermissionLong() |
void |
setAccessTime(long accessTime)
Set last access time of inode.
|
void |
setLocalName(byte[] name)
Set local file name
|
void |
setModificationTime(long modificationTime)
Set the last modification time of inode.
|
void |
setNext(LightWeightGSet.LinkedElement next)
Set the next element.
|
INode |
updateModificationTime(long mtime,
Snapshot latest,
INodeMap inodeMap)
Update modification time if it is larger than the current value.
|
addSpaceConsumed, asDirectory, asFile, asReference, asSymlink, cleanSubtree, clear, compareTo, computeContentSummary, computeContentSummary, computeQuotaUsage, computeQuotaUsage, computeQuotaUsage, destroyAndCollectBlocks, dumpTreeRecursively, dumpTreeRecursively, dumpTreeRecursively, equals, getAccessTime, getDsQuota, getFsPermission, getFullPathName, getGroupName, getKey, getLocalName, getModificationTime, getNsQuota, getObjectString, getParent, getParentReference, getParentString, getSnapshotINode, getUserName, hashCode, isAncestorDirectory, isDirectory, isFile, isInLatestSnapshot, isQuotaSet, isReference, isSymlink, setAccessTime, setModificationTime, setParent, setParentReference, shouldRecordInSrcSnapshot, toDetailString, toString
public void setNext(LightWeightGSet.LinkedElement next)
LightWeightGSet.LinkedElement
setNext
in interface LightWeightGSet.LinkedElement
public LightWeightGSet.LinkedElement getNext()
LightWeightGSet.LinkedElement
getNext
in interface LightWeightGSet.LinkedElement
public final byte[] getLocalNameBytes()
getLocalNameBytes
in interface INodeAttributes
public final void setLocalName(byte[] name)
INode
setLocalName
in class INode
public final short getFsPermissionShort()
getFsPermissionShort
in interface INodeAttributes
public long getPermissionLong()
getPermissionLong
in interface INodeAttributes
public final INode updateModificationTime(long mtime, Snapshot latest, INodeMap inodeMap) throws QuotaExceededException
updateModificationTime
in class INode
QuotaExceededException
public final void setModificationTime(long modificationTime)
INode
setModificationTime
in class INode
public final void setAccessTime(long accessTime)
setAccessTime
in class INode
Copyright © 2013 Apache Software Foundation. All rights reserved.