public class NativeFileSystemFactory extends AbstractLoggingBean implements FileSystemFactory
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_USERS_HOME |
static NativeFileSystemFactory |
INSTANCE |
log
Constructor and Description |
---|
NativeFileSystemFactory() |
NativeFileSystemFactory(boolean createHome) |
Modifier and Type | Method and Description |
---|---|
FileSystem |
createFileSystem(Session session)
Create user specific file system.
|
String |
getUsersHomeDir() |
boolean |
isCreateHome()
Should the home directories be created automatically
|
void |
setCreateHome(boolean createHome)
Set if the home directories be created automatically
|
void |
setUsersHomeDir(String usersHomeDir)
Set the root location where users home is to be created
|
getSimplifiedLogger
public static final String DEFAULT_USERS_HOME
public static final NativeFileSystemFactory INSTANCE
public NativeFileSystemFactory()
public NativeFileSystemFactory(boolean createHome)
public String getUsersHomeDir()
null
/empty.public void setUsersHomeDir(String usersHomeDir)
usersHomeDir
- The root location where users home is to be created - never null
/empty.isCreateHome()
public boolean isCreateHome()
true
if the file system will create the home directory if not availablepublic void setCreateHome(boolean createHome)
createHome
- true
if the file system should create the home directory
automatically if not availablegetUsersHomeDir()
public FileSystem createFileSystem(Session session) throws IOException
FileSystemFactory
createFileSystem
in interface FileSystemFactory
session
- The session created for the userFileSystem
for the provided sessionIOException
- if the filesystem can not be createdCopyright © 2008–2022 The Apache Software Foundation. All rights reserved.