Package org.cdlib.mrt.s3v2.action
Class ReadToS3
java.lang.Object
org.cdlib.mrt.s3v2.action.ReadToS3
Before running this Java V2 code example, set up your development
environment, including your credentials.
For more information, see the following documentation topic:
https://docs.aws.amazon.com/sdk-for-java/latest/developer-guide/get-started.html
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected ChecksumHandlerprotected static final booleanprotected String[]protected Stringprotected longprotected longprotected Stringprotected static final org.apache.logging.log4j.Loggerprotected RetrieveResponseprotected software.amazon.awssdk.services.s3.S3Clientprotected S3Reader -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoUpload()static ReadToS3getReadToS3(software.amazon.awssdk.services.s3.S3Client s3, String bucketName, String keyName, String[] digestTypesS, S3Reader s3Reader) booleanisExec()voidsetExec(boolean exec) uploadFile(Map<String, String> metadata) uploadFileParts(Map<String, String> metadata) protected voidvalidateWrite(RetrieveResponse response)
-
Field Details
-
log4j
protected static final org.apache.logging.log4j.Logger log4j -
DEBUG
protected static final boolean DEBUG- See Also:
-
s3
protected software.amazon.awssdk.services.s3.S3Client s3 -
bucketName
-
s3Reader
-
keyName
-
digestTypesS
-
checksumHandler
-
inObjectSize
protected long inObjectSize -
response
-
fillSha256
-
fillSize
protected long fillSize
-
-
Constructor Details
-
Method Details
-
getReadToS3
public static ReadToS3 getReadToS3(software.amazon.awssdk.services.s3.S3Client s3, String bucketName, String keyName, String[] digestTypesS, S3Reader s3Reader) throws org.cdlib.mrt.utility.TException - Throws:
org.cdlib.mrt.utility.TException
-
doUpload
- Throws:
org.cdlib.mrt.utility.TException
-
validateWrite
- Throws:
org.cdlib.mrt.utility.TException
-
uploadFile
public RetrieveResponse uploadFile(Map<String, String> metadata) throws org.cdlib.mrt.utility.TException- Throws:
org.cdlib.mrt.utility.TException
-
uploadFileParts
public RetrieveResponse uploadFileParts(Map<String, String> metadata) throws org.cdlib.mrt.utility.TException- Throws:
org.cdlib.mrt.utility.TException
-
isExec
public boolean isExec() -
setExec
public void setExec(boolean exec) -
getResponse
-
getFillSha256
-
getFillSize
-
getChecksumHandler
-