|
||||||||||
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.UploadFtpPostStep
public class UploadFtpPostStep
Post-processing step to upload the current workflow file on an FTP server.
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:
Here is an example of how to define this custom step in the TCC configuration file:
Field Summary | |
---|---|
protected com.taleo.ws.integration.client.GlobalConfig |
config
Deprecated. The global config. |
protected boolean |
failOnError
Deprecated. The failOnError flag. |
protected String |
filename
Deprecated. The filename. |
protected String |
host
Deprecated. The FTP host. |
protected int |
nbRetries
Deprecated. The number of retries. |
protected String |
password
Deprecated. The FTP password (AES128 encrypted or clear). |
protected int |
port
Deprecated. The FTP port. |
protected String |
remoteDirectory
Deprecated. The FTP remote directory. |
protected int |
retryFactor
Deprecated. The retry factor. |
protected int |
retryInterval
Deprecated. The interval between retries, in seconds. |
protected String |
username
Deprecated. 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 | |
---|---|
UploadFtpPostStep()
Deprecated. Constructor without arguments. |
Method Summary | |
---|---|
void |
execute(com.taleo.ws.integration.client.Pipeline pipeline)
Deprecated. |
String |
getDescription()
Deprecated. |
String |
getFilename()
Deprecated. Get the filename. |
String |
getHost()
Deprecated. Get the FTP host. |
String |
getIdentifier()
Deprecated. |
String |
getName()
Deprecated. |
int |
getNbRetries()
Deprecated. Get the number of retries. |
String |
getPassword()
Deprecated. Get the FTP password. |
int |
getPort()
Deprecated. Get the FTP port. |
String |
getRemoteDirectory()
Deprecated. Get the FTP remote directory. |
int |
getRetryFactor()
Deprecated. Get the retry factor. |
int |
getRetryInterval()
Deprecated. Get the retry interval, in seconds. |
String |
getUsername()
Deprecated. Get the FTP username. |
void |
init(com.taleo.ws.integration.client.GlobalConfig config)
Deprecated. |
boolean |
isFailOnError()
Deprecated. Get the FailOnError flag. |
void |
setFailOnError(boolean failOnError)
Deprecated. Set the FailOnError flag. |
void |
setFilename(String filename)
Deprecated. Set the filename. |
void |
setHost(String host)
Deprecated. Set the FTP host. |
void |
setNbRetries(int nbRetries)
Deprecated. Set the number of retries. |
void |
setPassword(String password)
Deprecated. Set the FTP password. |
void |
setPort(int port)
Deprecated. Set the FTP port. |
void |
setRemoteDirectory(String remoteDirectory)
Deprecated. Set the FTP remote directory. |
void |
setRetryFactor(int retryFactor)
Deprecated. Set the retry factor. |
void |
setRetryInterval(int retryInterval)
Deprecated. Set the retry interval, in seconds. |
void |
setUsername(String username)
Deprecated. Set the FTP username. |
void |
upload(File file,
String targetFilename)
Deprecated. Upload the file to the FTP server. |
Methods inherited from class com.taleo.integration.client.customstep.BaseCustomStep |
---|
getEncoding, isActive, registerParameterName, setActive, setEncoding, validateParameterNames |
Methods inherited from class com.taleo.integration.client.step.BaseCustomStep |
---|
getSupportedPipeline, getType, init |
Methods inherited from class com.taleo.integration.client.step.BaseStep |
---|
getAllProcessSupportPipeline, getCurrentFile, getCurrentFile, getCurrentMessage, getPostProcessSupportPipeline, getPreProcessSupportPipeline, 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 |
---|
validatePipeline |
Field Detail |
---|
protected com.taleo.ws.integration.client.GlobalConfig config
protected String host
protected int port
protected String username
protected String password
protected String remoteDirectory
protected String filename
protected boolean failOnError
protected int nbRetries
protected int retryInterval
protected int retryFactor
Constructor Detail |
---|
public UploadFtpPostStep()
Method Detail |
---|
public String getHost()
public void setHost(String host)
host
- public String getPassword()
public void setPassword(String password)
password
- public int getPort()
public void setPort(int port)
port
- public String getRemoteDirectory()
public void setRemoteDirectory(String remoteDirectory)
remoteDirectory
- public String getFilename()
public void setFilename(String filename)
filename
- public String getUsername()
public void setUsername(String username)
username
- public boolean isFailOnError()
public void setFailOnError(boolean failOnError)
failOnError
- 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 String getIdentifier()
getIdentifier
in interface com.taleo.integration.client.step.CustomStep
getIdentifier
in interface com.taleo.integration.client.step.Step
getIdentifier
in class com.taleo.integration.client.step.BaseCustomStep
public String getDescription()
getDescription
in interface com.taleo.integration.client.step.CustomStep
getDescription
in interface com.taleo.integration.client.step.Step
getDescription
in class com.taleo.integration.client.step.BaseCustomStep
public String getName()
getName
in interface com.taleo.integration.client.step.CustomStep
getName
in interface com.taleo.integration.client.step.Step
getName
in class com.taleo.integration.client.step.BaseCustomStep
public void init(com.taleo.ws.integration.client.GlobalConfig config)
init
in class BaseCustomStep
public void execute(com.taleo.ws.integration.client.Pipeline pipeline) throws com.taleo.integration.client.step.StepException
com.taleo.integration.client.step.StepException
public void upload(File file, String targetFilename) throws Exception
file
- The file to upload.targetFilename
- The target file name.
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |