Class CloudObjectDelete

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

public class CloudObjectDelete 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:
    • service

      protected CloudStoreInf service
    • container

      protected String container
    • tFile

      protected File tFile
    • logger

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

      protected boolean showEntry
    • allowManifest

      protected boolean allowManifest
    • deleteCnt

      protected long deleteCnt
  • Constructor Details

    • CloudObjectDelete

      public CloudObjectDelete(CloudStoreInf service, String container, boolean allowManifest, org.cdlib.mrt.utility.LoggerInf logger) throws org.cdlib.mrt.utility.TException
      Throws:
      org.cdlib.mrt.utility.TException
  • Method Details

    • deleteObject

      public int deleteObject(String ark) throws org.cdlib.mrt.utility.TException
      Throws:
      org.cdlib.mrt.utility.TException
    • deleteToCurrentObject

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

      public CloudResponse delete(org.cdlib.mrt.cloud.CloudList.CloudEntry entry) throws org.cdlib.mrt.utility.TException
      Throws:
      org.cdlib.mrt.utility.TException
    • stopDelete

      protected boolean stopDelete(String arkS) throws org.cdlib.mrt.utility.TException
      Throws:
      org.cdlib.mrt.utility.TException
    • isManifest

      protected boolean isManifest(String arkS) throws org.cdlib.mrt.utility.TException
      Throws:
      org.cdlib.mrt.utility.TException
    • getMap

      protected org.cdlib.mrt.cloud.VersionMap getMap(String arkS) throws org.cdlib.mrt.utility.TException
      Throws:
      org.cdlib.mrt.utility.TException
    • close

      public void close()
    • setShowEntry

      public void setShowEntry(boolean showEntry)