public class StorageServiceDelegate extends Object
| Constructor and Description |
|---|
StorageServiceDelegate() |
| Modifier and Type | Method and Description |
|---|---|
static String |
generateSASURL(String storageAccountName,
String storageAccountKey,
String containerName,
String strBlobURL)
Generates SAS URL for blob in Azure storage account
|
static com.microsoft.windowsazure.management.storage.models.StorageAccountProperties |
getStorageAccountProps(com.microsoft.windowsazure.Configuration config,
String storageAccountName)
Returns Storage Account Properties
|
static String |
getStorageAccountURI(com.microsoft.windowsazure.Configuration config,
String storageAccountName,
String type)
This methods checks if service type URI present in the list and returns
type specific URI back
|
static String |
uploadConfigFileToStorage(com.microsoft.windowsazure.Configuration config,
String storageAccountName,
String key,
String baseURI,
String fileName,
String initScript)
Uploads init script to storage account and returns blob url
|
public static com.microsoft.windowsazure.management.storage.models.StorageAccountProperties getStorageAccountProps(com.microsoft.windowsazure.Configuration config,
String storageAccountName)
throws AzureCloudException
config - storageAccountName - AzureCloudExceptionpublic static String getStorageAccountURI(com.microsoft.windowsazure.Configuration config, String storageAccountName, String type) throws AzureCloudException
storageAccountURLs - storageAccountName - type - AzureCloudExceptionpublic static String uploadConfigFileToStorage(com.microsoft.windowsazure.Configuration config, String storageAccountName, String key, String baseURI, String fileName, String initScript) throws AzureCloudException, URISyntaxException, com.microsoft.azure.storage.StorageException, IOException
storageAccountName - Azure storage account namekey - Azure storage account keybaseURI - Azure storage account blob url.fileName - blob file nameinitScript - contents of file to be uploadedAzureCloudExceptionURISyntaxExceptioncom.microsoft.azure.storage.StorageExceptionIOExceptionExceptionpublic static String generateSASURL(String storageAccountName, String storageAccountKey, String containerName, String strBlobURL) throws Exception
storageAccountName - storageAccountKey - containerName - blobURL - ExceptionCopyright © 2004-2014. All Rights Reserved.