public abstract class AbstractFileSystemCommand extends AbstractCommandSupport implements FileSystemAware
Command executions that require file system access| Modifier and Type | Field and Description |
|---|---|
protected FileSystem |
fileSystem |
callback, cbCalled, cmdFuture, cmdRunner, command, environment, err, executorService, in, out, serverSessionlog| Constructor and Description |
|---|
AbstractFileSystemCommand(String command,
CloseableExecutorService executorService) |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy(ChannelSession channel)
This method is called by the SSH server to destroy the command because
the client has disconnected somehow.
|
FileSystem |
getFileSystem() |
void |
setFileSystem(FileSystem fileSystem) |
getCommand, getEnvironment, getErrorStream, getExecutorService, getExitCallback, getInputStream, getOutputStream, getServerSession, getSession, getStartedCommandFuture, onExit, onExit, setErrorStream, setExitCallback, setInputStream, setOutputStream, setSession, start, toStringgetSimplifiedLoggerclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetSessionContextprotected FileSystem fileSystem
public AbstractFileSystemCommand(String command, CloseableExecutorService executorService)
public FileSystem getFileSystem()
public void setFileSystem(FileSystem fileSystem)
setFileSystem in interface FileSystemAwarepublic void destroy(ChannelSession channel) throws Exception
CommandLifecycledestroy in interface CommandLifecycledestroy in class AbstractCommandSupportchannel - The ChannelSession through which the command has been
receivedException - if failed to destroyCopyright © 2008–2020 The Apache Software Foundation. All rights reserved.