Search in sources :

Example 1 with StorageNode

use of com.microsoft.tooling.msservices.serviceexplorer.azure.storage.asm.StorageNode in project azure-tools-for-java by Microsoft.

the class StorageAccountFolderNode method refreshItems.

@Override
protected void refreshItems() throws AzureCmdException {
    if (clusterDetail != null && !clusterDetail.isEmulator()) {
        try {
            clusterDetail.getConfigurationInfo(getProject());
            addChildNode(new StorageAccountNode(this, clusterDetail.getStorageAccount(), true));
            List<HDStorageAccount> additionalStorageAccount = clusterDetail.getAdditionalStorageAccounts();
            if (additionalStorageAccount != null) {
                for (HDStorageAccount account : additionalStorageAccount) {
                    addChildNode(new StorageNode(this, account, false));
                }
            }
        } catch (Exception exception) {
            DefaultLoader.getUIHelper().showException("Failed to get HDInsight cluster configuration.", exception, "HDInsight Explorer", false, true);
        }
    }
}
Also used : HDStorageAccount(com.microsoft.azure.hdinsight.sdk.storage.HDStorageAccount) StorageNode(com.microsoft.tooling.msservices.serviceexplorer.azure.storage.asm.StorageNode) AzureCmdException(com.microsoft.azuretools.azurecommons.helpers.AzureCmdException)

Aggregations

HDStorageAccount (com.microsoft.azure.hdinsight.sdk.storage.HDStorageAccount)1 AzureCmdException (com.microsoft.azuretools.azurecommons.helpers.AzureCmdException)1 StorageNode (com.microsoft.tooling.msservices.serviceexplorer.azure.storage.asm.StorageNode)1