Class ContentAddressableStorageJcloudsAbstract

    • Field Detail

      • context

        protected final org.jclouds.blobstore.BlobStoreContext context
    • Constructor Detail

      • ContentAddressableStorageJcloudsAbstract

        public ContentAddressableStorageJcloudsAbstract​(StorageConfiguration configuration)
        creates a new ContentAddressableStorageImpl with a storage configuration param
        Parameters:
        configuration - StorageConfiguration
    • Method Detail

      • getContext

        public abstract org.jclouds.blobstore.BlobStoreContext getContext​(StorageConfiguration configuration)
        enables the connection to a storage service with the param provided
        Parameters:
        configuration - the storage configuration
        Returns:
        BlobStoreContext
      • closeContext

        public abstract void closeContext()
        Close context according to implementation (http client not closed)
      • createContainer

        public void createContainer​(java.lang.String containerName)
        Description copied from interface: ContentAddressableStorage
        Creates a container
        Parameters:
        containerName - name of container to create
      • isExistingContainer

        public boolean isExistingContainer​(java.lang.String containerName)
        Description copied from interface: ContentAddressableStorage
        Determines if a container exists
        Parameters:
        containerName - name of container
        Returns:
        boolean type
      • checkObjectDigestAndStoreDigest

        public void checkObjectDigestAndStoreDigest​(java.lang.String containerName,
                                                    java.lang.String objectName,
                                                    java.lang.String objectDigest,
                                                    DigestType digestType,
                                                    long size)
                                             throws ContentAddressableStorageException
        Description copied from interface: ContentAddressableStorage
        Checks objet digest & update persist its digest in object metadata
        Parameters:
        containerName - container to place the object.
        objectName - fully qualified object name relative to the container.
        objectDigest - object digest value
        digestType - object digest type
        size - size off the input stream
        Throws:
        ContentAddressableStorageException
      • deleteObject

        public void deleteObject​(java.lang.String containerName,
                                 java.lang.String objectName)
                          throws ContentAddressableStorageNotFoundException
        Description copied from interface: ContentAddressableStorage
        Deletes a object representing the data at location containerName/objectName
        Parameters:
        containerName - container where this exists.
        objectName - fully qualified name relative to the container.
        Throws:
        ContentAddressableStorageNotFoundException - Thrown when the container cannot be located or the blob cannot be located in the container.
      • isExistingObject

        public boolean isExistingObject​(java.lang.String containerName,
                                        java.lang.String objectName)
        Description copied from interface: ContentAddressableStorage
        Determines if an object exists
        Parameters:
        containerName - container where the object resides
        objectName - fully qualified name relative to the container.
        Returns:
        boolean type