Search in sources :

Example 21 with StorageDescription

use of com.vmware.photon.controller.model.resources.StorageDescriptionService.StorageDescription in project photon-model by vmware.

the class VsphereDatastoreEnumerationHelper method makeStorageFromResults.

private static StorageDescription makeStorageFromResults(ComputeEnumerateResourceRequest request, DatastoreOverlay ds, String regionId, EnumerationProgress ctx) {
    StorageDescription res = new StorageDescription();
    res.id = res.name = ds.getName();
    res.type = ds.getType();
    res.resourcePoolLink = request.resourcePoolLink;
    res.endpointLink = request.endpointLink;
    AdapterUtils.addToEndpointLinks(res, request.endpointLink);
    res.adapterManagementReference = request.adapterManagementReference;
    res.capacityBytes = ds.getCapacityBytes();
    res.regionId = regionId;
    CustomProperties.of(res).put(CustomProperties.MOREF, ds.getId()).put(STORAGE_USED_BYTES, ds.getCapacityBytes() - ds.getFreeSpaceBytes()).put(STORAGE_AVAILABLE_BYTES, ds.getFreeSpaceBytes()).put(CUSTOM_PROP_STORAGE_SHARED, ds.isMultipleHostAccess()).put(CustomProperties.TYPE, ds.getType()).put(CustomProperties.DS_PATH, ds.getPath()).put(CustomProperties.DATACENTER_SELF_LINK, ctx.getDcLink()).put(CustomProperties.PROPERTY_NAME, ds.getName()).put(CustomProperties.DS_FREE_SPACE_IN_GB, AdapterUtils.convertBytesToGB(ds.getFreeSpaceBytes()));
    VsphereEnumerationHelper.populateResourceStateWithAdditionalProps(res, ctx.getVcUuid());
    return res;
}
Also used : StorageDescription(com.vmware.photon.controller.model.resources.StorageDescriptionService.StorageDescription)

Example 22 with StorageDescription

use of com.vmware.photon.controller.model.resources.StorageDescriptionService.StorageDescription in project photon-model by vmware.

the class VsphereStoragePolicyEnumerationHelper method updateStorageDescription.

static void updateStorageDescription(VSphereIncrementalEnumerationService service, Stream<Operation> opStream, String spSelfLink, ServiceDocumentQueryResult result) {
    List<Operation> patchOps = new ArrayList<>();
    List<String> originalLinks = new ArrayList<>();
    if (result.documentLinks != null) {
        originalLinks.addAll(result.documentLinks);
    }
    opStream.forEach(op -> {
        StorageDescription storageDescription = op.getBody(StorageDescription.class);
        if (result.documentLinks != null && result.documentLinks.contains(storageDescription.documentSelfLink)) {
            originalLinks.remove(storageDescription.documentSelfLink);
        } else {
            if (storageDescription.groupLinks == null) {
                storageDescription.groupLinks = new HashSet<>();
            }
            storageDescription.groupLinks.add(spSelfLink);
            patchOps.add(Operation.createPatch(PhotonModelUriUtils.createInventoryUri(service.getHost(), storageDescription.documentSelfLink)).setBody(storageDescription));
        }
    });
    // In this case, we need to update the datastore by removing the policy group link
    if (!originalLinks.isEmpty()) {
        originalLinks.stream().forEach(link -> {
            Map<String, Collection<Object>> collectionsToRemove = Collections.singletonMap(ResourceState.FIELD_NAME_GROUP_LINKS, Collections.singletonList(spSelfLink));
            ServiceStateCollectionUpdateRequest updateGroupLinksRequest = ServiceStateCollectionUpdateRequest.create(null, collectionsToRemove);
            patchOps.add(Operation.createPatch(PhotonModelUriUtils.createInventoryUri(service.getHost(), link)).setBody(updateGroupLinksRequest));
        });
    }
    if (!patchOps.isEmpty()) {
        OperationJoin.create(patchOps).setCompletion((ops, exs) -> {
            if (exs != null) {
                service.logFine(() -> String.format("Syncing Storage policy failed %s", Utils.toString(exs)));
            }
        }).sendWith(service);
    }
}
Also used : ComputeProperties(com.vmware.photon.controller.model.ComputeProperties) ComputeEnumerateResourceRequest(com.vmware.photon.controller.model.adapterapi.ComputeEnumerateResourceRequest) PhotonModelUriUtils(com.vmware.photon.controller.model.util.PhotonModelUriUtils) QueryTask(com.vmware.xenon.services.common.QueryTask) ResourceGroupState(com.vmware.photon.controller.model.resources.ResourceGroupService.ResourceGroupState) MatchType(com.vmware.xenon.services.common.QueryTask.QueryTerm.MatchType) ArrayList(java.util.ArrayList) HashSet(java.util.HashSet) Utils(com.vmware.xenon.common.Utils) ServiceStateCollectionUpdateRequest(com.vmware.xenon.common.ServiceStateCollectionUpdateRequest) PbmProfile(com.vmware.pbm.PbmProfile) Map(java.util.Map) StorageDescription(com.vmware.photon.controller.model.resources.StorageDescriptionService.StorageDescription) ServiceDocumentQueryResult(com.vmware.xenon.common.ServiceDocumentQueryResult) AdapterUtils(com.vmware.photon.controller.model.adapters.util.AdapterUtils) ResourceState(com.vmware.photon.controller.model.resources.ResourceState) Collection(java.util.Collection) Operation(com.vmware.xenon.common.Operation) QueryUtils(com.vmware.photon.controller.model.query.QueryUtils) Occurance(com.vmware.xenon.services.common.QueryTask.Query.Occurance) VimNames(com.vmware.photon.controller.model.adapters.vsphere.util.VimNames) ManagedObjectReference(com.vmware.vim25.ManagedObjectReference) ResourceGroupService(com.vmware.photon.controller.model.resources.ResourceGroupService) List(java.util.List) Stream(java.util.stream.Stream) CompletionHandler(com.vmware.xenon.common.Operation.CompletionHandler) Builder(com.vmware.xenon.services.common.QueryTask.Query.Builder) Collections(java.util.Collections) OperationJoin(com.vmware.xenon.common.OperationJoin) ArrayList(java.util.ArrayList) Collection(java.util.Collection) ServiceStateCollectionUpdateRequest(com.vmware.xenon.common.ServiceStateCollectionUpdateRequest) Operation(com.vmware.xenon.common.Operation) StorageDescription(com.vmware.photon.controller.model.resources.StorageDescriptionService.StorageDescription)

