Package org.cdlib.mrt.s3v2.tools
Class S3ToS3
java.lang.Object
org.cdlib.mrt.s3v2.tools.S3ToS3
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
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static String[]protected Stringprotected Stringprotected longprotected Stringprotected Longprotected AWSS3V2Cloudprotected static final org.apache.logging.log4j.Loggerprotected Integerprotected static final Stringprotected static final Stringprotected ReadToS3protected S3ToS3.S3ToS3Statusprotected S3Readerprotected Stringprotected Stringprotected Longprotected AWSS3V2Cloud -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedS3ToS3(AWSS3V2Cloud fromService, String fromBucket, String fromKey, AWSS3V2Cloud toService, String toBucket, String toKey) -
Method Summary
Modifier and TypeMethodDescriptioncopyOver(boolean audit) static CloudChecksumdataCheck(boolean audit, String[] types, CloudStoreInf service, String bucket, String key) voiddeleteTo()fileLoadCopy(File tmpFile) static S3ToS3static S3ToS3static S3ToS3getS3ToS3(AWSS3V2Cloud fromService, String fromBucket, String fromKey, AWSS3V2Cloud toService, String toBucket, String toKey) returnFromCloudChecksum(boolean audit) returnToCloudChecksum(boolean audit) voidsetExec(boolean exec) setMaxBufSize(Integer maxBufSize) voidvalidateFile(boolean audit) voidvalidateTo(boolean audit, S3ToS3.S3ToS3Status status)
-
Field Details
-
NAME
- See Also:
-
MESSAGE
- See Also:
-
fromNode
-
toNode
-
fromService
-
fromBucket
-
fromKey
-
toService
-
toBucket
-
toKey
-
fromMetaObjectSize
protected long fromMetaObjectSize -
fromMetaSha256
-
s3Reader
-
readToS3
-
runStatus
-
maxBufSize
-
digestTypesS
-
log4j
protected static final org.apache.logging.log4j.Logger log4j
-
-
Constructor Details
-
S3ToS3
protected S3ToS3(AWSS3V2Cloud fromService, String fromBucket, String fromKey, AWSS3V2Cloud toService, String toBucket, String toKey) throws org.cdlib.mrt.utility.TException - Throws:
org.cdlib.mrt.utility.TException
-
-
Method Details
-
getS3ToS3
public static S3ToS3 getS3ToS3(String jarBase, long fromNode, String fromKey, long toNode, String toKey) throws org.cdlib.mrt.utility.TException - Throws:
org.cdlib.mrt.utility.TException
-
getS3ToS3
public static S3ToS3 getS3ToS3(long fromNode, String fromKey, long toNode, String toKey) throws org.cdlib.mrt.utility.TException - Throws:
org.cdlib.mrt.utility.TException
-
getS3ToS3
public static S3ToS3 getS3ToS3(AWSS3V2Cloud fromService, String fromBucket, String fromKey, AWSS3V2Cloud toService, String toBucket, String toKey) throws org.cdlib.mrt.utility.TException - Throws:
org.cdlib.mrt.utility.TException
-
toExistsDelete
- Throws:
org.cdlib.mrt.utility.TException
-
toExistsException
- Throws:
org.cdlib.mrt.utility.TException
-
copyOver
- Throws:
org.cdlib.mrt.utility.TException
-
getS3Reader
-
dataCheck
public static CloudChecksum dataCheck(boolean audit, String[] types, CloudStoreInf service, String bucket, String key) throws org.cdlib.mrt.utility.TException - Throws:
org.cdlib.mrt.utility.TException
-
returnFromCloudChecksum
- Throws:
org.cdlib.mrt.utility.TException
-
returnToCloudChecksum
- Throws:
org.cdlib.mrt.utility.TException
-
validateTo
public void validateTo(boolean audit, S3ToS3.S3ToS3Status status) throws org.cdlib.mrt.utility.TException - Throws:
org.cdlib.mrt.utility.TException
-
deleteTo
public void deleteTo() throws org.cdlib.mrt.utility.TException- Throws:
org.cdlib.mrt.utility.TException
-
setExec
public void setExec(boolean exec) throws org.cdlib.mrt.utility.TException - Throws:
org.cdlib.mrt.utility.TException
-
fileLoadCopy
- Throws:
org.cdlib.mrt.utility.TException
-
validateFile
public void validateFile(boolean audit) throws org.cdlib.mrt.utility.TException - Throws:
org.cdlib.mrt.utility.TException
-
getFromMetaSha256
-
getMaxBufSize
-
setMaxBufSize
-