Package org.cdlib.mrt.s3.tools
Class CloudCloudCopy
java.lang.Object
org.cdlib.mrt.s3.tools.CloudCloudCopy
This sample demonstrates how to make basic requests to Amazon S3 using
the AWS SDK for Java.
Prerequisites: You must have a valid Amazon Web Services developer account, and be signed up to use Amazon S3. For more information on Amazon S3, see http://aws.amazon.com/s3.
Important: Be sure to fill in your AWS access credentials in the AwsCredentials.properties file before you try to run this sample. http://aws.amazon.com/security-credentials
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected String
protected CloudStoreInf
protected static final String
protected static final String
protected String
protected CloudStoreInf
protected boolean
protected File
-
Constructor Summary
ConstructorsConstructorDescriptionCloudCloudCopy
(CloudStoreInf inService, String inContainer, CloudStoreInf outService, String outContainer) CloudCloudCopy
(CloudStoreInf inService, String inContainer, CloudStoreInf outService, String outContainer, File tFile) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
copy
(org.cdlib.mrt.cloud.CloudList.CloudEntry entry) void
copyObject
(String ark) void
setShowEntry
(boolean showEntry)
-
Field Details
-
NAME
- See Also:
-
MESSAGE
- See Also:
-
inService
-
inContainer
-
outService
-
outContainer
-
tFile
-
showEntry
protected boolean showEntry
-
-
Constructor Details
-
CloudCloudCopy
public CloudCloudCopy(CloudStoreInf inService, String inContainer, CloudStoreInf outService, String outContainer) throws org.cdlib.mrt.utility.TException - Throws:
org.cdlib.mrt.utility.TException
-
CloudCloudCopy
public CloudCloudCopy(CloudStoreInf inService, String inContainer, CloudStoreInf outService, String outContainer, File tFile) throws org.cdlib.mrt.utility.TException - Throws:
org.cdlib.mrt.utility.TException
-
-
Method Details
-
copy
public CloudResponse copy(org.cdlib.mrt.cloud.CloudList.CloudEntry entry) throws org.cdlib.mrt.utility.TException - Throws:
org.cdlib.mrt.utility.TException
-
copyObject
- Throws:
org.cdlib.mrt.utility.TException
-
close
public void close() -
setShowEntry
public void setShowEntry(boolean showEntry)
-