Example 23 with StorageDescription

use of com.vmware.photon.controller.model.resources.StorageDescriptionService.StorageDescription in project photon-model by vmware.

the class AzureComputeEnumerationAdapterService method queryForDiagnosticStorageDescriptions.

/**
 * Get all storage descriptions responsible for diagnostics of given VMs.
 */
private void queryForDiagnosticStorageDescriptions(EnumerationContext ctx, ComputeEnumerationSubStages next) {
    List<String> diagnosticStorageAccountUris = new ArrayList<>();
    String storageAccountProperty = QuerySpecification.buildCompositeFieldName(StorageDescription.FIELD_NAME_CUSTOM_PROPERTIES, AZURE_STORAGE_ACCOUNT_URI);
    ctx.virtualMachines.keySet().stream().filter(instanceId -> ctx.virtualMachines.get(instanceId) != null && ctx.virtualMachines.get(instanceId).diagnosticsProfile() != null && ctx.virtualMachines.get(instanceId).diagnosticsProfile().bootDiagnostics() != null && ctx.virtualMachines.get(instanceId).diagnosticsProfile().bootDiagnostics().storageUri() != null).forEach(instanceId -> {
        diagnosticStorageAccountUris.add(ctx.virtualMachines.get(instanceId).diagnosticsProfile().bootDiagnostics().storageUri());
    });
    if (diagnosticStorageAccountUris.isEmpty()) {
        ctx.subStage = next;
        handleSubStage(ctx);
        return;
    }
    Query.Builder qBuilder = Query.Builder.create().addKindFieldClause(StorageDescription.class).addInClause(storageAccountProperty, diagnosticStorageAccountUris);
    QueryTop<StorageDescription> queryDiskStates = new QueryTop<>(getHost(), qBuilder.build(), StorageDescription.class, ctx.parentCompute.tenantLinks, // endpointLink
    null, ctx.parentCompute.documentSelfLink).setClusterType(ServiceTypeCluster.INVENTORY_SERVICE);
    queryDiskStates.queryDocuments(storageDesc -> {
        ctx.storageDescriptions.put(storageDesc.customProperties.get(AZURE_STORAGE_ACCOUNT_URI), storageDesc);
    }).thenRun(() -> logFine(() -> String.format("Found %d matching diagnostics storage accounts", ctx.storageDescriptions.size()))).whenComplete(thenHandleSubStage(ctx, next));
}
Also used : PowerState(com.vmware.photon.controller.model.resources.ComputeService.PowerState) Arrays(java.util.Arrays) ComputeEnumerateResourceRequest(com.vmware.photon.controller.model.adapterapi.ComputeEnumerateResourceRequest) ServiceTypeCluster(com.vmware.photon.controller.model.util.ClusterUtil.ServiceTypeCluster) LifecycleState(com.vmware.photon.controller.model.resources.ComputeService.LifecycleState) DISK_CONTROLLER_NUMBER(com.vmware.photon.controller.model.adapters.azure.constants.AzureConstants.DISK_CONTROLLER_NUMBER) Action1(rx.functions.Action1) StringUtils(org.apache.commons.lang3.StringUtils) Azure(com.microsoft.azure.management.Azure) Utils(com.vmware.xenon.common.Utils) Pair(org.apache.commons.lang3.tuple.Pair) SubnetState(com.vmware.photon.controller.model.resources.SubnetService.SubnetState) Map(java.util.Map) StorageDescription(com.vmware.photon.controller.model.resources.StorageDescriptionService.StorageDescription) OSDisk(com.microsoft.azure.management.compute.OSDisk) ResourceEnumerationTaskService(com.vmware.photon.controller.model.tasks.ResourceEnumerationTaskService) NetworkInterfaceState(com.vmware.photon.controller.model.resources.NetworkInterfaceService.NetworkInterfaceState) StatelessService(com.vmware.xenon.common.StatelessService) Set(java.util.Set) NetworkInterfaceService(com.vmware.photon.controller.model.resources.NetworkInterfaceService) StorageAccountTypes(com.microsoft.azure.management.compute.StorageAccountTypes) TagService(com.vmware.photon.controller.model.resources.TagService) CompletionHandler(com.vmware.xenon.common.Operation.CompletionHandler) SOURCE_TASK_LINK(com.vmware.photon.controller.model.constants.PhotonModelConstants.SOURCE_TASK_LINK) InstanceViewStatus(com.microsoft.azure.management.compute.InstanceViewStatus) DeferredResult(com.vmware.xenon.common.DeferredResult) UriUtils(com.vmware.xenon.common.UriUtils) ComputeService(com.vmware.photon.controller.model.resources.ComputeService) NumericRange(com.vmware.xenon.services.common.QueryTask.NumericRange) AZURE_DATA_DISK_CACHING(com.vmware.photon.controller.model.adapters.azure.constants.AzureConstants.AZURE_DATA_DISK_CACHING) ImageReferenceInner(com.microsoft.azure.management.compute.implementation.ImageReferenceInner) VirtualMachinesInner(com.microsoft.azure.management.compute.implementation.VirtualMachinesInner) ComputeDescriptionService(com.vmware.photon.controller.model.resources.ComputeDescriptionService) PhotonModelUtils(com.vmware.photon.controller.model.resources.util.PhotonModelUtils) RegionInfo(com.vmware.photon.controller.model.adapterapi.RegionEnumerationResponse.RegionInfo) TagsUtil(com.vmware.photon.controller.model.adapters.util.TagsUtil) ArrayList(java.util.ArrayList) TagState(com.vmware.photon.controller.model.resources.TagService.TagState) ServiceStateCollectionUpdateRequest(com.vmware.xenon.common.ServiceStateCollectionUpdateRequest) Query(com.vmware.xenon.services.common.QueryTask.Query) EnumerationStages(com.vmware.photon.controller.model.adapters.util.enums.EnumerationStages) OperatingSystemTypes(com.microsoft.azure.management.compute.OperatingSystemTypes) BiConsumer(java.util.function.BiConsumer) AZURE_DIAGNOSTIC_STORAGE_ACCOUNT_LINK(com.vmware.photon.controller.model.adapters.azure.constants.AzureConstants.AZURE_DIAGNOSTIC_STORAGE_ACCOUNT_LINK) AZURE_STORAGE_ACCOUNT_URI(com.vmware.photon.controller.model.adapters.azure.constants.AzureConstants.AZURE_STORAGE_ACCOUNT_URI) VirtualMachineInner(com.microsoft.azure.management.compute.implementation.VirtualMachineInner) AdapterUtils(com.vmware.photon.controller.model.adapters.util.AdapterUtils) DataDisk(com.microsoft.azure.management.compute.DataDisk) ResourceState(com.vmware.photon.controller.model.resources.ResourceState) QueryUtils(com.vmware.photon.controller.model.query.QueryUtils) ENVIRONMENT_NAME_AZURE(com.vmware.photon.controller.model.resources.ComputeDescriptionService.ComputeDescription.ENVIRONMENT_NAME_AZURE) QueryTop(com.vmware.photon.controller.model.query.QueryUtils.QueryTop) CUSTOM_OS_TYPE(com.vmware.photon.controller.model.ComputeProperties.CUSTOM_OS_TYPE) ComputeStateWithDescription(com.vmware.photon.controller.model.resources.ComputeService.ComputeStateWithDescription) PhotonModelConstants(com.vmware.photon.controller.model.constants.PhotonModelConstants) ComputeEnumerateAdapterRequest(com.vmware.photon.controller.model.adapters.util.ComputeEnumerateAdapterRequest) RegionEnumerationResponse(com.vmware.photon.controller.model.adapterapi.RegionEnumerationResponse) QuerySpecification(com.vmware.xenon.services.common.QueryTask.QuerySpecification) PhotonModelUriUtils.createInventoryUri(com.vmware.photon.controller.model.util.PhotonModelUriUtils.createInventoryUri) AuthCredentialsServiceState(com.vmware.xenon.services.common.AuthCredentialsService.AuthCredentialsServiceState) QueryTask(com.vmware.xenon.services.common.QueryTask) AZURE_RESOURCE_GROUP_NAME(com.vmware.photon.controller.model.adapters.azure.constants.AzureConstants.AZURE_RESOURCE_GROUP_NAME) OSType(com.vmware.photon.controller.model.ComputeProperties.OSType) AzureUriPaths(com.vmware.photon.controller.model.adapters.azure.AzureUriPaths) AZURE_MANAGED_DISK_TYPE(com.vmware.photon.controller.model.adapters.azure.constants.AzureConstants.AZURE_MANAGED_DISK_TYPE) ComputeType(com.vmware.photon.controller.model.resources.ComputeDescriptionService.ComputeDescription.ComputeType) AzureSdkClients(com.vmware.photon.controller.model.adapters.azure.utils.AzureSdkClients) AzureUtils.injectOperationContext(com.vmware.photon.controller.model.adapters.azure.utils.AzureUtils.injectOperationContext) CUSTOM_PROP_ENDPOINT_LINK(com.vmware.photon.controller.model.constants.PhotonModelConstants.CUSTOM_PROP_ENDPOINT_LINK) URI(java.net.URI) TagsUtil.newTagState(com.vmware.photon.controller.model.adapters.util.TagsUtil.newTagState) EndpointState(com.vmware.photon.controller.model.resources.EndpointService.EndpointState) AzureConstants(com.vmware.photon.controller.model.adapters.azure.constants.AzureConstants) AzureConstants.getQueryResultLimit(com.vmware.photon.controller.model.adapters.azure.constants.AzureConstants.getQueryResultLimit) ComputeDescription(com.vmware.photon.controller.model.resources.ComputeDescriptionService.ComputeDescription) Collection(java.util.Collection) ConcurrentHashMap(java.util.concurrent.ConcurrentHashMap) DiskState(com.vmware.photon.controller.model.resources.DiskService.DiskState) Occurance(com.vmware.xenon.services.common.QueryTask.Query.Occurance) UUID(java.util.UUID) Collectors(java.util.stream.Collectors) List(java.util.List) AzureUtils(com.vmware.photon.controller.model.adapters.azure.utils.AzureUtils) AzureUtils.getResourceGroupName(com.vmware.photon.controller.model.adapters.azure.utils.AzureUtils.getResourceGroupName) TAG_KEY_TYPE(com.vmware.photon.controller.model.constants.PhotonModelConstants.TAG_KEY_TYPE) Entry(java.util.Map.Entry) NetworkInterfacesInner(com.microsoft.azure.management.network.implementation.NetworkInterfacesInner) QueryOption(com.vmware.xenon.services.common.QueryTask.QuerySpecification.QueryOption) InstanceViewTypes(com.microsoft.azure.management.compute.InstanceViewTypes) TagsUtil.setTagLinksToResourceState(com.vmware.photon.controller.model.adapters.util.TagsUtil.setTagLinksToResourceState) Builder(com.vmware.xenon.services.common.QueryTask.Query.Builder) DiskService(com.vmware.photon.controller.model.resources.DiskService) AzureUtils.isDiskManaged(com.vmware.photon.controller.model.adapters.azure.utils.AzureUtils.isDiskManaged) Default(com.vmware.photon.controller.model.adapters.azure.utils.AzureDeferredResultServiceCallback.Default) QueryByPages(com.vmware.photon.controller.model.query.QueryUtils.QueryByPages) AZURE_OSDISK_CACHING(com.vmware.photon.controller.model.adapters.azure.constants.AzureConstants.AZURE_OSDISK_CACHING) PublicIPAddress(com.microsoft.azure.management.network.PublicIPAddress) HashMap(java.util.HashMap) HashSet(java.util.HashSet) AuthCredentialsService(com.vmware.xenon.services.common.AuthCredentialsService) TagsUtil.updateLocalTagStates(com.vmware.photon.controller.model.adapters.util.TagsUtil.updateLocalTagStates) ComputeState(com.vmware.photon.controller.model.resources.ComputeService.ComputeState) EnumerationAction(com.vmware.photon.controller.model.adapterapi.EnumerationAction) AzureResourceType(com.vmware.photon.controller.model.adapters.azure.constants.AzureConstants.AzureResourceType) ExecutorService(java.util.concurrent.ExecutorService) Iterator(java.util.Iterator) NetworkInterfaceIPConfigurationInner(com.microsoft.azure.management.network.implementation.NetworkInterfaceIPConfigurationInner) Operation(com.vmware.xenon.common.Operation) Page(com.microsoft.azure.Page) TimeUnit(java.util.concurrent.TimeUnit) Consumer(java.util.function.Consumer) NetworkInterfaceReferenceInner(com.microsoft.azure.management.compute.implementation.NetworkInterfaceReferenceInner) AzureDeferredResultServiceCallback(com.vmware.photon.controller.model.adapters.azure.utils.AzureDeferredResultServiceCallback) NetworkInterfaceInner(com.microsoft.azure.management.network.implementation.NetworkInterfaceInner) Collections(java.util.Collections) OperationJoin(com.vmware.xenon.common.OperationJoin) RESOURCE_GROUP_NAME(com.vmware.photon.controller.model.ComputeProperties.RESOURCE_GROUP_NAME) Query(com.vmware.xenon.services.common.QueryTask.Query) ArrayList(java.util.ArrayList) Builder(com.vmware.xenon.services.common.QueryTask.Query.Builder) StorageDescription(com.vmware.photon.controller.model.resources.StorageDescriptionService.StorageDescription)

