public class AzureBlobLayoutStrategy
extends java.lang.Object
AzureCloudConfig
properties:
Constructor and Description |
---|
AzureBlobLayoutStrategy(java.lang.String clusterName)
Test constructor
|
AzureBlobLayoutStrategy(java.lang.String clusterName,
AzureCloudConfig azureCloudConfig)
Constuctor for
AzureBlobLayoutStrategy . |
Modifier and Type | Method and Description |
---|---|
com.github.ambry.cloud.azure.AzureBlobLayoutStrategy.BlobLayout |
getDataBlobLayout(com.github.ambry.commons.BlobId blobId) |
com.github.ambry.cloud.azure.AzureBlobLayoutStrategy.BlobLayout |
getDataBlobLayout(CloudBlobMetadata blobMetadata) |
com.github.ambry.cloud.azure.AzureBlobLayoutStrategy.BlobLayout |
getTokenBlobLayout(java.lang.String partitionPath,
java.lang.String tokenFileName) |
public AzureBlobLayoutStrategy(java.lang.String clusterName, AzureCloudConfig azureCloudConfig)
AzureBlobLayoutStrategy
.clusterName
- Name of the Ambry cluster.azureCloudConfig
- The AzureCloudConfig
to use.java.lang.IllegalArgumentException
- if invalid config properties are present.public AzureBlobLayoutStrategy(java.lang.String clusterName)
public com.github.ambry.cloud.azure.AzureBlobLayoutStrategy.BlobLayout getDataBlobLayout(CloudBlobMetadata blobMetadata)
blobMetadata
- the {@link CloudBlobMetadata for the data blob.BlobLayout
for the specified blob.public com.github.ambry.cloud.azure.AzureBlobLayoutStrategy.BlobLayout getDataBlobLayout(com.github.ambry.commons.BlobId blobId)
blobId
- the id of the blob.BlobLayout
for the specified blob.public com.github.ambry.cloud.azure.AzureBlobLayoutStrategy.BlobLayout getTokenBlobLayout(java.lang.String partitionPath, java.lang.String tokenFileName)
partitionPath
- the lexical partitionId name.tokenFileName
- the name of the token file to store.BlobLayout
for token files in the specified partition.