public static class SftpSubsystem.Factory extends Object implements NamedFactory<Command>
NamedFactory.Utils| Constructor and Description |
|---|
SftpSubsystem.Factory() |
SftpSubsystem.Factory(ExecutorService executorService) |
SftpSubsystem.Factory(ExecutorService executorService,
boolean shutdownOnExit) |
| Modifier and Type | Method and Description |
|---|---|
Command |
create()
Create a new instance
|
ExecutorService |
getExecutorService() |
String |
getName()
Name of this factory
|
boolean |
isShutdownOnExit() |
public static final String NAME
public SftpSubsystem.Factory()
public SftpSubsystem.Factory(ExecutorService executorService)
executorService - The ExecutorService to be used by
the SftpSubsystem command when starting execution. If
null then a single-threaded ad-hoc service is used.
Note: the service will not be shutdown when the
subsystem is closed - unless it is the ad-hoc service, which will be
shutdown regardlessFactory(ExecutorService, boolean)}public SftpSubsystem.Factory(ExecutorService executorService, boolean shutdownOnExit)
executorService - The ExecutorService to be used by
the SftpSubsystem command when starting execution. If
null then a single-threaded ad-hoc service is used.shutdownOnExit - If true the ExecutorService.shutdownNow()
will be called when subsystem terminates - unless it is the ad-hoc
service, which will be shutdown regardlesspublic ExecutorService getExecutorService()
public boolean isShutdownOnExit()
public String getName()
NamedFactorygetName in interface NamedFactory<Command>Copyright © 2008–2015 The Apache Software Foundation. All rights reserved.