public class FtpEITransportHandler
extends java.lang.Object
Note that you may specify multiple files by using the '*' character as a wildcard. Use the '/' as the path separator, as this is the path separator recognized by FTP servers regardless of the operating system. If your EI Node is running via the PSA Admin Client, then the ftp config file is generated automatically for you. If you don't use the PSA Admin Client then the ftp config files must be in the format specified above.
Modifier and Type | Field and Description |
---|---|
protected Config |
ftpConfig
Ftp configuration info:
|
protected java.lang.String[] |
ftpType
Indicators of FTP Type:
|
protected java.lang.String[] |
hosts
IP Addresses of remote ftp hosts:
|
protected java.lang.String[] |
loginStrs
Login strings:
|
protected boolean |
m_isBinaryTransferMode
Transfer mode (same for all transport objects)
|
protected java.lang.String[] |
pwStrs
Password strings:
|
protected int |
totalHosts
Number of remote ftp hosts:
|
Modifier | Constructor and Description |
---|---|
protected |
FtpEITransportHandler() |
|
FtpEITransportHandler(SynchronizedDirectory localDir,
java.lang.String lSuffix,
DCNode node)
Creates a new instance of the transport handler class.
|
|
FtpEITransportHandler(SynchronizedDirectory localDir,
java.lang.String lSuffix,
DCNode node,
boolean rRenameFlag)
Creates a new instance of the transport handler class.
|
Modifier and Type | Method and Description |
---|---|
boolean |
ftpThreadsAlive()
Determines if any of the ftp threads are still alive.
|
FtpTransportFactory |
getFactory() |
protected void |
getFtpConfig()
Retrieves the ftp configuration info from the ftp configuration
file.
|
boolean |
isBinaryTransferMode() |
boolean |
isHealthy()
This method is used to check if the transport handler is fully
functional.
|
void |
setBinaryTransferMode(boolean isBinaryTransferMode) |
void |
setFactory(FtpTransportFactory factory) |
void |
shutdown()
Default shutdown method, which should be called by the node's
shutdown method; This method currently just calls the
FtpEITransport objects' shutdown methods.
|
void |
startRetrieval()
Used to create and start the individual Transport threads for
each FTP server.
|
protected int totalHosts
protected java.lang.String[] ftpType
protected java.lang.String[] hosts
protected java.lang.String[] loginStrs
protected java.lang.String[] pwStrs
protected Config ftpConfig
protected boolean m_isBinaryTransferMode
protected FtpEITransportHandler()
public FtpEITransportHandler(SynchronizedDirectory localDir, java.lang.String lSuffix, DCNode node) throws NodeStartException
localDir
- specifies the local directory that will store retrieved files until they are processedlSuffix
- specifies the suffix to use for files once they are retrieved to the local machinenode
- specifies the EI Node which is using this transport handlerNodeStartException
public FtpEITransportHandler(SynchronizedDirectory localDir, java.lang.String lSuffix, DCNode node, boolean rRenameFlag) throws NodeStartException
localDir
- specifies the local directory that will store retrieved files until they are processedlSuffix
- specifies the suffix to use for files once they are retrieved to the local machinenode
- specifies the EI Node which is using this transport handlerrRenameFlag
- specifies the Flag for RenamingNodeStartException
public boolean isBinaryTransferMode()
public void setBinaryTransferMode(boolean isBinaryTransferMode)
protected void getFtpConfig() throws NodeStartException
NodeStartException
public void startRetrieval()
public boolean ftpThreadsAlive()
public void shutdown()
public boolean isHealthy()
public void setFactory(FtpTransportFactory factory)
public FtpTransportFactory getFactory()