@NotThreadSafe public final class MutableInodeDirectory extends MutableInode<MutableInodeDirectory> implements InodeDirectoryView
mAcl, mCreationTimeMs, mDirectory, mId, mTtl, mTtlAction, NO_MEDIUM
asDirectory, asFile, checkPermission, equals, getACL, getCreationTimeMs, getGroup, getId, getLastAccessTimeMs, getLastModificationTimeMs, getMediumTypes, getMode, getName, getOwner, getParentId, getPermission, getPersistenceState, getTtl, getTtlAction, getUfsFingerprint, getXAttr, hashCode, isDeleted, isDirectory, isFile, isPersisted, isPinned, removeAcl, removeExtendedAcl, replaceAcl, setAcl, setCreationTimeMs, setDeleted, setGroup, setInternalAcl, setLastAccessTimeMs, setLastAccessTimeMs, setLastModificationTimeMs, setLastModificationTimeMs, setMediumTypes, setMode, setName, setOwner, setParentId, setPersistenceState, setPinned, setTtl, setTtlAction, setUfsFingerprint, setXAttr, setXAttr, toProtoBuilder, toStringHelper, updateFromEntry, updateMask
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
checkPermission, compareTo, getACL, getCreationTimeMs, getGroup, getId, getLastAccessTimeMs, getLastModificationTimeMs, getMediumTypes, getMode, getName, getOwner, getParentId, getPermission, getPersistenceState, getTtl, getTtlAction, getUfsFingerprint, getXAttr, isDeleted, isDirectory, isFile, isPersisted, isPinned
protected MutableInodeDirectory getThis()
getThis
in class MutableInode<MutableInodeDirectory>
this
so that the abstract class can use the fluent builder patternpublic boolean isMountPoint()
isMountPoint
in interface InodeDirectoryView
public boolean isDirectChildrenLoaded()
isDirectChildrenLoaded
in interface InodeDirectoryView
public long getChildCount()
getChildCount
in interface InodeDirectoryView
public DefaultAccessControlList getDefaultACL()
getDefaultACL
in interface InodeView
public MutableInodeDirectory setMountPoint(boolean mountPoint)
mountPoint
- the mount point flag value to usepublic MutableInodeDirectory setDirectChildrenLoaded(boolean directChildrenLoaded)
directChildrenLoaded
- whether to load the direct children if they were not loaded beforepublic MutableInodeDirectory setChildCount(long childCount)
childCount
- the child count to setpublic MutableInodeDirectory setDefaultACL(DefaultAccessControlList acl)
setDefaultACL
in class MutableInode<MutableInodeDirectory>
acl
- set the default ACL associated with this inodepublic FileInfo generateClientFileInfo(String path)
generateClientFileInfo
in interface InodeView
generateClientFileInfo
in class MutableInode<MutableInodeDirectory>
path
- the path of the folder in the filesystemFileInfo
public void updateFromEntry(File.UpdateInodeDirectoryEntry entry)
entry
- the entrypublic static MutableInodeDirectory fromJournalEntry(File.InodeDirectoryEntry entry)
MutableInodeDirectory
.entry
- the entry to convertMutableInodeDirectory
representationpublic static MutableInodeDirectory create(long id, long parentId, String name, CreateDirectoryContext context)
MutableInodeDirectory
.id
- id of this inodeparentId
- id of the parent of this inodename
- name of this inodecontext
- context to create this directoryMutableInodeDirectory
representationpublic Journal.JournalEntry toJournalEntry()
toJournalEntry
in interface JournalEntryRepresentable
Journal.JournalEntry
representing this objectpublic Journal.JournalEntry toJournalEntry(String path)
toJournalEntry
in class MutableInode<MutableInodeDirectory>
path
- path of the inodepublic InodeMeta.Inode toProto()
public static MutableInodeDirectory fromProto(InodeMeta.InodeOrBuilder inode)
inode
- a protocol buffer inodeMutableInodeDirectory
representation for the inodeCopyright © 2023. All Rights Reserved.