Example 24 with StorageDescription

use of com.vmware.photon.controller.model.resources.StorageDescriptionService.StorageDescription in project photon-model by vmware.

the class AzureComputeEnumerationAdapterService method createComputeState.

private ComputeState createComputeState(EnumerationContext ctx, VirtualMachineInner virtualMachine) {
    List<String> vmDisks = new ArrayList<>();
    if (ctx.diskStates != null && ctx.diskStates.size() > 0) {
        String diskUri = getVhdUri(virtualMachine);
        if (diskUri != null) {
            DiskState state = ctx.diskStates.get(diskUri);
            if (state != null) {
                vmDisks.add(state.documentSelfLink);
            }
        }
        // add all data disk links of VM
        List<String> dataDiskIDs = getDataDisksID(virtualMachine, AzureUtils.isDiskManaged(virtualMachine));
        if (dataDiskIDs != null) {
            dataDiskIDs.forEach(dataDiskID -> {
                DiskState dataDiskState = ctx.diskStates.get(dataDiskID);
                if (null != dataDiskState) {
                    vmDisks.add(dataDiskState.documentSelfLink);
                }
            });
        }
    }
    // Create compute state
    ComputeState computeState = new ComputeState();
    computeState.documentSelfLink = UUID.randomUUID().toString();
    computeState.id = virtualMachine.id().toLowerCase();
    computeState.name = virtualMachine.name();
    computeState.regionId = virtualMachine.location();
    computeState.type = ComputeType.VM_GUEST;
    computeState.environmentName = ComputeDescription.ENVIRONMENT_NAME_AZURE;
    computeState.parentLink = ctx.request.resourceLink();
    computeState.descriptionLink = UriUtils.buildUriPath(ComputeDescriptionService.FACTORY_LINK, ctx.computeDescriptionIds.get(virtualMachine.name()));
    computeState.endpointLink = ctx.request.endpointLink;
    AdapterUtils.addToEndpointLinks(computeState, ctx.request.endpointLink);
    computeState.resourcePoolLink = ctx.request.resourcePoolLink;
    computeState.computeHostLink = ctx.parentCompute.documentSelfLink;
    computeState.diskLinks = vmDisks;
    if (virtualMachine.hardwareProfile() != null && virtualMachine.hardwareProfile().vmSize() != null) {
        computeState.instanceType = virtualMachine.hardwareProfile().vmSize().toString();
    }
    computeState.instanceAdapterReference = ctx.parentCompute.description.instanceAdapterReference;
    computeState.statsAdapterReference = ctx.parentCompute.description.statsAdapterReference;
    computeState.customProperties = new HashMap<>();
    computeState.customProperties.put(CUSTOM_OS_TYPE, getNormalizedOSType(virtualMachine));
    String resourceGroupName = getResourceGroupName(virtualMachine.id());
    computeState.customProperties.put(AZURE_RESOURCE_GROUP_NAME, resourceGroupName);
    if (virtualMachine.diagnosticsProfile() != null && virtualMachine.diagnosticsProfile().bootDiagnostics() != null && virtualMachine.diagnosticsProfile().bootDiagnostics().storageUri() != null) {
        String diagnosticsAccountUri = virtualMachine.diagnosticsProfile().bootDiagnostics().storageUri();
        StorageDescription storageDesk = ctx.storageDescriptions.get(diagnosticsAccountUri);
        if (storageDesk != null) {
            computeState.customProperties.put(AZURE_DIAGNOSTIC_STORAGE_ACCOUNT_LINK, storageDesk.documentSelfLink);
        }
    }
    computeState.tenantLinks = ctx.parentCompute.tenantLinks;
    // add tag links
    setTagLinksToResourceState(computeState, virtualMachine.getTags(), true);
    if (computeState.tagLinks == null) {
        computeState.tagLinks = new HashSet<>();
    }
    // add internal type tags
    computeState.tagLinks.addAll(ctx.internalTagLinks);
    List<String> networkLinks = new ArrayList<>();
    NicMetadata nicMeta = ctx.networkInterfaceIds.remove(virtualMachine.networkProfile().networkInterfaces().get(0).id());
    if (nicMeta != null) {
        computeState.address = nicMeta.publicIp;
        computeState.hostName = nicMeta.publicDnsName;
        computeState.primaryMAC = nicMeta.macAddress;
        networkLinks.add(nicMeta.state.documentSelfLink);
    }
    computeState.networkInterfaceLinks = networkLinks;
    return computeState;
}
Also used : ComputeState(com.vmware.photon.controller.model.resources.ComputeService.ComputeState) DiskState(com.vmware.photon.controller.model.resources.DiskService.DiskState) ArrayList(java.util.ArrayList) StorageDescription(com.vmware.photon.controller.model.resources.StorageDescriptionService.StorageDescription)

