Package org.cdlib.mrt.s3.tools
Class CloudManifestCopyTime
java.lang.Object
org.cdlib.mrt.s3.tools.CloudManifestCopyTime
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 ClassesModifier and TypeClassDescriptionstatic class
static class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static boolean
protected String
protected CloudStoreInf
protected String
protected org.cdlib.mrt.utility.LoggerInf
protected static final String
protected static final String
protected String
protected CloudStoreInf
protected boolean
protected File
-
Constructor Summary
ConstructorsConstructorDescriptionCloudManifestCopyTime
(CloudStoreInf inService, String inContainer, CloudStoreInf outService, String outContainer, org.cdlib.mrt.utility.LoggerInf logger) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addManifest
(String arkS, org.cdlib.mrt.cloud.CloudList cloudList) void
close()
copy
(org.cdlib.mrt.cloud.CloudList.CloudEntry entry, CloudManifestCopyTime.Stat stat) void
copyObject
(String ark, CloudManifestCopyTime.Stat stat) protected org.cdlib.mrt.cloud.CloudList
getCloudList
(String arkS) protected org.cdlib.mrt.cloud.VersionMap
getVersionMap
(org.cdlib.mrt.core.Identifier objectID) Get version content information from a specific manifext.txtprotected void
protected void
void
setShowEntry
(boolean showEntry)
-
Field Details
-
NAME
- See Also:
-
MESSAGE
- See Also:
-
DEBUG
protected static boolean DEBUG -
inService
-
inContainer
-
outService
-
outContainer
-
tFile
-
showEntry
protected boolean showEntry -
logger
protected org.cdlib.mrt.utility.LoggerInf logger -
inSha256
-
-
Constructor Details
-
CloudManifestCopyTime
public CloudManifestCopyTime(CloudStoreInf inService, String inContainer, CloudStoreInf outService, String outContainer, org.cdlib.mrt.utility.LoggerInf logger) 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, CloudManifestCopyTime.Stat stat) throws org.cdlib.mrt.utility.TException - Throws:
org.cdlib.mrt.utility.TException
-
copyObject
public void copyObject(String ark, CloudManifestCopyTime.Stat stat) throws org.cdlib.mrt.utility.TException - Throws:
org.cdlib.mrt.utility.TException
-
getCloudList
protected org.cdlib.mrt.cloud.CloudList getCloudList(String arkS) throws org.cdlib.mrt.utility.TException - Throws:
org.cdlib.mrt.utility.TException
-
addManifest
protected void addManifest(String arkS, org.cdlib.mrt.cloud.CloudList cloudList) throws org.cdlib.mrt.utility.TException - Throws:
org.cdlib.mrt.utility.TException
-
getVersionMap
protected org.cdlib.mrt.cloud.VersionMap getVersionMap(org.cdlib.mrt.core.Identifier objectID) throws org.cdlib.mrt.utility.TException Get version content information from a specific manifext.txt- Parameters:
versionFile
- manifest file- Returns:
- Version file content
- Throws:
org.cdlib.mrt.utility.TException
-
close
public void close() -
setShowEntry
public void setShowEntry(boolean showEntry) -
log
-
log
-