public class S3PutTask extends S3AbstractTask
Result of arguments will be as a S3 PUT 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 unchanged
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 |
---|
S3PutTask(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 unchanged |
finalizeInError, getParams
applyTransferSubstitutions, getFutureCompletion, getReplacedValue, getSubstitutionMap, getType, isCompressionRequested, isSuccess
public S3PutTask(String argRule, int delay, String argTransfer, R66Session session)
argRule
- delay
- argTransfer
- session
- public void run()
public S3TaskFactory.S3TaskType getS3TaskType()
getS3TaskType
in class S3AbstractTask
Copyright © 2009–2022 Waarp. All rights reserved.