Aggregations

StorageDescription (com.vmware.photon.controller.model.resources.StorageDescriptionService.StorageDescription)24 ResourceGroupState (com.vmware.photon.controller.model.resources.ResourceGroupService.ResourceGroupState)13 Operation (com.vmware.xenon.common.Operation)13 AdapterUtils (com.vmware.photon.controller.model.adapters.util.AdapterUtils)11 UriUtils (com.vmware.xenon.common.UriUtils)11 Utils (com.vmware.xenon.common.Utils)11 AuthCredentialsServiceState (com.vmware.xenon.services.common.AuthCredentialsService.AuthCredentialsServiceState)11 QueryTask (com.vmware.xenon.services.common.QueryTask)11 List (java.util.List)11 ComputeEnumerateResourceRequest (com.vmware.photon.controller.model.adapterapi.ComputeEnumerateResourceRequest)10 QueryUtils (com.vmware.photon.controller.model.query.QueryUtils)10 DiskState (com.vmware.photon.controller.model.resources.DiskService.DiskState)10 ResourceState (com.vmware.photon.controller.model.resources.ResourceState)10 StorageDescriptionService (com.vmware.photon.controller.model.resources.StorageDescriptionService)10 CompletionHandler (com.vmware.xenon.common.Operation.CompletionHandler)10 ResourceGroupService (com.vmware.photon.controller.model.resources.ResourceGroupService)9 ServiceTypeCluster (com.vmware.photon.controller.model.util.ClusterUtil.ServiceTypeCluster)9 HashMap (java.util.HashMap)9 HashSet (java.util.HashSet)9 TimeUnit (java.util.concurrent.TimeUnit)9