|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.taleo.integration.client.step.BaseStep
com.taleo.integration.client.step.BaseCustomStep
com.taleo.integration.client.customstep.BaseCustomStep
com.taleo.integration.client.customstep.ftp.BaseSftpStep
public abstract class BaseSftpStep
Abstract class for SFTP steps.
This step takes all parameters from its base class
BaseCustomStep
and the
following additional parameters:
retryInterval
between each attempt. It multiplies the last time
waited by this amount. For example. if retryInterval
is 10
seconds and the retry factor is 2, wait time will be successively 10, 20, 40
seconds and so on, until the maximum number of retries has been reached
(default: 1).This class is dependent on:
Field Summary | |
---|---|
protected java.lang.String |
host
The FTP host. |
protected int |
nbRetries
The number of retries. |
protected java.lang.String |
password
The FTP password (AES128 encrypted or clear). |
protected int |
port
The FTP port. |
protected java.lang.String |
proxyHost
The proxy host. |
protected int |
proxyPort
The proxy port. |
protected java.lang.String |
remoteDirectory
The FTP remote directory. |
protected int |
retryFactor
The retry factor. |
protected int |
retryInterval
The interval between retries, in seconds. |
protected java.lang.String |
username
The FTP username. |
Fields inherited from class com.taleo.integration.client.customstep.BaseCustomStep |
---|
parameterNames |
Fields inherited from class com.taleo.integration.client.step.BaseCustomStep |
---|
parameters |
Fields inherited from class com.taleo.integration.client.step.BaseStep |
---|
commType, ERROR_NULL_GLOBAL_CONFIG, ERROR_NULL_PIPELINE, ERROR_NULL_STEP_CONFIG, productCode, tempFolder, type, version |
Constructor Summary | |
---|---|
BaseSftpStep()
Constructor without arguments. |
Method Summary | |
---|---|
java.lang.String |
getHost()
Get the FTP host. |
int |
getNbRetries()
Get the number of retries. |
java.lang.String |
getPassphrase()
Get the passphrase. |
java.lang.String |
getPassword()
Get the FTP password. |
int |
getPort()
Get the FTP port. |
java.lang.String |
getPrivateKey()
Get the private key. |
java.lang.String |
getProxyHost()
Get the proxy host. |
int |
getProxyPort()
Get the proxy port. |
java.lang.String |
getRemoteDirectory()
Get the FTP remote directory. |
int |
getRetryFactor()
Get the retry factor. |
int |
getRetryInterval()
Get the retry interval, in seconds. |
protected com.jcraft.jsch.ChannelSftp |
getSftpChannel()
Get the SFTP channel. |
java.lang.String |
getUsername()
Get the FTP username. |
void |
init(com.taleo.ws.integration.client.GlobalConfig config)
|
protected void |
logout()
Log out the SFTP Channel. |
void |
setHost(java.lang.String host)
Set the FTP host. |
void |
setNbRetries(int nbRetries)
Set the number of retries. |
void |
setPassphrase(java.lang.String passphrase)
Set the passphrase. |
void |
setPassword(java.lang.String password)
Set the FTP password. |
void |
setPort(int port)
Set the FTP port. |
void |
setPrivateKey(java.lang.String privateKey)
Set the private key. |
void |
setProxyHost(java.lang.String proxyHost)
Set the proxy host. |
void |
setProxyPort(int proxyPort)
Set the proxy port. |
void |
setRemoteDirectory(java.lang.String remoteDirectory)
Set the FTP remote directory. |
void |
setRetryFactor(int retryFactor)
Set the retry factor. |
void |
setRetryInterval(int retryInterval)
Set the retry interval, in seconds. |
void |
setUsername(java.lang.String username)
Set the FTP username. |
Methods inherited from class com.taleo.integration.client.customstep.BaseCustomStep |
---|
createTempFile, createTempFile, getEncoding, getTempFolder, isActive, registerParameterName, setActive, setEncoding, validateParameterNames |
Methods inherited from class com.taleo.integration.client.step.BaseCustomStep |
---|
getDescription, getIdentifier, getName, getSupportedPipeline, getType, init |
Methods inherited from class com.taleo.integration.client.step.BaseStep |
---|
getAllProcessSupportPipeline, getCurrentFile, getCurrentFile, getCurrentMessage, getPostProcessSupportPipeline, getPreProcessSupportPipeline, isOriginalFile, validateLastStepType, validateMessageType, validatePipeline |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.taleo.integration.client.step.Step |
---|
execute, validatePipeline |
Field Detail |
---|
protected java.lang.String host
protected int port
protected java.lang.String username
protected java.lang.String password
protected java.lang.String remoteDirectory
protected int nbRetries
protected int retryInterval
protected int retryFactor
protected java.lang.String proxyHost
protected int proxyPort
Constructor Detail |
---|
public BaseSftpStep()
Method Detail |
---|
public java.lang.String getHost()
public void setHost(java.lang.String host)
host
- public java.lang.String getPassword()
public void setPassword(java.lang.String password)
password
- public int getPort()
public void setPort(int port)
port
- public java.lang.String getRemoteDirectory()
public void setRemoteDirectory(java.lang.String remoteDirectory)
remoteDirectory
- public java.lang.String getUsername()
public void setUsername(java.lang.String username)
username
- public int getNbRetries()
public void setNbRetries(int nbRetries)
nbRetries
- public int getRetryInterval()
public void setRetryInterval(int retryInterval)
retryInterval
- public int getRetryFactor()
public void setRetryFactor(int retryFactor)
retryFactor
- public java.lang.String getPrivateKey()
public void setPrivateKey(java.lang.String privateKey)
privateKey
- public java.lang.String getPassphrase()
public void setPassphrase(java.lang.String passphrase)
passphrase
- public java.lang.String getProxyHost()
public void setProxyHost(java.lang.String proxyHost)
proxyHost
- public int getProxyPort()
public void setProxyPort(int proxyPort)
proxyPort
- public void init(com.taleo.ws.integration.client.GlobalConfig config)
init
in class BaseCustomStep
protected com.jcraft.jsch.ChannelSftp getSftpChannel() throws com.jcraft.jsch.JSchException, java.io.IOException
java.io.IOException
com.jcraft.jsch.JSchException
protected void logout()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |