public abstract class AbstractFileSystemCommand extends AbstractCommandSupport implements FileSystemAware
Command executions that require file system access| Modifier and Type | Field and Description |
|---|---|
protected java.nio.file.FileSystem |
fileSystem |
cbCalled, cmdRunner, executorServicelog| Constructor and Description |
|---|
AbstractFileSystemCommand(java.lang.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.
|
java.nio.file.FileSystem |
getFileSystem() |
void |
setFileSystem(java.nio.file.FileSystem fileSystem)
Set the file system in which this shell will be executed.
|
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, waitsetFileSystemFactorygetSessionContextpublic AbstractFileSystemCommand(java.lang.String command,
CloseableExecutorService executorService)
public java.nio.file.FileSystem getFileSystem()
public void setFileSystem(java.nio.file.FileSystem fileSystem)
FileSystemAwaresetFileSystem in interface FileSystemAwarefileSystem - the file systempublic void destroy(ChannelSession channel) throws java.lang.Exception
CommandLifecycledestroy in interface CommandLifecycledestroy in class AbstractCommandSupportchannel - The ChannelSession through which the command has been receivedjava.lang.Exception - if failed to destroy