Class AzureUtilities
- java.lang.Object
-
- org.apache.jackrabbit.oak.segment.azure.AzureUtilities
-
public final class AzureUtilities extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static StringSEGMENT_FILE_NAME_PATTERN
-
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 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 StringgetSegmentFileName(long offset, long msb, long lsb)static StringgetSegmentFileName(AzureSegmentArchiveEntry indexEntry)static voidreadBufferFully(com.microsoft.azure.storage.blob.CloudBlob blob, org.apache.jackrabbit.oak.commons.Buffer buffer)
-
-
-
Field Detail
-
SEGMENT_FILE_NAME_PATTERN
public static String SEGMENT_FILE_NAME_PATTERN
-
-
Method Detail
-
getSegmentFileName
public static String getSegmentFileName(AzureSegmentArchiveEntry indexEntry)
-
getSegmentFileName
public static String getSegmentFileName(long offset, long msb, long lsb)
-
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, org.apache.jackrabbit.oak.commons.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
-
-