Class Swift

    • Constructor Summary

      Constructors 
      Constructor Description
      Swift​(java.util.function.Supplier<org.openstack4j.api.OSClient> osClient, StorageConfiguration configuration)
      Constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      void createContainer​(java.lang.String containerName)
      Abstract method to get authenticated openstack client, allow to switch between Keystone V2 and Keystone V3
      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
      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
    • Constructor Detail

      • Swift

        public Swift​(java.util.function.Supplier<org.openstack4j.api.OSClient> osClient,
                     StorageConfiguration configuration)
        Constructor
        Parameters:
        osClient - the given type of osClient can be OSClientV2, OSClientV3
        configuration - StorageConfiguration