public class S3PutAndR66DeleteTask extends S3PutTask
Result of arguments will be as a S3 PUT and R66 DELETE 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
-targetName source Name from the bucket to select the final Object
[-setTags 'name:value,...' without space]"
The order of actions will be:
1) connection to S3 service using access Key and Secret Key
2) Store to the bucket the current File as the target Object
3) if setTags is set, the informations are added as tags to the final S3 Object
4) the current File 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 |
---|
S3PutAndR66DeleteTask(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) Store to the bucket the current File as the target Object 3) if setTags is set, the informations are added as tags to the final S3 Object 4) the current File is deleted |
finalizeInError, getParams
applyTransferSubstitutions, getFutureCompletion, getReplacedValue, getSubstitutionMap, getType, isCompressionRequested, isSuccess
public S3PutAndR66DeleteTask(String argRule, int delay, String argTransfer, R66Session session)
argRule
- delay
- argTransfer
- session
- public void run()
public S3TaskFactory.S3TaskType getS3TaskType()
getS3TaskType
in class S3PutTask
Copyright © 2009–2022 Waarp. All rights reserved.