public class R66PreparedTransferExecutor extends AbstractExecutor
Format is like r66send command in any order except "-info" which should be
the last item:
"-to Host -file FILE -rule RULE [-md5] [-nolog] [-start yyyyMMddHHmmss or
-delay (delay or +delay)] [-info
INFO]"
INFO is the only one field that can contains blank character.
The following replacement are done dynamically before the command is
executed:
- #BASEPATH# is replaced by the full path for the root of FTP Directory
- #FILE# is replaced by the current file path relative to FTP Directory (so
#BASEPATH##FILE# is the full
path of the file)
- #USER# is replaced by the username
- #ACCOUNT# is replaced by the account
- #COMMAND# is replaced by the command issued for the file
- #SPECIALID# is replaced by the FTP id of the transfer (whatever in or
out)
- #UUID# is replaced by a special UUID globally unique for the transfer, in
general to be placed in -info
part (for instance ##UUID## giving #uuid#)
So for instance "-to Host -file #BASEPATH##FILE# -rule RULE [-md5] [-nolog]
[-delay +delay] [-info ##UUID##
#USER# #ACCOUNT# #COMMAND# INFO]"
will be a standard use of this function.
AbstractExecutor.CommandExecutor
Modifier and Type | Field and Description |
---|---|
protected int |
blocksize |
protected DbSession |
dbsession |
protected String |
fileinfo |
protected String |
filename |
protected WaarpFuture |
future |
protected boolean |
isMD5 |
protected boolean |
nolog |
protected String |
remoteHost |
protected String |
rulename |
protected Timestamp |
timestart |
ACCOUNT, BASEPATH, BLANK, COMMAND, commandExecutor, EXECUTE, FILE, JAVAEXECUTE, NONE, R66PREPARETRANSFER, REFUSED, SPECIALID, sUUID, tEXECUTE, tJAVAEXECUTE, tNONE, tR66PREPARETRANSFER, tREFUSED, useDatabase, useLocalExec, USER
Constructor and Description |
---|
R66PreparedTransferExecutor(String command,
long delay,
WaarpFuture futureCompletion) |
Modifier and Type | Method and Description |
---|---|
void |
run() |
void |
setDbsession(DbSession dbsession) |
createAbstractExecutor, getCommandExecutor, getPreparedCommand, initializeExecutor, isValidOperation, replace, replaceAll
protected final WaarpFuture future
protected String filename
protected String rulename
protected String fileinfo
protected boolean isMD5
protected boolean nolog
protected Timestamp timestart
protected String remoteHost
protected int blocksize
protected DbSession dbsession
public R66PreparedTransferExecutor(String command, long delay, WaarpFuture futureCompletion)
command
- delay
- futureCompletion
- public void setDbsession(DbSession dbsession)
dbsession
- the dbsession to setpublic void run() throws CommandAbstractException
run
in class AbstractExecutor
CommandAbstractException
Copyright © 2009–2020 Waarp. All rights reserved.