public class S3GetAndDeleteTask extends S3GetTask
Result of arguments will be as a S3 GET command.
Format is the following:
"-URL url of S3 service
-accessKey access Key for S3 service
-secretKey secret Key for S3 service
-bucketName bucket Name where to retrieve the object
-sourceName source Name from the bucket to select the final Object
-file final File path (absolute or relative from IN path)
[-getTags [* or list of tag names comma separated without space]]"
The order of actions will be:
1) connection to S3 service using access Key and Secret Key
2) Retrieve from the bucket the source Object and store it in the file specified
3) if getTags is true, the informations are added to transferInfo and fileInfo
4) the current File is set to this new GET file
5) the sender send an update on file information (name and size)
6) the remote S3 Object is deleted
ARCHPATH, BLANK, BLOCKSIZE, COMPRESS, DATE, ERRORCODE, ERRORMSG, ERRORSTRCODE, FILESIZE, FULLTRANSFERID, HOMEPATH, HOUR, INPATH, LOCALEXEC, LOCALHOST, LOCALHOSTADDR, NOWAIT, ORIGINALFILENAME, ORIGINALFULLPATH, OUTPATH, RANKTRANSFER, REMOTEHOST, REMOTEHOSTADDR, REQUESTEDHOST, REQUESTERHOST, RULE, TRANSFERID, TRUEFILENAME, TRUEFULLPATH, WORKPATH
Constructor and Description |
---|
S3GetAndDeleteTask(String argRule,
int delay,
String argTransfer,
R66Session session)
Constructor
|
Modifier and Type | Method and Description |
---|---|
S3TaskFactory.S3TaskType |
getS3TaskType() |
void |
run()
The order of actions will be:
1) connection to S3 service using access Key and Secret Key 2) Retrieve from the bucket the source Object and store it in the file specified 3) if getTags is true, the informations are added to transferInfo and fileInfo 4) the current File is set to this new GET file 5) the sender send an update on file information (name and size) 6) the remote S3 Object is deleted |
finalizeInError, getParams
applyTransferSubstitutions, getFutureCompletion, getReplacedValue, getSubstitutionMap, getType, isCompressionRequested, isSuccess
public S3GetAndDeleteTask(String argRule, int delay, String argTransfer, R66Session session)
argRule
- delay
- argTransfer
- session
- public void run()
public final S3TaskFactory.S3TaskType getS3TaskType()
getS3TaskType
in class S3GetTask
Copyright © 2009–2022 Waarp. All rights reserved.