public class SftpSubsystemFactory extends AbstractSftpEventListenerManager implements ManagedExecutorServiceSupplier, SubsystemFactory, SftpEventListenerManager, SftpFileSystemAccessorManager
| Modifier and Type | Class and Description |
|---|---|
static class |
SftpSubsystemFactory.Builder |
| Modifier and Type | Field and Description |
|---|---|
static UnsupportedAttributePolicy |
DEFAULT_POLICY |
private SftpErrorStatusDataHandler |
errorStatusDataHandler |
private java.util.function.Supplier<? extends CloseableExecutorService> |
executorsProvider |
private SftpFileSystemAccessor |
fileSystemAccessor |
static java.lang.String |
NAME |
private UnsupportedAttributePolicy |
policy |
BY_NAME_COMPARATOR, NAME_EXTRACTOR| Constructor and Description |
|---|
SftpSubsystemFactory() |
| Modifier and Type | Method and Description |
|---|---|
Command |
createSubsystem(ChannelSession channel) |
SftpErrorStatusDataHandler |
getErrorStatusDataHandler() |
java.util.function.Supplier<? extends CloseableExecutorService> |
getExecutorServiceProvider() |
SftpFileSystemAccessor |
getFileSystemAccessor() |
java.lang.String |
getName() |
UnsupportedAttributePolicy |
getUnsupportedAttributePolicy() |
void |
setErrorStatusDataHandler(SftpErrorStatusDataHandler handler) |
void |
setExecutorServiceProvider(java.util.function.Supplier<? extends CloseableExecutorService> provider) |
void |
setFileSystemAccessor(SftpFileSystemAccessor accessor) |
void |
setUnsupportedAttributePolicy(UnsupportedAttributePolicy p) |
addSftpEventListener, getRegisteredListeners, getSftpEventListenerProxy, removeSftpEventListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitresolveExecutorServicecreateSubsystemfindByName, getNameList, getNames, ofName, removeByNameaddSftpEventListener, getSftpEventListenerProxy, removeSftpEventListenerpublic static final java.lang.String NAME
public static final UnsupportedAttributePolicy DEFAULT_POLICY
private java.util.function.Supplier<? extends CloseableExecutorService> executorsProvider
private UnsupportedAttributePolicy policy
private SftpFileSystemAccessor fileSystemAccessor
private SftpErrorStatusDataHandler errorStatusDataHandler
public java.lang.String getName()
getName in interface NamedResourcepublic java.util.function.Supplier<? extends CloseableExecutorService> getExecutorServiceProvider()
getExecutorServiceProvider in interface ExecutorServiceProviderSupplier of CloseableExecutorService to be used when asynchronous execution required.
If null then a single-threaded ad-hoc service is used.public void setExecutorServiceProvider(java.util.function.Supplier<? extends CloseableExecutorService> provider)
setExecutorServiceProvider in interface ManagedExecutorServiceSupplierprovider - The Supplier of CloseableExecutorService-s to be used when asynchronous execution
is required. If null then a single-threaded ad-hoc service is used.public UnsupportedAttributePolicy getUnsupportedAttributePolicy()
public void setUnsupportedAttributePolicy(UnsupportedAttributePolicy p)
p - The UnsupportedAttributePolicy to use if failed to access some local file attributes - never
nullpublic SftpFileSystemAccessor getFileSystemAccessor()
getFileSystemAccessor in interface SftpFileSystemAccessorManagerpublic void setFileSystemAccessor(SftpFileSystemAccessor accessor)
setFileSystemAccessor in interface SftpFileSystemAccessorManagerpublic SftpErrorStatusDataHandler getErrorStatusDataHandler()
public void setErrorStatusDataHandler(SftpErrorStatusDataHandler handler)
public Command createSubsystem(ChannelSession channel) throws java.io.IOException
createSubsystem in interface SubsystemFactorychannel - The ChannelSession through which the command has been receivednull Command instance representing the subsystem to be runjava.io.IOException - if failed to create the instance