public abstract class AbstractFileSystemCommand extends AbstractCommandSupport implements FileSystemAware
Command
executions that require file system accessModifier and Type | Field and Description |
---|---|
protected java.nio.file.FileSystem |
fileSystem |
callback, cbCalled, cmdFuture, cmdRunner, command, environment, err, executorService, in, out, serverSession, shutdownOnExit
log
Constructor and Description |
---|
AbstractFileSystemCommand(java.lang.String command,
java.util.concurrent.ExecutorService executorService,
boolean shutdownOnExit) |
Modifier and Type | Method and Description |
---|---|
void |
destroy()
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, isShutdownOnExit, onExit, onExit, setErrorStream, setExitCallback, setInputStream, setOutputStream, setSession, start, toString
getSimplifiedLogger
public AbstractFileSystemCommand(java.lang.String command, java.util.concurrent.ExecutorService executorService, boolean shutdownOnExit)
public java.nio.file.FileSystem getFileSystem()
public void setFileSystem(java.nio.file.FileSystem fileSystem)
FileSystemAware
setFileSystem
in interface FileSystemAware
fileSystem
- the file systempublic void destroy()
CommandLifecycle
destroy
in interface CommandLifecycle
destroy
in class AbstractCommandSupport