Class NifiFtpServer

java.lang.Object
org.apache.nifi.processors.standard.ftp.NifiFtpServer
All Implemented Interfaces:
FtpServer

public class NifiFtpServer extends Object implements FtpServer
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     
    private static class 
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final org.apache.ftpserver.FtpServer
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
    NifiFtpServer(Map<String,org.apache.ftpserver.command.Command> commandMap, org.apache.ftpserver.ftplet.FileSystemFactory fileSystemFactory, org.apache.ftpserver.ConnectionConfig connectionConfig, org.apache.ftpserver.listener.Listener listener, org.apache.ftpserver.ftplet.User user)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    private org.apache.ftpserver.command.CommandFactory
    createCommandFactory(Map<String,org.apache.ftpserver.command.Command> commandMap)
     
    boolean
    Returns the status of the FTP server.
    void
    Starts the FTP server.
    void
    Stops the FTP server.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • server

      private final org.apache.ftpserver.FtpServer server
  • Constructor Details

    • NifiFtpServer

      private NifiFtpServer(Map<String,org.apache.ftpserver.command.Command> commandMap, org.apache.ftpserver.ftplet.FileSystemFactory fileSystemFactory, org.apache.ftpserver.ConnectionConfig connectionConfig, org.apache.ftpserver.listener.Listener listener, org.apache.ftpserver.ftplet.User user) throws org.apache.nifi.processor.exception.ProcessException
      Throws:
      org.apache.nifi.processor.exception.ProcessException
  • Method Details

    • createCommandFactory

      private org.apache.ftpserver.command.CommandFactory createCommandFactory(Map<String,org.apache.ftpserver.command.Command> commandMap)
    • start

      public void start() throws org.apache.nifi.processor.exception.ProcessException
      Description copied from interface: FtpServer
      Starts the FTP server.
      Specified by:
      start in interface FtpServer
      Throws:
      org.apache.nifi.processor.exception.ProcessException - if the server could not be started.
    • stop

      public void stop()
      Description copied from interface: FtpServer
      Stops the FTP server.
      Specified by:
      stop in interface FtpServer
    • isStopped

      public boolean isStopped()
      Description copied from interface: FtpServer
      Returns the status of the FTP server.
      Specified by:
      isStopped in interface FtpServer
      Returns:
      true if the server is stopped, false otherwise.