Class FtpPullThread
java.lang.Object
java.lang.Thread
com.nt.udc.processor.FtpFileEnhancer.FtpPullThread
- All Implemented Interfaces:
Runnable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.Builder, Thread.State, Thread.UncaughtExceptionHandler
-
Field Summary
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
-
Constructor Summary
ConstructorsConstructorDescriptionFtpPullThread
(String ip, String user, String password, String remoteFilename, String localFilename, boolean getErrFile, String errDirectory, long waitTime, FileEnhancerNode node) constructor -
Method Summary
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, isVirtual, join, join, join, join, ofPlatform, ofVirtual, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, sleep, start, startVirtualThread, stop, suspend, threadId, toString, yield
-
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 serveruser
- namepassword
- for usernamelocalFilename
- to copy files togetErrFile
- indicates where or not to get the error filewaitTime
- time between ftp retrievalsFileEanhancerNode
-
-
-
Method Details
-
retreiveFiles
public boolean retreiveFiles() -
run
public void run() -
shutdown
public void shutdown()shutdown the thread -
isHealthy
public boolean isHealthy()Used to help determine the health of the node using this loader. -
main
primarly for testing purposes
-