Class Nfs3File
- All Implemented Interfaces:
NfsFile<Nfs3,Nfs3File>, Comparable<Nfs3File>
Nfs3 specialization of NfsFile. Almost all functionality is implemented in the parent class.
-
Field Summary
Fields inherited from interface NfsFile
groupExecuteModeBit, groupReadModeBit, groupWriteModeBit, othersExecuteModeBit, othersReadModeBit, othersWriteModeBit, ownerExecuteModeBit, ownerReadModeBit, ownerWriteModeBit, saveSwappedTextModeBit, separator, separatorChar, setGroupIdOnExecuteModeBit, setUserIdOnExecuteModeBit -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnewChildFile(String childName) Creates a new file with the current file as its parent directory.protected Nfs3FilenewFile(String path, LinkTracker<Nfs3, Nfs3File> linkTracker) This creates a new file with arbitrary path, using the given LinkTracker.Methods inherited from class NfsFileBase
access, canDelete, canExecute, canExtend, canLookup, canModify, canRead, commit, compareTo, create, createNewFile, delete, equals, exists, followLinks, followLinks, fsinfo, fsstat, getAbsolutePath, getAccess, getattr, getAttributes, getChildFile, getChildFiles, getFileHandle, getFreeSpace, getMode, getName, getNfs, getParent, getParentFile, getPath, getTotalSpace, getUsableSpace, hashCode, isDirectory, isFile, isRootFile, lastModified, length, lengthEx, link, list, list, listFiles, listFiles, listFiles, lookup, makeAccessRequest, makeChildPath, makeCommitRequest, makeCreateRequest, makeFsInfoRequest, makeFsStatRequest, makeGetAttrRequest, makeLinkRequest, makeLookupRequest, makeMkdirRequest, makeMknodRequest, makeName, makeParentPath, makePathconfRequest, makeReaddirplusRequest, makeReaddirRequest, makeReadlinkRequest, makeReadRequest, makeRemoveRequest, makeRenameRequest, makeRmdirRequest, makeSetAttrRequest, makeSymlinkRequest, makeWriteRequest, mkdir, mkdir, mkdirs, mknod, newFile, pathconf, read, readdir, readdir, readdirplus, readdirplus, readlink, remove, rename, renameTo, rmdir, setattr, setAttributes, setFileHandle, setLastModified, setMode, setPathFields, symlink, toString, write, write
-
Constructor Details
-
Nfs3File
The basic constructor.- Parameters:
nfs- The supporting NFS client.path- The full path of the file, starting with the mount point.- Throws:
IOException
-
Nfs3File
The basic constructor plus link tracking.- Parameters:
nfs- The supporting NFS client.path- The full path of the file, starting with the mount point.linkTracker- The tracker to use. This must be passed so that monitoring is continued until the link resolves to a file that is not a symbolic link.- Throws:
IOException
-
Nfs3File
The most efficient constructor if the parent file already exists.- Parameters:
parent- The parent file, stored to reduce lookup overheadchild- The short name of the file, starting from the parent path.- Throws:
IOException
-
-
Method Details
-
newChildFile
Creates a new file with the current file as its parent directory. This does not create the file on the NFS mount.- Returns:
- the new file
- Throws:
IOException
-
newFile
This creates a new file with arbitrary path, using the given LinkTracker.- Specified by:
newFilein classNfsFileBase<Nfs3,Nfs3File> - Parameters:
path- the absolute path from the mount point.linkTracker- The tracker to use. This must be passed so that monitoring is continued until the link resolves to a file that is not a symbolic link.- Returns:
- A new file corresponding to the path, created using the linkTracker
- Throws:
IOException
-