@NotThreadSafe public final class MutableInodeDirectory extends MutableInode<MutableInodeDirectory> implements InodeDirectoryView
mAcl, mCreationTimeMs, mDirectory, mId, mTtl, mTtlActionasDirectory, 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, toProtoBuilder, toStringHelper, updateFromEntry, updateMaskclone, finalize, getClass, notify, notifyAll, wait, wait, waitcheckPermission, compareTo, getACL, getCreationTimeMs, getGroup, getId, getLastAccessTimeMs, getLastModificationTimeMs, getMediumTypes, getMode, getName, getOwner, getParentId, getPermission, getPersistenceState, getTtl, getTtlAction, getUfsFingerprint, getXAttr, isDeleted, isDirectory, isFile, isPersisted, isPinnedprotected MutableInodeDirectory getThis()
getThis in class MutableInode<MutableInodeDirectory>this so that the abstract class can use the fluent builder patternpublic boolean isMountPoint()
isMountPoint in interface InodeDirectoryViewpublic boolean isDirectChildrenLoaded()
isDirectChildrenLoaded in interface InodeDirectoryViewpublic long getChildCount()
getChildCount in interface InodeDirectoryViewpublic DefaultAccessControlList getDefaultACL()
getDefaultACL in interface InodeViewpublic 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(java.lang.String path)
generateClientFileInfo in interface InodeViewgenerateClientFileInfo in class MutableInode<MutableInodeDirectory>path - the path of the folder in the filesystemFileInfopublic void updateFromEntry(File.UpdateInodeDirectoryEntry entry)
entry - the entrypublic java.lang.String toString()
toString in class java.lang.Objectpublic static MutableInodeDirectory fromJournalEntry(File.InodeDirectoryEntry entry)
MutableInodeDirectory.entry - the entry to convertMutableInodeDirectory representationpublic static MutableInodeDirectory create(long id, long parentId, java.lang.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 JournalEntryRepresentablepublic Journal.JournalEntry toJournalEntry(java.lang.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 © 2019. All Rights Reserved.