Class CloudManifestCopyS3ToS3

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

public class CloudManifestCopyS3ToS3 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
    • NEEDCOPYLOG

      protected static int NEEDCOPYLOG
    • maxBufSize

      protected Integer maxBufSize
    • log4j

      protected static final org.apache.logging.log4j.Logger log4j
    • inService

      protected AWSS3V2Cloud inService
    • inContainer

      protected String inContainer
    • outService

      protected AWSS3V2Cloud outService
    • outContainer

      protected String outContainer
    • showEntry

      protected boolean showEntry
    • logger

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

      protected String inSha256
    • outManProp

      protected Properties outManProp
    • doFixity

      protected boolean doFixity
  • Constructor Details

    • CloudManifestCopyS3ToS3

      public CloudManifestCopyS3ToS3(boolean doFixity, 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

    • getCloudManifestCopyS3ToS3

      public static CloudManifestCopyS3ToS3 getCloudManifestCopyS3ToS3(NodeIO nodeIO, long inNode, long outNode, org.cdlib.mrt.utility.LoggerInf logger) throws org.cdlib.mrt.utility.TException
      Throws:
      org.cdlib.mrt.utility.TException
    • getCloudManifestCopyS3ToS3

      public static CloudManifestCopyS3ToS3 getCloudManifestCopyS3ToS3(boolean doFixity, NodeIO nodeIO, long inNode, long outNode, org.cdlib.mrt.utility.LoggerInf logger) throws org.cdlib.mrt.utility.TException
      Throws:
      org.cdlib.mrt.utility.TException
    • needCopy

      protected boolean needCopy(org.cdlib.mrt.cloud.CloudList.CloudEntry inEntry, CloudManifestCopyS3ToS3.Stat stat) throws org.cdlib.mrt.utility.TException
      Throws:
      org.cdlib.mrt.utility.TException
    • setOutManifestProp

      public void setOutManifestProp(String ark) throws org.cdlib.mrt.utility.TException
      Throws:
      org.cdlib.mrt.utility.TException
    • copy

      protected S3ToS3 copy(org.cdlib.mrt.cloud.CloudList.CloudEntry entry, CloudManifestCopyS3ToS3.Stat stat) throws org.cdlib.mrt.utility.TException
      Throws:
      org.cdlib.mrt.utility.TException
    • doS3ToS3

      protected S3ToS3 doS3ToS3(String key) throws org.cdlib.mrt.utility.TException
      Throws:
      org.cdlib.mrt.utility.TException
    • copyRetry

      public S3ToS3 copyRetry(org.cdlib.mrt.cloud.CloudList.CloudEntry entry, CloudManifestCopyS3ToS3.Stat stat, int retryCnt) throws org.cdlib.mrt.utility.TException
      Throws:
      org.cdlib.mrt.utility.TException
    • copyObject

      public void copyObject(String ark, CloudManifestCopyS3ToS3.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) 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
    • setShowEntry

      public void setShowEntry(boolean showEntry)
    • log

      protected void log(String msg)
    • logxx

      protected void logxx(String msg, int lvl)
    • debug

      protected void debug(String msg)
    • trace

      protected void trace(String msg)