public abstract class AbstractFileManager extends Object implements FileManager
Modifier and Type | Field and Description |
---|---|
protected String |
mGroup |
protected File |
mRootDir |
protected String |
mUser |
Constructor and Description |
---|
AbstractFileManager(String rootDir,
String user,
String group)
Construct a file manager from a string root.
|
Modifier and Type | Method and Description |
---|---|
boolean |
addFile(String fileName,
String permission,
byte[] content)
Add a file to the file manager.
|
protected abstract String |
getNextFilePath(String fileName) |
protected static void |
verifyFileName(String fname)
Verifies that a filename conforms to a set of restrictions.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
listFile, removeFile
protected final File mRootDir
protected final String mUser
protected final String mGroup
public boolean addFile(String fileName, String permission, byte[] content)
FileManager
addFile
in interface FileManager
fileName
- filenamepermission
- permission stringcontent
- contentprotected static void verifyFileName(String fname) throws AlluxioException
fname
- the filename that should be usedAlluxioException
- if the filename is invalidCopyright © 2023. All Rights Reserved.