Class AmazonS3V1

    • Constructor Summary

      Constructors 
      Constructor Description
      AmazonS3V1​(StorageConfiguration configuration)
      Constructor TODO gafou define exceptions + tu
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      void createContainer​(java.lang.String containerName)
      Creates a container
      java.lang.String createReadOrderRequest​(java.lang.String containerName, java.util.List<java.lang.String> objectsIds)
      Create read order (asynchronous read from tape to local FS) for the given objects representing the data at location containerName/objectId.
      void deleteObject​(java.lang.String containerName, java.lang.String objectName)
      Deletes a object representing the data at location containerName/objectName
      java.lang.String generateBucketName​(java.lang.String containerName)
      Generate a valid bucket name from the container name : replace non alphanumeric values by '.', lowercase every alphabetic value and remove '.
      ContainerInformation getContainerInformation​(java.lang.String containerName)
      Get container information like capacity
      ObjectContent getObject​(java.lang.String containerName, java.lang.String objectName)
      Retrieves an object representing the data at location containerName/objectName
      java.lang.String getObjectDigest​(java.lang.String containerName, java.lang.String objectName, DigestType digestType, boolean noCache)
      compute Object Digest using a defined algorithm
      MetadatasObject getObjectMetadata​(java.lang.String containerName, java.lang.String objectId, boolean noCache)
      get metadata of the object
      boolean isExistingContainer​(java.lang.String containerName)
      Determines if a container exists
      boolean isExistingObject​(java.lang.String containerName, java.lang.String objectName)
      Determines if an object exists
      void listContainer​(java.lang.String containerName, ObjectListingListener objectListingListener)
      List container objects
      java.lang.String putObject​(java.lang.String containerName, java.lang.String objectName, java.io.InputStream stream, DigestType digestType, java.lang.Long size)
      Adds an object representing the data at location containerName/objectName
      void removeReadOrderRequest​(java.lang.String readRequestID)
      Purge all read request id to cleanup local FS
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait