Class AzureUtilitiesV8
- java.lang.Object
-
- org.apache.jackrabbit.oak.segment.azure.v8.AzureUtilitiesV8
-
public final class AzureUtilitiesV8 extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static StringAZURE_ACCOUNT_NAMEstatic StringAZURE_CLIENT_IDstatic StringAZURE_CLIENT_SECRETstatic StringAZURE_SECRET_KEYstatic StringAZURE_TENANT_ID
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static com.microsoft.azure.storage.blob.CloudBlobDirectorycloudBlobDirectoryFrom(com.microsoft.azure.storage.StorageCredentials credentials, String uri, String dir)static com.microsoft.azure.storage.blob.CloudBlobDirectorycloudBlobDirectoryFrom(String connection, String containerName, String dir)static voiddeleteAllBlobs(@NotNull com.microsoft.azure.storage.blob.CloudBlobDirectory directory)static voiddeleteAllEntries(com.microsoft.azure.storage.blob.CloudBlobDirectory directory)static List<com.microsoft.azure.storage.blob.CloudBlob>getBlobs(com.microsoft.azure.storage.blob.CloudBlobDirectory directory)static StringgetName(com.microsoft.azure.storage.blob.CloudBlob blob)static StringgetName(com.microsoft.azure.storage.blob.CloudBlobDirectory directory)static voidreadBufferFully(com.microsoft.azure.storage.blob.CloudBlob blob, Buffer buffer)
-
-
-
Field Detail
-
AZURE_ACCOUNT_NAME
public static final String AZURE_ACCOUNT_NAME
- See Also:
- Constant Field Values
-
AZURE_SECRET_KEY
public static final String AZURE_SECRET_KEY
- See Also:
- Constant Field Values
-
AZURE_TENANT_ID
public static final String AZURE_TENANT_ID
- See Also:
- Constant Field Values
-
AZURE_CLIENT_ID
public static final String AZURE_CLIENT_ID
- See Also:
- Constant Field Values
-
AZURE_CLIENT_SECRET
public static final String AZURE_CLIENT_SECRET
- See Also:
- Constant Field Values
-
-
Method Detail
-
getName
public static String getName(com.microsoft.azure.storage.blob.CloudBlob blob)
-
getName
public static String getName(com.microsoft.azure.storage.blob.CloudBlobDirectory directory)
-
getBlobs
public static List<com.microsoft.azure.storage.blob.CloudBlob> getBlobs(com.microsoft.azure.storage.blob.CloudBlobDirectory directory) throws IOException
- Throws:
IOException
-
readBufferFully
public static void readBufferFully(com.microsoft.azure.storage.blob.CloudBlob blob, Buffer buffer) throws IOException- Throws:
IOException
-
deleteAllEntries
public static void deleteAllEntries(com.microsoft.azure.storage.blob.CloudBlobDirectory directory) throws IOException- Throws:
IOException
-
cloudBlobDirectoryFrom
public static com.microsoft.azure.storage.blob.CloudBlobDirectory cloudBlobDirectoryFrom(com.microsoft.azure.storage.StorageCredentials credentials, String uri, String dir) throws URISyntaxException, com.microsoft.azure.storage.StorageException- Throws:
URISyntaxExceptioncom.microsoft.azure.storage.StorageException
-
cloudBlobDirectoryFrom
public static com.microsoft.azure.storage.blob.CloudBlobDirectory cloudBlobDirectoryFrom(String connection, String containerName, String dir) throws InvalidKeyException, URISyntaxException, com.microsoft.azure.storage.StorageException
- Throws:
InvalidKeyExceptionURISyntaxExceptioncom.microsoft.azure.storage.StorageException
-
deleteAllBlobs
public static void deleteAllBlobs(@NotNull @NotNull com.microsoft.azure.storage.blob.CloudBlobDirectory directory) throws URISyntaxException, com.microsoft.azure.storage.StorageException, InterruptedException- Throws:
URISyntaxExceptioncom.microsoft.azure.storage.StorageExceptionInterruptedException
-
-