Class FtpPullThread

java.lang.Object
java.lang.Thread
com.nt.udc.processor.FtpFileEnhancer.FtpPullThread
All Implemented Interfaces:
Runnable

public class FtpPullThread extends Thread
  • Constructor Details

    • FtpPullThread

      public FtpPullThread(String ip, String user, String password, String remoteFilename, String localFilename, boolean getErrFile, String errDirectory, long waitTime, FileEnhancerNode node)
      constructor
      Parameters:
      ip - address of remote server
      user - name
      password - for username
      localFilename - to copy files to
      getErrFile - indicates where or not to get the error file
      waitTime - time between ftp retrievals
      FileEanhancerNode -
  • Method Details

    • retreiveFiles

      public boolean retreiveFiles()
    • run

      public void run()
      Specified by:
      run in interface Runnable
      Overrides:
      run in class Thread
    • shutdown

      public void shutdown()
      shutdown the thread
    • isHealthy

      public boolean isHealthy()
      Used to help determine the health of the node using this loader.
    • main

      public static void main(String[] args)
      primarly for testing purposes