public class SftpSubsystemFactory extends Object implements SubsystemFactory, Cloneable, ExecutorServiceConfigurer
| Modifier and Type | Class and Description |
|---|---|
static class |
SftpSubsystemFactory.Builder |
NamedFactory.Utils| Modifier and Type | Field and Description |
|---|---|
static UnsupportedAttributePolicy |
DEFAULT_POLICY |
static String |
NAME |
BY_NAME_COMPARATOR, NAME_EXTRACTOR| Constructor and Description |
|---|
SftpSubsystemFactory() |
| Modifier and Type | Method and Description |
|---|---|
SftpSubsystemFactory |
clone() |
Command |
create() |
ExecutorService |
getExecutorService() |
String |
getName() |
UnsupportedAttributePolicy |
getUnsupportedAttributePolicy() |
boolean |
isShutdownOnExit() |
void |
setExecutorService(ExecutorService service) |
void |
setShutdownOnExit(boolean shutdownOnExit) |
void |
setUnsupportedAttributePolicy(UnsupportedAttributePolicy p) |
public static final String NAME
public static final UnsupportedAttributePolicy DEFAULT_POLICY
public String getName()
getName in interface NamedResourcepublic ExecutorService getExecutorService()
getExecutorService in interface ExecutorServiceCarrierpublic void setExecutorService(ExecutorService service)
setExecutorService in interface ExecutorServiceConfigurerservice - The ExecutorService to be used by the SftpSubsystem
command when starting execution. If null then a single-threaded ad-hoc service is used.public boolean isShutdownOnExit()
isShutdownOnExit in interface ExecutorServiceCarriertrue then the ExecutorService.shutdownNow()
will be called (unless it is an internally allocated service which is always
closed)public void setShutdownOnExit(boolean shutdownOnExit)
setShutdownOnExit in interface ExecutorServiceConfigurershutdownOnExit - If true the ExecutorService.shutdownNow()
will be called when subsystem terminates - unless it is the ad-hoc service, which
will be shutdown regardlesspublic UnsupportedAttributePolicy getUnsupportedAttributePolicy()
public void setUnsupportedAttributePolicy(UnsupportedAttributePolicy p)
p - The UnsupportedAttributePolicy to use if failed to access
some local file attributespublic Command create()
public SftpSubsystemFactory clone()
Copyright © 2008–2015 The Apache Software Foundation. All rights reserved.