Class AbstractFileSystemCommand

    • Field Detail

      • fileSystem

        protected java.nio.file.FileSystem fileSystem
    • Constructor Detail

      • AbstractFileSystemCommand

        public AbstractFileSystemCommand​(java.lang.String command,
                                         CloseableExecutorService executorService)
    • Method Detail

      • getFileSystem

        public java.nio.file.FileSystem getFileSystem()
      • setFileSystem

        public void setFileSystem​(java.nio.file.FileSystem fileSystem)
        Description copied from interface: FileSystemAware
        Set the file system in which this shell will be executed.
        Specified by:
        setFileSystem in interface FileSystemAware
        Parameters:
        fileSystem - the file system
      • destroy

        public void destroy​(ChannelSession channel)
                     throws java.lang.Exception
        Description copied from interface: CommandLifecycle
        This method is called by the SSH server to destroy the command because the client has disconnected somehow.
        Specified by:
        destroy in interface CommandLifecycle
        Overrides:
        destroy in class AbstractCommandSupport
        Parameters:
        channel - The ChannelSession through which the command has been received
        Throws:
        java.lang.Exception - if failed to destroy