Class CloudManifestCopyTime

java.lang.Object
org.cdlib.mrt.s3.tools.CloudManifestCopyTime

public class CloudManifestCopyTime extends Object
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

  • Field Details

    • NAME

      protected static final String NAME
      See Also:
    • MESSAGE

      protected static final String MESSAGE
      See Also:
    • DEBUG

      protected static boolean DEBUG
    • inService

      protected CloudStoreInf inService
    • inContainer

      protected String inContainer
    • outService

      protected CloudStoreInf outService
    • outContainer

      protected String outContainer
    • tFile

      protected File tFile
    • showEntry

      protected boolean showEntry
    • logger

      protected org.cdlib.mrt.utility.LoggerInf logger
    • inSha256

      protected String 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

      protected void log(String msg)
    • log

      protected void log(String msg, int lvl)