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 and MUST be
the last argument.
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 WaarpFuture |
future |
protected boolean |
nolog |
protected TransferArgs |
transferArgs |
ACCOUNT, BASEPATH, BLANK, COMMAND, commandExecutor, EXECUTE, FILE, JAVAEXECUTE, NONE, R66PREPARETRANSFER, REFUSED, S_UUID, SPECIALID, T_EXECUTE, T_JAVAEXECUTE, T_NONE, T_R_66_PREPARETRANSFER, T_REFUSED, useDatabase, useLocalExec, USER
Constructor and Description |
---|
R66PreparedTransferExecutor(String command,
long delay,
WaarpFuture futureCompletion)
Transfer arguments:
-to (-id (-file -rule [-block [-nofollow] Specify the transfer should not integrate a FOLLOW id [-md5] Specify the option to have a hash computed for the transfer [-delay [-start [-info [-nolog] Specify to not log anything included database once the transfer is done [-notlogWarn | Specify to log final result as Info if OK -logWarn] Specify to log final result as Warn if OK |
Modifier and Type | Method and Description |
---|---|
void |
run() |
createAbstractExecutor, getCommandExecutor, getPreparedCommand, initializeExecutor, isValidOperation, replace, replaceAll
protected final WaarpFuture future
protected final TransferArgs transferArgs
protected boolean nolog
public R66PreparedTransferExecutor(String command, long delay, WaarpFuture futureCompletion)
command
- transfer argumentsdelay
- delayfutureCompletion
- future for completionpublic final void run() throws CommandAbstractException
run
in class AbstractExecutor
CommandAbstractException
Copyright © 2009–2022 Waarp. All rights reserved.