Class AzureUtilities


  • public final class AzureUtilities
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static com.microsoft.azure.storage.blob.CloudBlobDirectory cloudBlobDirectoryFrom​(com.microsoft.azure.storage.StorageCredentials credentials, java.lang.String uri, java.lang.String dir)  
      static com.microsoft.azure.storage.blob.CloudBlobDirectory cloudBlobDirectoryFrom​(java.lang.String connection, java.lang.String containerName, java.lang.String dir)  
      static void deleteAllBlobs​(@NotNull com.microsoft.azure.storage.blob.CloudBlobDirectory directory)  
      static void deleteAllEntries​(com.microsoft.azure.storage.blob.CloudBlobDirectory directory)  
      static java.util.List<com.microsoft.azure.storage.blob.CloudBlob> getBlobs​(com.microsoft.azure.storage.blob.CloudBlobDirectory directory)  
      static java.lang.String getName​(com.microsoft.azure.storage.blob.CloudBlob blob)  
      static java.lang.String getName​(com.microsoft.azure.storage.blob.CloudBlobDirectory directory)  
      static void readBufferFully​(com.microsoft.azure.storage.blob.CloudBlob blob, Buffer buffer)  
      static com.microsoft.azure.storage.StorageCredentialsToken storageCredentialAccessTokenFrom​(java.lang.String accountName, java.lang.String clientId, java.lang.String clientSecret, java.lang.String tenantId)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getName

        public static java.lang.String getName​(com.microsoft.azure.storage.blob.CloudBlob blob)
      • getName

        public static java.lang.String getName​(com.microsoft.azure.storage.blob.CloudBlobDirectory directory)
      • getBlobs

        public static java.util.List<com.microsoft.azure.storage.blob.CloudBlob> getBlobs​(com.microsoft.azure.storage.blob.CloudBlobDirectory directory)
                                                                                   throws java.io.IOException
        Throws:
        java.io.IOException
      • readBufferFully

        public static void readBufferFully​(com.microsoft.azure.storage.blob.CloudBlob blob,
                                           Buffer buffer)
                                    throws java.io.IOException
        Throws:
        java.io.IOException
      • deleteAllEntries

        public static void deleteAllEntries​(com.microsoft.azure.storage.blob.CloudBlobDirectory directory)
                                     throws java.io.IOException
        Throws:
        java.io.IOException
      • cloudBlobDirectoryFrom

        public static com.microsoft.azure.storage.blob.CloudBlobDirectory cloudBlobDirectoryFrom​(com.microsoft.azure.storage.StorageCredentials credentials,
                                                                                                 java.lang.String uri,
                                                                                                 java.lang.String dir)
                                                                                          throws java.net.URISyntaxException,
                                                                                                 com.microsoft.azure.storage.StorageException
        Throws:
        java.net.URISyntaxException
        com.microsoft.azure.storage.StorageException
      • cloudBlobDirectoryFrom

        public static com.microsoft.azure.storage.blob.CloudBlobDirectory cloudBlobDirectoryFrom​(java.lang.String connection,
                                                                                                 java.lang.String containerName,
                                                                                                 java.lang.String dir)
                                                                                          throws java.security.InvalidKeyException,
                                                                                                 java.net.URISyntaxException,
                                                                                                 com.microsoft.azure.storage.StorageException
        Throws:
        java.security.InvalidKeyException
        java.net.URISyntaxException
        com.microsoft.azure.storage.StorageException
      • storageCredentialAccessTokenFrom

        public static com.microsoft.azure.storage.StorageCredentialsToken storageCredentialAccessTokenFrom​(java.lang.String accountName,
                                                                                                           java.lang.String clientId,
                                                                                                           java.lang.String clientSecret,
                                                                                                           java.lang.String tenantId)
      • deleteAllBlobs

        public static void deleteAllBlobs​(@NotNull
                                          @NotNull com.microsoft.azure.storage.blob.CloudBlobDirectory directory)
                                   throws java.net.URISyntaxException,
                                          com.microsoft.azure.storage.StorageException,
                                          java.lang.InterruptedException
        Throws:
        java.net.URISyntaxException
        com.microsoft.azure.storage.StorageException
        java.lang.InterruptedException