|
Sun Adapter for Batch/FTP | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.stc.eways.batchext.FtpFileConfiguration
public class FtpFileConfiguration
This class represents the Batch e*Way's FTP ETD e*Way Connection configuration.
Field Summary | |
---|---|
static java.lang.String |
CMD_COPY
|
static java.lang.String |
CMD_DELETE
|
static java.lang.String |
CMD_NONE
|
static java.lang.String |
CMD_RENAME
|
Constructor Summary | |
---|---|
FtpFileConfiguration(FtpETD etdParam)
Constructor. |
Method Summary | |
---|---|
java.lang.String |
getActionOnMalformedCommand()
Deprecated. 4.5.x legacy code. |
java.util.Properties |
getAllParamChangeRequested()
|
boolean |
getAppend()
Gets the overwrite or append file operation status. |
java.util.Properties |
getChangedParameters()
get the changed parameters - i.e. |
java.lang.String |
getClientClassName()
Gets the client class name. |
int |
getCommandConnectionTimeout()
Gets the command connection timeout (in milliseconds). |
java.lang.String |
getConnectionEstablishmentMode()
Deprecated. 4.5.x legacy code, use getConnectionMode(). |
long |
getConnectionInactivityTimeout()
Deprecated. 4.5.x legacy code. |
java.lang.String |
getConnectionMode()
getter of "Connection Mode", "Connection Mode" is a read only property; |
long |
getConnectionVerificationInterval()
Deprecated. 4.5.x legacy code. |
FtpFileConfiguration |
getConnector()
A helper method used for ETD configuration sub-node. |
int |
getDataConnectionTimeout()
Gets the data connection timeout (in milliseconds). |
java.lang.String |
getDirectoryListingStyle()
Gets the directory listing style. |
FtpFileConfiguration |
getDynamicConfiguration()
A helper method used for ETD configuration sub-node. |
java.lang.String |
getEncryptedPassword()
Gets the encrypted password. |
FtpFileConfiguration |
getExtensions()
Deprecated. 4.5.x legacy code. |
protected java.lang.String |
getExternalName()
|
FtpFileConfiguration |
getFtp()
A helper method used for ETD configuration sub-node. |
FtpFileConfiguration |
getFTPRawCommands()
A helper method used for ETD configuration sub-node. |
FtpFileConfiguration |
getGeneralSettings()
A helper method used for ETD configuration sub-node. |
java.lang.String |
getHostName()
Gets the remote FTP host name. |
boolean |
getIncludeOrderRecordInErrorRecord()
Deprecated. 4.5.x legacy code. |
boolean |
getIncludePayloadInErrorRecord()
Deprecated. 4.5.x legacy code. |
long |
getMaxRetry()
|
long |
getMaxSequenceNumber()
Gets the maximum sequence number. |
java.lang.String |
getMode()
Gets the FTP mode. |
protected java.lang.String |
getOID()
|
java.lang.String |
getPostDirectoryName()
Gets the post directory name and . |
boolean |
getPostDirectoryNameIsPattern()
Checks whether the post directory name is a pattern or a literal name. |
java.lang.String |
getPostFileName()
Gets Post File Name. |
boolean |
getPostFileNameIsPattern()
Checks whether the post file name is a pattern or a literal name. |
FtpFileConfiguration |
getPostTransfer()
A helper method used for ETD configuration sub-node. |
java.lang.String |
getPostTransferCommand()
Gets the post transfer command. |
java.lang.String |
getPostTransferRawCommands()
Gets the post transfer FTP raw commands. |
java.lang.String |
getPreDirectoryName()
Gets the pre directory name and is only used for the "Rename" or "Copy" options of the pre transfer commands. |
boolean |
getPreDirectoryNameIsPattern()
Checks whether the pre directory name is a pattern or a literal name. |
java.lang.String |
getPreFileName()
Gets Pre File Name. |
boolean |
getPreFileNameIsPattern()
Checks whether the pre file name is a pattern or a literal name. |
FtpFileConfiguration |
getPreTransfer()
A helper method used for ETD configuration sub-node. |
java.lang.String |
getPreTransferCommand()
Gets the pre transfer command. |
java.lang.String |
getPreTransferRawCommands()
Gets the pre transfer FTP raw commands. |
java.lang.String |
getProviderClassName()
Gets the provider class name. |
boolean |
getPublishStatusRecordOnError()
Deprecated. 4.5.x legacy code, obsolete feature. |
boolean |
getPublishStatusRecordOnSuccess()
Deprecated. 4.5.x legacy code, obsolete feature. |
long |
getRetryInterval()
|
FtpFileConfiguration |
getSequenceNumbering()
A helper method used for ETD configuration sub-node. |
int |
getServerPort()
Gets the FTP server's port. |
boolean |
getShareConnectorWithinCollaboration()
Checks on whether an e*Way Connection is being shared within a Collaboration. |
FtpFileConfiguration |
getSOCKS()
A helper method used for ETD configuration sub-node. |
boolean |
getSocksEnabled()
Checks to determine whether SOCKS is enabled. |
java.lang.String |
getSocksEncryptedPassword()
Gets the encrypted SOCKS password. |
java.lang.String |
getSocksHostName()
Gets the SOCKS host name. |
int |
getSocksServerPort()
Gets the SOCKS server port. |
java.lang.String |
getSocksUserName()
Gets the SOCKS user name. |
int |
getSocksVersion()
Gets the SOCKS version. |
boolean |
getSSHChannelEstablished()
Checks on whether the SSH channel is already established. |
java.lang.String |
getSSHCommandLine()
Gets the SSH command line. |
java.lang.String |
getSSHEncryptedPassword()
Gets the encrypted SSH password. |
java.lang.String |
getSSHListenHost()
Gets the SSH listen host name. |
int |
getSSHListenPort()
Gets the SSH listen host port number. |
FtpFileConfiguration |
getSSHTunneling()
A helper method used for ETD configuration sub-node. |
boolean |
getSSHTunnelingEnabled()
Checks on whether SSH tunneling is enabled. |
java.lang.String |
getSSHUserName()
Gets the SSH user name. |
long |
getStartingSequenceNumber()
Gets the starting sequence number. |
java.lang.String |
getStatePersistenceBaseLocation()
Gets the state persistence base location. |
boolean |
getSynchronized()
|
java.lang.String |
getTargetDirectoryName()
Gets the target directory name. |
boolean |
getTargetDirectoryNameIsPattern()
Checks whether the target directory name is a pattern. |
java.lang.String |
getTargetFileName()
Gets the target file name. |
boolean |
getTargetFileNameIsPattern()
Checks whether the target file name is a pattern or a literal name. |
FtpFileConfiguration |
getTargetLocation()
A helper method used for ETD configuration sub-node. |
java.lang.String |
getTransactionType()
Gets the connection's transaction type. |
boolean |
getUsePASV()
Gets information that tells you whether your connection is using the passive mode, that is, whether the "Use PASV" configuration parameter status is YES or NO. |
java.lang.String |
getUserDefinedDirectoryListingStyle()
Gets the user directory listing style. |
java.lang.String |
getUserHeuristicsLocation()
|
java.lang.String |
getUserName()
Gets the user name. |
java.util.Properties |
getUserProperties()
Gets the user-defined properties from the Java user properties file. |
java.lang.String |
getUserPropertyFile()
Gets the user properties file name. |
void |
initialConfigValues(java.util.Properties props)
Initializes the configuration from specified properties. |
boolean |
isAppend()
Checks whether file transfer mode is append or overwrite. |
boolean |
isConnectionEstablishmentModeAutomatic()
Deprecated. 4.5.x legacy code, use isConnectionModeManual, or isConnectionModeAuto() or getConnectionMode(). |
boolean |
isConnectionEstablishmentModeManual()
Deprecated. 4.5.x legacy code, use isConnectionModeManual, or isConnectionModeAuto() or getConnectionMode(). |
boolean |
isConnectionEstablishmentModeOnDemand()
Deprecated. 4.5.x legacy code, "On Demand" is obsolete, only "Automatic" and "Manual" are available. |
boolean |
isConnectionModeAuto()
is the connection mode automatic? |
boolean |
isConnectionModeManual()
is the connection mode manual? |
boolean |
isConnectionParameterChanged()
indicate that one or more of the "connection parameters" changed; |
boolean |
isModeAscii()
A helper method. |
boolean |
isModeBinary()
A helper method. |
boolean |
isModeEbcdic()
A helper method. |
boolean |
isPostDirectoryNameIsPattern()
Check whether the post directory name is a pattern or a literal name. |
boolean |
isPostFileNameIsPattern()
Checks whether the post file name is a pattern or a literal name. |
boolean |
isPostTransferCommandDelete()
A helper method. |
boolean |
isPostTransferCommandNone()
A helper method. |
boolean |
isPostTransferCommandRename()
A helper method. |
boolean |
isPreDirectoryNameIsPattern()
Check whether the pre directory name is a pattern or a literal name. |
boolean |
isPreFileNameIsPattern()
Checks whether the pre file name is a pattern or a literal name. |
boolean |
isPreTransferCommandCopy()
A helper method. |
boolean |
isPreTransferCommandNone()
A helper method. |
boolean |
isPreTransferCommandRename()
A helper method. |
boolean |
isShareConnectorWithinCollaboration()
Deprecated. 4.5.x legacy code, obsolete feature. |
boolean |
isSocksEnabled()
Checks to determine whether SOCKS is enabled. |
boolean |
isSocksVersion4()
A helper method. |
boolean |
isSocksVersion5()
A helper method. |
boolean |
isSocksVersionUnknown()
A helper method. |
boolean |
isSSHChannelEstablished()
Checks on whether the SSH channel is already established. |
boolean |
isSSHTunnelingEnabled()
Checks on whether SSH tunneling is enabled. |
boolean |
isTargetDirectoryNameIsPattern()
Check whether the target directory name is a pattern or a literal name. |
boolean |
isTargetFileNameIsPattern()
Checks whether the target file name is a pattern or a literal name. |
boolean |
isTransactionTypeNonXA()
A helper method. |
boolean |
isTransactionTypeXA()
A helper method. |
boolean |
isUsePASV()
Gets information that tells you whether your connection is using the passive mode, that is, whether the "Use PASV" configuration parameter status is YES or NO. |
static void |
main(java.lang.String[] args)
Used to do stand-alone testing. |
protected void |
reset()
|
void |
setActionOnMalformedCommand(java.lang.String newActionOnMalformedCommand)
Deprecated. 4.5.x legacy code, obsolete feature. |
void |
setAppend(boolean newAppend)
Sets the overwrite or append file operation status. |
void |
setClientClassName(java.lang.String newClientClassName)
Sets the client class name. |
void |
setCommandConnectionTimeout(int newCommandConnectionTimeout)
Sets the command connection timeout (in milliseconds). |
void |
setDataConnectionTimeout(int newDataConnectionTimeout)
Sets the data connection timeout (in milliseconds). |
void |
setDirectoryListingStyle(java.lang.String newDirectoryListingStyle)
Sets Directory Listing Style. |
void |
setEncryptedPassword(java.lang.String newPassword)
Sets the property password. |
void |
setHostName(java.lang.String newHostName)
Sets the host name. |
void |
setIncludeOrderRecordInErrorRecord(boolean newIncludeOrderRecordInErrorRecord)
Deprecated. 4.5.x legacy code, obsolete feature. |
void |
setIncludePayloadInErrorRecord(boolean newIncludePayloadInErrorRecord)
Deprecated. 4.5.x legacy code, obsolete feature. |
void |
setMaxRetry(long aRetry)
|
void |
setMaxSequenceNumber(long newMaxSequenceNumber)
Sets the maximum sequence number. |
void |
setMode(java.lang.String newMode)
Sets the FTP mode. |
void |
setPassword(java.lang.String newPassword)
Sets the password. |
void |
setPostDirectoryName(java.lang.String newPostDirectoryName)
Sets the post directory name and only applies to the "Rename" option of the post transfer command. |
void |
setPostDirectoryNameIsPattern(boolean newPostDirectoryNameIsPattern)
Sets Pattern/Literal option for Post Directory Name. |
void |
setPostFileName(java.lang.String newPostFileName)
Sets Post File Name. |
void |
setPostFileNameIsPattern(boolean newPostFileNameIsPattern)
Sets Pattern/Literal option for Post File Name. |
void |
setPostTransferCommand(java.lang.String newPostTransferCommand)
Sets the post transfer command. |
void |
setPostTransferRawCommands(java.lang.String newPostTransferRawCommands)
Sets the post transfer FTP raw commands. |
void |
setPreDirectoryName(java.lang.String newPreDirectoryName)
Sets the pre directory name and is only used for the "Rename" or "Copy" options of the pre transfer commands. |
void |
setPreDirectoryNameIsPattern(boolean newPreDirectoryNameIsPattern)
Sets Pattern/Literal option for Pre Directory Name. |
void |
setPreFileName(java.lang.String newPreFileName)
Sets Pre File Name. |
void |
setPreFileNameIsPattern(boolean newPreFileNameIsPattern)
Sets Pattern/Literal option for Pre File Name. |
void |
setPreTransferCommand(java.lang.String newPreTransferCommand)
Sets the pre transfer command. |
void |
setPreTransferRawCommands(java.lang.String newPreTransferRawCommands)
Sets the pre transfer FTP raw commands. |
void |
setProviderClassName(java.lang.String newProviderClassName)
Sets the provider class name. |
void |
setPublishStatusRecordOnError(boolean newPublishStatusRecordOnError)
Deprecated. 4.5.x legacy code, obsolete feature. |
void |
setPublishStatusRecordOnSuccess(boolean newPublishStatusRecordOnSuccess)
Deprecated. 4.5.x legacy code, obsolete feature. |
void |
setRetryInterval(long aInterval)
|
void |
setServerPort(int newServerPort)
Sets the FTP server's port. |
void |
setSocksEnabled(boolean newSocksEnabled)
Allows you to enable or disable the SOCKS feature for the FTP ETD. |
void |
setSocksEncryptedPassword(java.lang.String newSocksPassword)
Sets the property socksPassword. |
void |
setSocksHostName(java.lang.String newSocksHostName)
Sets the SOCKS host name. |
void |
setSocksPassword(java.lang.String newSocksPassword)
Sets the SOCKS password. |
void |
setSocksServerPort(int newSocksServerPort)
Sets the SOCKS server port. |
void |
setSocksUserName(java.lang.String newSocksUserName)
Sets the SOCKS user name. |
void |
setSocksVersion(int newSocksVersion)
Sets the SOCKS version. |
void |
setSSHChannelEstablished(boolean newSshChannelEstablished)
If the SSH Channel is established already, we'll not establish new SSH channel; otherwise, a new SSH channel will be established from the e*Way. |
void |
setSSHCommandLine(java.lang.String newSshCommandLine)
Sets the SSH command line. |
void |
setSSHEncryptedPassword(java.lang.String newSshPassword)
Sets the property sshPassword. |
void |
setSSHListenHost(java.lang.String newSshListenHost)
Gets the SSH listen host name. |
void |
setSSHListenPort(int newSshListenPort)
Sets the SSH listen port. |
void |
setSSHPassword(java.lang.String newSshPassword)
Sets the SSH password. |
void |
setSSHTunnelingEnabled(boolean newSshTunnelingEnabled)
Enables or disables SSH tunneling. |
void |
setSSHUserName(java.lang.String newSshUserName)
Sets the SSH user name. |
void |
setStartingSequenceNumber(long newStartingSequenceNumber)
Sets the starting sequence number. |
protected void |
setSynchronized(boolean b)
|
void |
setTargetDirectoryName(java.lang.String newTargetDirectoryName)
Sets the target directory name. |
void |
setTargetDirectoryNameIsPattern(boolean newTargetDirectoryNameIsPattern)
Sets Pattern/Literal option for target directory name. |
void |
setTargetFileName(java.lang.String newTargetFileName)
Sets the target file name. |
void |
setTargetFileNameIsPattern(boolean newTargetFileNameIsPattern)
Sets Pattern/Literal option for target file name. |
void |
setUsePASV(boolean newUsePASV)
Sets the parameter that tells the connection whether to use the passive mode, that is, whether the "Use PASV" configuration parameter status is YES or NO. |
void |
setUserDefinedDirectoryListingStyle(java.lang.String newUserDefinedDirectoryListingStyle)
Sets Directory Listing Style. |
void |
setUserHeuristicsLocation(java.lang.String userHeuristicLoc)
|
void |
setUserName(java.lang.String newUserName)
Sets the user name. |
void |
setUserPropertyFile(java.lang.String newUserPropertyFile)
Sets the user properties file name. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String CMD_NONE
public static final java.lang.String CMD_RENAME
public static final java.lang.String CMD_COPY
public static final java.lang.String CMD_DELETE
Constructor Detail |
---|
public FtpFileConfiguration(FtpETD etdParam)
mEtd
- The FtpETD instance.Method Detail |
---|
public java.lang.String getDirectoryListingStyle()
This style is the listing format that the FTP server displays upon issuing a LIST command. FtpHeuristics defines all the styles supported by the e*Way. The default value is UNIX.
public java.lang.String getUserDefinedDirectoryListingStyle()
This style is the listing format that the FTP server displays upon issuing a LIST command. a heuristics configuration file on the logical host contains the heuristics information this parameter is referring to. No default value, when left blank, the CM level "Directory Listing Style" is used.
public java.lang.String getHostName()
public java.lang.String getMode()
This value describes the mode used to transfer data to and from the FTP server. The method returns binary or ASCII. The default value is ASCII.
public java.lang.String getTargetDirectoryName()
This value is the directory on the external FTP system where files are retrieved from or sent to. The absolute directory name is preferred; otherwise, this path is relative to the home directory where you were when you logged in to the FTP server.
For outbound data (publishing), the directory is created if it does not exist.
public int getServerPort()
This value is the port number used on the FTP server when the e*Way is connecting to it. The default value is 21.
public java.lang.String getUserName()
This value is the user name given when logging in to the FTP server; the default value is "anonymous."
public void setDirectoryListingStyle(java.lang.String newDirectoryListingStyle) throws FtpFileException
This style is the listing format that the FTP server displays upon issuing a LIST command. FtpHeuristics defines all the styles supported by the e*Way. The default value is UNIX.
newDirectoryListingStyle
- The Directory Listing Style.
FtpFileException
- If some error occurs.public void setUserDefinedDirectoryListingStyle(java.lang.String newUserDefinedDirectoryListingStyle) throws FtpFileException
This style is the listing format that the FTP server displays upon issuing a LIST command. FtpHeuristics defines all the styles supported by the e*Way. The default value is UNIX.
newDirectoryListingStyle
- The Directory Listing Style.
FtpFileException
- If some error occurs.public void setHostName(java.lang.String newHostName) throws FtpFileException
This value is the name of the FTP server that the e*Way connects to. It can be either an IP address or a logical host name. The default value is localhost.
newHostName
- The host name.
FtpFileException
- If some error occurs.public void setMode(java.lang.String newMode) throws FtpFileException
This value describes the mode used to transfer data to and from the FTP server. The method sets binary, EBCIDC, or ASCII. The default value is ASCII.
newMode
- The mode.
FtpFileException
- If some error occurs.public void setPassword(java.lang.String newPassword)
The input is a non-encrypted password. You must use another method, setEncryptedPassword(String password), if the input is an encrypted password.
newPassword
- The non-encrypted password.public void setTargetDirectoryName(java.lang.String newTargetDirectoryName) throws FtpFileException
The directory on the external FTP system where files are retrieved from or sent to. The absolute directory name is preferred; otherwise, this path is relative to the directory where you were when you logged in to the FTP server.
For outbound data (publishing), the directory is created if it does not exist.
newTargetDirectoryName
- The target directory name.
FtpFileException
public void setServerPort(int newServerPort) throws FtpFileException
This value is the port number used on the FTP server when the e*Way is connecting to it. The default value is 21.
newServerPort
- The server port number.
FtpFileException
- If some error occurs.public void setUserName(java.lang.String newUserName) throws FtpFileException
This value is the user name given when logging into the FTP server; the default value is "anonymous."
newUserName
- The user name.
FtpFileException
- If some error occurs.public java.lang.String getPostTransferRawCommands()
This value represents the FTP raw commands issued after the file transfer command. Note that some SITE commands use a semicolon (;) to separate the command sets, for example:
SITE RECFM=FB;SITE LRECL=50;SITE BLOCKSIZE=32750;SITE TRACKS;SITE PRI=5;SITE SEC=5
NOTE: These commands are sent to FTP server directly, so the commands must be FTP raw commands.
public java.lang.String getPreTransferRawCommands()
This value represents the FTP raw commands issued before the file transfer command. Note that some SITE commands use a semicolon (;) to separate the command sets, for example:
SITE RECFM=FB;SITE LRECL=50;SITE BLOCKSIZE=32750;SITE TRACKS;SITE PRI=5;SITE SEC=5
NOTE: These commands are sent to FTP server directly, so the commands must be FTP raw commands.
public java.lang.String getTargetFileName()
This value is the FTP remote file name which is retrieved from or sent to.
For outbound data (publishing), the file is created if it does not exist.
It represents the base file name instead of full file name.
For MVS GDG, this value can be the version of the dataset, for example:
Target Directory Name = 'STC.SAMPLE.GDGSET'.
Target File Name = (0) to indicate the current version.
public boolean isUsePASV()
Normally, when you connect to an FTP site, the site establishes the data connection to your computer. However, some FTP sites allow passive data transfers, meaning that your computer establishes the data connection. By default, the passive mode is turned on; and it is recommended that you use it for data transfers to and from FTP sites that support it.
The passive mode may be required in the following instances:
- For users on networks behind some types of router-based firewalls
- For users on networks behind a gateway requiring passive data transfers
- If transfers are erratic
- If you keep getting failed data-channel errors
public void setPostTransferRawCommands(java.lang.String newPostTransferRawCommands)
This value represents the FTP raw commands issued after the file transfer command. Note that some SITE commands use a semicolon (;) to separate the command sets, for example:
SITE RECFM=FB;SITE LRECL=50;SITE BLOCKSIZE=32750;SITE TRACKS;SITE PRI=5;SITE SEC=5
NOTE: These commands are sent to FTP server directly, so the commands must be FTP raw commands.
newPostTransferRawCommands
- The post transfer FTP raw commands.public void setPreTransferRawCommands(java.lang.String newPreTransferRawCommands)
This value represents the FTP raw commands issued before the file transfer command. Note that some SITE commands use a semicolon (;) to separate the command sets, for example:
SITE RECFM=FB;SITE LRECL=50;SITE BLOCKSIZE=32750;SITE TRACKS;SITE PRI=5;SITE SEC=5
NOTE: These commands are sent to FTP server directly, so the commands must be FTP raw commands.
newPreTransferRawCommands
- The pre transfer FTP raw commands.public void setTargetFileName(java.lang.String newTargetFileName) throws FtpFileException
This value is the FTP remote file name which is retrieved from or sent to.
For outbound data (publishing), the file is created if it does not exist.
It represents the base file name instead of full file name.
For MVS GDG, this value can be the version of the dataset, for example:
Target Directory Name = 'STC.SAMPLE.GDGSET'.
Target File Name = (0) to indicate the current version.
newTargetFileName
- The target file name.
FtpFileException
- If some error occurs.public void setUsePASV(boolean newUsePASV)
Normally, when you connect to an FTP site, the site establishes the data connection to your computer. However, some FTP sites allow passive data transfers, meaning that your computer establishes the data connection. By default, the passive mode is turned on; and it is recommended that you use it for data transfers to and from FTP sites that support it.
The passive mode may be required in the following instances:
- For users on networks behind some types of router-based firewalls
- For users on networks behind a gateway requiring passive data transfers
- If transfers are erratic
- If you keep getting failed data-channel errors
newUsePASV
- The desired "Use PASV" parameter.public long getMaxSequenceNumber()
This value is used for the name pattern %#. The value of this parameter is used when you have set up the remote file name to contain a sequence number. The value tells the e*Way that when this value (the parameter Max Sequence Number) is reached, to reset the sequence number to the starting sequence number.
The value of the maximum sequence number MUST be greater than the starting sequence number.
public long getStartingSequenceNumber()
This value is used for the name pattern %#.
The value of this parameter is used when you have set up the remote file name to contain a sequence number. The value tells the e*Way which value to start with in the absence of a sequence number from a previous run.
Also, when the maximum sequence number is reached, the sequence number rolls over to the starting sequence number.
The value of the starting sequence number MUST be less than the maximum sequence number. The default value is 1.
public void setMaxSequenceNumber(long newMaxSequenceNumber) throws FtpFileException
This value is used for the name pattern %#. The value of this parameter is used when you have set up the remote file name to contain a sequence number. The value tells the e*Way that when this value (the parameter Max Sequence Number) is reached, to reset the sequence number to the starting sequence number.
The value of the maximum sequence number MUST be greater than the starting sequence number.
newMaxSequenceNumber
- The maximum sequence number.
FtpFileException
- If some error occurs.public void setStartingSequenceNumber(long newStartingSequenceNumber) throws FtpFileException
This value is used for the name pattern %#.
The value of this parameter is used when you have set up the remote file name to contain a sequence number. The value tells the e*Way which value to start with in the absence of a sequence number from a previous run.
Also, when the maximum sequence number is reached, the sequence number rolls over to the starting sequence number.
The value of the starting sequence number MUST be less than the maximum sequence number. The default value is 1.
newStartingSequenceNumber
- The starting sequence number.
FtpFileException
- If some error occurs.public void setEncryptedPassword(java.lang.String newPassword) throws FtpFileException
The input is an encrypted password. You must use another method, setPassword(String password), if the input is a non-encrypted password.
newPassword
- The encrypted password.
FtpFileException
public static void main(java.lang.String[] args)
args
- Command line parameters.public int getSocksServerPort()
The port number to use on the SOCKS server when connecting to it. The default value is 1080.
public int getSocksVersion()
This value is the version of the SOCKS server. The valid values are 4, 5 and -1. The default value is -1, indicating an unknown version.
public void setSocksServerPort(int newSocksServerPort) throws FtpFileException
The port number to use on the SOCKS server when connecting to it. The default value is 1080.
newSocksServerPort
- The SOCKS server port.
FtpFileException
- If some error occurs.public void setSocksVersion(int newSocksVersion) throws FtpFileException
This value is the version of the SOCKS server. The valid values are 4, 5 and -1. The default value is -1, indicating an unknown version.
newSocksVersion
- The SOCKS Version.
FtpFileException
- If some error occurs.public java.lang.String getClientClassName()
This value is an advanced setting that allows for user extensibility.
You can provide your own implementation class name. This class must implement the interface com.stc.eways.batchext.FtpFileClient or extend the class, com.stc.eways.batchext.FtpFileClientImpl. You can overwrite or inherit any method you want.
This value is optional but, if supplied, the full class name must be given, for example: com.mycompany.MyFtpFileClientImpl
public java.lang.String getUserPropertyFile()
This value is an advanced setting and is part of the user-extensibility features.
This option allows you to specify a Java properties file. It is optional but, if supplied, the full path must be given. If a file name is supplied, it is loaded as a Java properties object. This object can be used in your implementation class or in your Collaboration Rules.
The file is loaded by Java directly and is not interpreted by e*Gate or the e*Way in any way. Therefore, the file must be in the format of standard Java properties file. The file can be created manually in a text editor or on the fly, as long as it exists before the initialization of the e*Way at run time.
For more information, see the e*Way's user's guide.
public void setClientClassName(java.lang.String newClientClassName) throws FtpFileException
This value is an advanced setting that allows for user extensibility.
You can provide your own implementation class name. This class must implement the interface com.stc.eways.batchext.FtpFileClient or extend the class, com.stc.eways.batchext.FtpFileClientImpl. You can overwrite or inherit any method you want.
This value is optional but, if supplied, the full class name must be given, for example: com.mycompany.MyFtpFileClientImpl
newClientClassName
- The client class name.
FtpFileException
- If some error occurs.public void setUserPropertyFile(java.lang.String newUserPropertyFile) throws FtpFileException
This value is an advanced setting and is part of the user-extensibility features.
This option allows you to specify a Java properties file. It is optional but, if supplied, the full path must be given. If a file name is supplied, it is loaded as a Java properties object. This object can be used in your implementation class or in your Collaboration Rules.
The file is loaded by Java directly and is not interpreted by e*Gate or the e*Way in any way. Therefore, the file must be in the format of standard Java properties file. The file can be created manually in a text editor or on the fly, as long as it exists before the initialization of the e*Way at run time.
For more information, see the e*Way's user's guide.
newUserPropertyFile
- The user properties file name.
FtpFileException
- If some error occurs.public boolean getUsePASV()
Normally, when you connect to an FTP site, the site establishes the data connection to your computer. However, some FTP sites allow passive data transfers, meaning that your computer establishes the data connection. By default, the passive mode is turned on; and it is recommended that you use it for data transfers to and from FTP sites that support it.
The passive mode may be required in the following instances:
- For users on networks behind some types of router-based firewalls
- For users on networks behind a gateway requiring passive data transfers
- If transfers are erratic
- If you keep getting failed data-channel errors
public java.lang.String getSocksHostName()
public java.lang.String getSocksUserName()
The SOCKS user name is the ID used to log into the SOCKS server. The default value is empty.
public void setSocksEncryptedPassword(java.lang.String newSocksPassword) throws FtpFileException
The input password is an encrypted password. You must use another method, setSocksPassword(String socksPassword), if the input is a non-encrypted password.
newSocksPassword
- The encrypted socksPassword.
FtpFileException
public void setSocksHostName(java.lang.String newSocksHostName)
This value is the name of the SOCKS server that the e*Way connects to. The value can be either an IP address or a logical host name. The default value is empty, that is, no SOCKS server is used.
newSocksHostName
- The SOCKS host name.public void setSocksPassword(java.lang.String newSocksPassword)
The input password is a non-encrypted password. You must use another method, setSocksEncryptedPassword(String socksPassword), if the input is an encrypted password.
newSocksPassword
- The non-encrypted SOCKS password.public void setSocksUserName(java.lang.String newSocksUserName) throws FtpFileException
This user name is the ID used to log into the SOCKS server. The default value is empty.
newSocksUserName
- The SOCKS user name.
FtpFileException
- If some error occurs.public boolean getSocksEnabled()
public boolean isSocksEnabled()
public void setSocksEnabled(boolean newSocksEnabled)
newSocksEnabled
- true or falsepublic int getCommandConnectionTimeout()
public int getDataConnectionTimeout()
public void setCommandConnectionTimeout(int newCommandConnectionTimeout)
newCommandConnectionTimeout
- The command connection timeout.public void setDataConnectionTimeout(int newDataConnectionTimeout)
newDataConnectionTimeout
- The data connection timeout.public java.util.Properties getUserProperties()
This value is an advanced setting and is part of the user extensibility features.
The properties are from the user properties file.
public java.lang.String getProviderClassName()
This value is an advanced setting that allows for user extensibility.
You can provide your own implementation class name. This class must implement the interface com.stc.eways.batchext.FtpFileProvider or extend the class, com.stc.eways.batchext.FtpFileProviderImpl. You can overwrite or inherit any method you want.
This value is optional but, if supplied, the full class name must be given, for example: com.mycompany.MyFtpFileProviderImpl
public void setTargetDirectoryNameIsPattern(boolean newTargetDirectoryNameIsPattern)
newDirectoryPatternOrLiteral
- The true or falsepublic boolean getAppend()
This value is for outbound data transactions only. You can only overwrite or append a remote file if it exists already. If a file with the same name does not exist, both the append and overwrite operations create a new file on the remote FTP system. The values are either Overwrite or Append. The default value is Overwrite.
public java.lang.String getPostTransferCommand()
This command is executed after a file has been successfully retrieved from or sent to a remote FTP host. The following actions can be performed on the remote file copy:
Delete: Deletes the file from the remote host.
Rename: Renames the file.
None: Does nothing, that is, leaves the file on the remote host intact.
public java.lang.String getPostDirectoryName()
Special characters are allowed. The expansion of any special characters is carried out each time this parameter is used.
public boolean getPostDirectoryNameIsPattern()
public java.lang.String getPreTransferCommand()
This command is executed before a file has been successfully retrieved from or sent to a remote FTP host. The following actions can be performed on the remote file copy:
Rename: Renames the file on the remote host.
Copy: Copies the file.
None: Does nothing, that is, leaves the file on the remote host intact.
public java.lang.String getPreDirectoryName()
Special characters are allowed. The expansion of any special characters is carried out each time this parameter is used.
public boolean getPreDirectoryNameIsPattern()
public boolean getTargetDirectoryNameIsPattern()
public java.lang.String getTransactionType()
public java.lang.String getStatePersistenceBaseLocation()
public void setAppend(boolean newAppend)
This value is for outbound data transactions only. You can only overwrite or append a remote file if it exists already. If a file with the same name does not exist, both the append and overwrite operations create a new file on the remote FTP system. The values are either Overwrite or Append. The default value is Overwrite.
newOverwriteOrAppend
- The overwrite or append status.public void setPostTransferCommand(java.lang.String newPostTransferCommand) throws FtpFileException
This command is executed after a file has been successfully retrieved from or sent to a remote FTP host. The following actions can be performed on the remote file copy:
Delete: Deletes the file from the remote host.
Rename: Renames the file.
None: Does nothing, that is, leaves the file on the remote host intact.
newPostTransferCommand
- The post transfer command.
FtpFileException
- If some error occurs.public void setPostDirectoryName(java.lang.String newPostDirectoryName)
Special characters are allowed. The expansion of any special characters is carried out each time this parameter is used.
newPostDirectoryName
- The post directory name.public void setPostDirectoryNameIsPattern(boolean newPostDirectoryNameIsPattern)
newPostDirectoryNameIsPattern
- true or falsepublic void setPreTransferCommand(java.lang.String newPreTransferCommand) throws FtpFileException
This command is executed before a file has been successfully retrieved from or sent to a remote FTP host. The following actions can be performed on the remote file copy:
Rename: Renames the file on the remote host.
Copy: Copies the file.
None: Does nothing, that is, leaves the file on the remote host intact.
newPreTransferCommand
- The pre transfer command.
FtpFileException
- If some error occurs.public void setPreDirectoryName(java.lang.String newPreDirectoryName)
Special characters are allowed. The expansion of any special characters is carried out each time this parameter is used.
newPreDirectoryName
- The pre directory name.public void setPreDirectoryNameIsPattern(boolean newPreDirectoryNameIsPattern)
newPreDirectoryNameIsPattern
- true or falsepublic void setProviderClassName(java.lang.String newProviderClassName) throws FtpFileException
This value is an advanced setting that allows for user extensibility.
You can provide your own implementation class name. This class must implement the interface com.stc.eways.batchext.FtpFileProvider or extend the class, com.stc.eways.batchext.FtpFileProviderImpl. You can overwrite or inherit any method you want.
This value is optional but, if supplied, the full class name must be given, for example: com.mycompany.MyFtpFileProviderImpl
newProviderClassName
- The provider class name.
FtpFileException
- If some error occurs.public void setTargetFileNameIsPattern(boolean newTargetFileNameIsPattern)
newTargetFileNameIsPattern
- true or falsepublic java.lang.String getConnectionEstablishmentMode()
public java.lang.String getConnectionMode()
public long getConnectionInactivityTimeout()
public long getConnectionVerificationInterval()
public void initialConfigValues(java.util.Properties props) throws FtpFileException
props
- The properties.
FtpFileException
- If some error occurs.protected void reset() throws FtpFileException
FtpFileException
public boolean isAppend()
This value is for outbound data transfer only. You can only overwrite or append a remote file if it exists already. If a file with the same name does not exist, both the append and overwrite operations create a new file on the remote FTP system. The values are either Overwrite or Append. The default value is Overwrite.
public boolean isPostDirectoryNameIsPattern()
public boolean isPreDirectoryNameIsPattern()
public boolean isTargetDirectoryNameIsPattern()
public boolean getTargetFileNameIsPattern()
public boolean getSSHChannelEstablished()
public java.lang.String getSSHCommandLine()
public java.lang.String getSSHListenHost()
public int getSSHListenPort()
public boolean getSSHTunnelingEnabled()
Through an SSH tunnel, the FTP command connection is protected. This mechanism is based on an existing SSH port-forwarding configuration. You must configure the SSH port forwarding on the SSH listening host before starting the e*Way. Use a command line like the following example: ssh -L ListenPort:FtpServerHost:FtpServerPort SSHServer For another example, on the eGate client host (localhost), you could issue a command such as: ssh -L 4567:atlas:21 atlas
public java.lang.String getSSHUserName()
public boolean isSSHChannelEstablished()
public boolean isSSHTunnelingEnabled()
Through an SSH tunnel, the FTP command connection is protected. This mechanism is based on an existing SSH port-forwarding configuration. You must configure the SSH port forwarding on the SSH listening host before starting the e*Way. Use a command line like the following example: ssh -L ListenPort:FtpServerHost:FtpServerPort SSHServer For another example, on the eGate client host (localhost), you could issue a command such as: ssh -L 4567:atlas:21 atlas
public void setSSHChannelEstablished(boolean newSshChannelEstablished)
newSshChannelEstablished
- true or falsepublic void setSSHCommandLine(java.lang.String newSshCommandLine) throws FtpFileException
newSshCommandLine
- The SSH command line.
FtpFileException
- If some error occurs.public void setSSHEncryptedPassword(java.lang.String newSshPassword) throws FtpFileException
The input password is an encrypted password. You must use another method, setSshPassword(String sshPassword), if the input is a non-encrypted password.
newSshPassword
- The encrypted sshPassword.
FtpFileException
public void setSSHListenHost(java.lang.String newSshListenHost) throws FtpFileException
newSshListenHost
- The SSH listen host name.
FtpFileException
- If some error occurs.public void setSSHListenPort(int newSshListenPort) throws FtpFileException
newSshListenPort
- The SSH listen port.
FtpFileException
- If some error occurs.public void setSSHPassword(java.lang.String newSshPassword)
The input password is a non-encrypted password. You must use another method, setSshEncryptedPassword(String sshPassword), if the input is an encrypted password.
newSshPassword
- The non-encrypted SSH password.public void setSSHTunnelingEnabled(boolean newSshTunnelingEnabled)
newSshTunnelingEnabled
- true or falsepublic void setSSHUserName(java.lang.String newSshUserName) throws FtpFileException
newSshUserName
- The SSH user name.
FtpFileException
- If some error occurs.public boolean isConnectionModeAuto()
public boolean isConnectionModeManual()
public boolean isConnectionEstablishmentModeAutomatic()
public boolean isConnectionEstablishmentModeManual()
public boolean isConnectionEstablishmentModeOnDemand()
public boolean isModeAscii()
public boolean isModeBinary()
public boolean isModeEbcdic()
public boolean isPostTransferCommandDelete()
public boolean isPostTransferCommandNone()
public boolean isPostTransferCommandRename()
public boolean isPreTransferCommandCopy()
public boolean isPreTransferCommandNone()
public boolean isPreTransferCommandRename()
public boolean isSocksVersion4()
public boolean isSocksVersion5()
public boolean isSocksVersionUnknown()
public boolean isTransactionTypeNonXA()
public boolean isTransactionTypeXA()
public java.lang.String getPostFileName()
Special characters are allowed. The expansion of any special characters are carried out each time this parameter is used.
public boolean getPostFileNameIsPattern()
This value indicates whether the post file name is a pattern or a literal name.
public java.lang.String getPreFileName()
Special characters are allowed. The expansion of any special characters are carried out each time this parameter is used.
public boolean getPreFileNameIsPattern()
public boolean isPostFileNameIsPattern()
public boolean isPreFileNameIsPattern()
public boolean isTargetFileNameIsPattern()
public void setPostFileName(java.lang.String newPostFileName)
Special characters are allowed. The expansion of any special characters are carried out each time this parameter is used.
newPostFileName
- The Post File Name.public void setPostFileNameIsPattern(boolean newPostFileNameIsPattern)
newPostFileNameIsPattern
- true or falsepublic void setPreFileName(java.lang.String newPreFileName)
Special characters are allowed. The expansion of any special characters are carried out each time this parameter is used.
newPreFileName
- The Pre File Name.public void setPreFileNameIsPattern(boolean newPreFileNameIsPattern)
newPreFileNameIsPattern
- true or falsepublic FtpFileConfiguration getConnector()
public java.lang.String getEncryptedPassword() throws FtpFileException
This value is the encrypted password that corresponds to the current user name. There is no default value.
FtpFileException
public FtpFileConfiguration getExtensions()
public FtpFileConfiguration getFtp()
public FtpFileConfiguration getFTPRawCommands()
public FtpFileConfiguration getGeneralSettings()
public FtpFileConfiguration getPostTransfer()
public FtpFileConfiguration getPreTransfer()
public FtpFileConfiguration getSequenceNumbering()
public boolean getShareConnectorWithinCollaboration()
public FtpFileConfiguration getSOCKS()
public java.lang.String getSocksEncryptedPassword() throws FtpFileException
This value is the encrypted SOCKS password that corresponds to the SOCKS user name. There is no default value.
FtpFileException
public java.lang.String getSSHEncryptedPassword() throws FtpFileException
This value is the encrypted SSH password that corresponds to the SSH user name. There is no default value.
FtpFileException
public FtpFileConfiguration getSSHTunneling()
public FtpFileConfiguration getTargetLocation()
public FtpFileConfiguration getDynamicConfiguration()
public boolean isShareConnectorWithinCollaboration()
public void setPublishStatusRecordOnSuccess(boolean newPublishStatusRecordOnSuccess)
newPublishStatusRecordOnSuccess
- true or false.public boolean getPublishStatusRecordOnSuccess()
public void setPublishStatusRecordOnError(boolean newPublishStatusRecordOnError)
newPublishStatusRecordOnError
- true or false.public boolean getPublishStatusRecordOnError()
public void setIncludeOrderRecordInErrorRecord(boolean newIncludeOrderRecordInErrorRecord)
newIncludeOrderRecordInErrorRecord
- true or false.public boolean getIncludeOrderRecordInErrorRecord()
public void setIncludePayloadInErrorRecord(boolean newIncludePayloadInErrorRecord)
newIncludePayloadInErrorRecord
- true or false.public boolean getIncludePayloadInErrorRecord()
public void setActionOnMalformedCommand(java.lang.String newActionOnMalformedCommand)
newActionOnMalformedCommand
- The Action on Malformed Command. Valid entries include Exit, Ignore, Raise alert, and Publish error record.public java.lang.String getActionOnMalformedCommand()
public void setUserHeuristicsLocation(java.lang.String userHeuristicLoc)
public java.lang.String getUserHeuristicsLocation()
public void setMaxRetry(long aRetry)
public long getMaxRetry()
public void setRetryInterval(long aInterval)
public long getRetryInterval()
protected void setSynchronized(boolean b)
public boolean getSynchronized()
protected java.lang.String getOID()
protected java.lang.String getExternalName()
public java.util.Properties getChangedParameters()
public java.util.Properties getAllParamChangeRequested()
public boolean isConnectionParameterChanged()
|
Sun Adapter for Batch/FTP | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |