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 classstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static booleanprotected Stringprotected CloudStoreInfprotected Stringprotected org.cdlib.mrt.utility.LoggerInfprotected static final Stringprotected static final Stringprotected Stringprotected CloudStoreInfprotected booleanprotected File -
Constructor Summary
ConstructorsConstructorDescriptionCloudManifestCopyTime(CloudStoreInf inService, String inContainer, CloudStoreInf outService, String outContainer, org.cdlib.mrt.utility.LoggerInf logger) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddManifest(String arkS, org.cdlib.mrt.cloud.CloudList cloudList) voidclose()copy(org.cdlib.mrt.cloud.CloudList.CloudEntry entry, CloudManifestCopyTime.Stat stat) voidcopyObject(String ark, CloudManifestCopyTime.Stat stat) protected org.cdlib.mrt.cloud.CloudListgetCloudList(String arkS) protected org.cdlib.mrt.cloud.VersionMapgetVersionMap(org.cdlib.mrt.core.Identifier objectID) Get version content information from a specific manifext.txtprotected voidprotected voidvoidsetShowEntry(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
-