Search in sources :

Example 1 with Credentials

use of com.dell.cpsd.virtualization.capabilities.api.Credentials in project fru-paqx-parent by dellemc-symphony.

the class vCenterServiceImpl method requestHostPowerOff.

@Override
public CompletableFuture<VCenterHostPowerOperationStatus> requestHostPowerOff(EndpointCredentials vcenterCredentials, String hostname) {
    final String requiredCapability = "vcenter-powercommand";
    try {
        final ListCapabilityProvidersResponse listCapabilityProvidersResponse = capabilityRegistryLookupManager.listCapabilityProviders(TimeUnit.SECONDS.toMillis(5));
        if (listCapabilityProvidersResponse == null) {
            return CompletableFuture.completedFuture(null);
        }
        final List<CapabilityProvider> capabilityProviders = listCapabilityProvidersResponse.getResponse();
        for (CapabilityProvider capabilityProvider : capabilityProviders) {
            for (Capability capability : capabilityProvider.getCapabilities()) {
                LOG.debug("Found capability {}", capability.getProfile());
                if (requiredCapability.equals(capability.getProfile())) {
                    LOG.debug("Found matching capability {}", capability.getProfile());
                    final List<EndpointProperty> endpointProperties = capability.getProviderEndpoint().getEndpointProperties();
                    final Map<String, String> amqpProperties = endpointProperties.stream().collect(Collectors.toMap(EndpointProperty::getName, EndpointProperty::getValue));
                    final String requestExchange = amqpProperties.get("request-exchange");
                    final String requestRoutingKey = amqpProperties.get("request-routing-key");
                    final TopicExchange responseExchange = new TopicExchange(amqpProperties.get("response-exchange"));
                    final String responseRoutingKey = amqpProperties.get("response-routing-key").replace("{replyTo}", "." + replyTo);
                    amqpAdmin.declareBinding(BindingBuilder.bind(responseQueue).to(responseExchange).with(responseRoutingKey));
                    LOG.debug("Adding binding {} {}", responseExchange.getName(), responseRoutingKey);
                    final UUID correlationId = UUID.randomUUID();
                    HostPowerOperationRequestMessage requestMessage = new HostPowerOperationRequestMessage();
                    requestMessage.setMessageProperties(new MessageProperties().withCorrelationId(correlationId.toString()).withReplyTo(replyTo).withTimestamp(new Date()));
                    try {
                        new URL(vcenterCredentials.getEndpointUrl());
                    } catch (MalformedURLException e) {
                        final CompletableFuture<VCenterHostPowerOperationStatus> promise = new CompletableFuture<>();
                        promise.completeExceptionally(e);
                        return promise;
                    }
                    final Credentials credentials = new Credentials(vcenterCredentials.getEndpointUrl(), vcenterCredentials.getPassword(), vcenterCredentials.getUsername());
                    requestMessage.setCredentials(credentials);
                    //TODO hostname is blank BUT SHOULD be filled with appropriate data
                    PowerOperationRequest powerOperationRequest = new PowerOperationRequest(hostname, PowerOperationRequest.PowerOperation.POWER_OFF);
                    requestMessage.setPowerOperationRequest(powerOperationRequest);
                    final CompletableFuture<VCenterHostPowerOperationStatus> promise = vCenterHostPowerAsyncAcknowledgement.register(correlationId.toString());
                    rabbitTemplate.convertAndSend(requestExchange, requestRoutingKey, requestMessage);
                    return promise;
                }
            }
        }
    } catch (CapabilityRegistryException e) {
        LOG.error("Failed while looking up Capability Registry for {}", requiredCapability, e);
    } catch (ServiceTimeoutException e) {
        LOG.error("Service timed out while querying Capability Registry");
    }
    return null;
}
Also used : MalformedURLException(java.net.MalformedURLException) Capability(com.dell.cpsd.hdp.capability.registry.api.Capability) CapabilityProvider(com.dell.cpsd.hdp.capability.registry.api.CapabilityProvider) HostPowerOperationRequestMessage(com.dell.cpsd.virtualization.capabilities.api.HostPowerOperationRequestMessage) ListCapabilityProvidersResponse(com.dell.cpsd.hdp.capability.registry.client.callback.ListCapabilityProvidersResponse) ServiceTimeoutException(com.dell.cpsd.service.common.client.exception.ServiceTimeoutException) Date(java.util.Date) URL(java.net.URL) TopicExchange(org.springframework.amqp.core.TopicExchange) EndpointProperty(com.dell.cpsd.hdp.capability.registry.api.EndpointProperty) CompletableFuture(java.util.concurrent.CompletableFuture) PowerOperationRequest(com.dell.cpsd.virtualization.capabilities.api.PowerOperationRequest) VCenterHostPowerOperationStatus(com.dell.cpsd.paqx.fru.rest.dto.VCenterHostPowerOperationStatus) MessageProperties(com.dell.cpsd.virtualization.capabilities.api.MessageProperties) CapabilityRegistryException(com.dell.cpsd.hdp.capability.registry.client.CapabilityRegistryException) UUID(java.util.UUID) EndpointCredentials(com.dell.cpsd.paqx.fru.rest.dto.EndpointCredentials) Credentials(com.dell.cpsd.virtualization.capabilities.api.Credentials)

Example 2 with Credentials

use of com.dell.cpsd.virtualization.capabilities.api.Credentials in project fru-paqx-parent by dellemc-symphony.

the class vCenterServiceImpl method requestHostRemoval.

@Override
public CompletableFuture<ClusterOperationResponse> requestHostRemoval(final EndpointCredentials vcenterCredentials, final String clusterId, final String hostname) {
    final String requiredCapability = "vcenter-remove-host";
    try {
        final ListCapabilityProvidersResponse listCapabilityProvidersResponse = capabilityRegistryLookupManager.listCapabilityProviders(TimeUnit.SECONDS.toMillis(5));
        for (final CapabilityProvider capabilityProvider : listCapabilityProvidersResponse.getResponse()) {
            for (final Capability capability : capabilityProvider.getCapabilities()) {
                LOG.debug("Found capability {}", capability.getProfile());
                if (requiredCapability.equals(capability.getProfile())) {
                    LOG.debug("Found matching capability {}", capability.getProfile());
                    final List<EndpointProperty> endpointProperties = capability.getProviderEndpoint().getEndpointProperties();
                    final Map<String, String> amqpProperties = endpointProperties.stream().collect(Collectors.toMap(EndpointProperty::getName, EndpointProperty::getValue));
                    final String requestExchange = amqpProperties.get("request-exchange");
                    final String requestRoutingKey = amqpProperties.get("request-routing-key");
                    final TopicExchange responseExchange = new TopicExchange(amqpProperties.get("response-exchange"));
                    final String responseRoutingKey = amqpProperties.get("response-routing-key").replace("{replyTo}", "." + replyTo);
                    amqpAdmin.declareBinding(BindingBuilder.bind(responseQueue).to(responseExchange).with(responseRoutingKey));
                    LOG.debug("Adding binding {} {}", responseExchange.getName(), responseRoutingKey);
                    final UUID correlationId = UUID.randomUUID();
                    final ClusterOperationRequestMessage requestMessage = new ClusterOperationRequestMessage();
                    requestMessage.setCredentials(new Credentials(vcenterCredentials.getEndpointUrl(), vcenterCredentials.getPassword(), vcenterCredentials.getUsername()));
                    final ClusterOperationRequest clusterOperationRequest = new ClusterOperationRequest();
                    clusterOperationRequest.setHostName(hostname);
                    //TODO: If not required remove the cluster id
                    clusterOperationRequest.setClusterID(clusterId);
                    clusterOperationRequest.setClusterOperation(ClusterOperationRequest.ClusterOperation.REMOVE_HOST);
                    requestMessage.setClusterOperationRequest(clusterOperationRequest);
                    try {
                        new URL(vcenterCredentials.getEndpointUrl());
                    } catch (MalformedURLException e) {
                        final CompletableFuture<ClusterOperationResponse> promise = new CompletableFuture<>();
                        promise.completeExceptionally(e);
                        return promise;
                    }
                    final CompletableFuture<ClusterOperationResponse> promise = vcenterClusterOperationAsyncAcknowledgement.register(correlationId.toString());
                    LOG.info("Host removal request with correlation id [{}]", correlationId.toString());
                    rabbitTemplate.convertAndSend(requestExchange, requestRoutingKey, requestMessage);
                    return promise;
                }
            }
        }
    } catch (CapabilityRegistryException e) {
        LOG.error("Failed while looking up Capability Registry for {}", requiredCapability, e);
    } catch (ServiceTimeoutException e) {
        LOG.error("Service timed out while querying Capability Registry");
    }
    LOG.error("Unable to find required capability: {}", requiredCapability);
    return CompletableFuture.completedFuture(null);
}
Also used : MalformedURLException(java.net.MalformedURLException) Capability(com.dell.cpsd.hdp.capability.registry.api.Capability) CapabilityProvider(com.dell.cpsd.hdp.capability.registry.api.CapabilityProvider) ClusterOperationRequest(com.dell.cpsd.virtualization.capabilities.api.ClusterOperationRequest) ListCapabilityProvidersResponse(com.dell.cpsd.hdp.capability.registry.client.callback.ListCapabilityProvidersResponse) ClusterOperationResponse(com.dell.cpsd.paqx.fru.rest.dto.vcenter.ClusterOperationResponse) ServiceTimeoutException(com.dell.cpsd.service.common.client.exception.ServiceTimeoutException) URL(java.net.URL) TopicExchange(org.springframework.amqp.core.TopicExchange) EndpointProperty(com.dell.cpsd.hdp.capability.registry.api.EndpointProperty) ClusterOperationRequestMessage(com.dell.cpsd.virtualization.capabilities.api.ClusterOperationRequestMessage) CompletableFuture(java.util.concurrent.CompletableFuture) CapabilityRegistryException(com.dell.cpsd.hdp.capability.registry.client.CapabilityRegistryException) UUID(java.util.UUID) EndpointCredentials(com.dell.cpsd.paqx.fru.rest.dto.EndpointCredentials) Credentials(com.dell.cpsd.virtualization.capabilities.api.Credentials)

Example 3 with Credentials

use of com.dell.cpsd.virtualization.capabilities.api.Credentials in project fru-paqx-parent by dellemc-symphony.

the class vCenterServiceImpl method requestHostMaintenanceModeEnable.

@Override
public CompletableFuture<HostMaintenanceModeResponse> requestHostMaintenanceModeEnable(final EndpointCredentials vcenterCredentials, final String hostname) {
    final String requiredCapability = "vcenter-enterMaintenance";
    try {
        final ListCapabilityProvidersResponse listCapabilityProvidersResponse = capabilityRegistryLookupManager.listCapabilityProviders(TimeUnit.SECONDS.toMillis(5));
        for (final CapabilityProvider capabilityProvider : listCapabilityProvidersResponse.getResponse()) {
            for (final Capability capability : capabilityProvider.getCapabilities()) {
                LOG.debug("Found capability {}", capability.getProfile());
                if (requiredCapability.equals(capability.getProfile())) {
                    LOG.debug("Found matching capability {}", capability.getProfile());
                    final List<EndpointProperty> endpointProperties = capability.getProviderEndpoint().getEndpointProperties();
                    final Map<String, String> amqpProperties = endpointProperties.stream().collect(Collectors.toMap(EndpointProperty::getName, EndpointProperty::getValue));
                    final String requestExchange = amqpProperties.get("request-exchange");
                    final String requestRoutingKey = amqpProperties.get("request-routing-key");
                    final TopicExchange responseExchange = new TopicExchange(amqpProperties.get("response-exchange"));
                    final String responseRoutingKey = amqpProperties.get("response-routing-key").replace("{replyTo}", "." + replyTo);
                    amqpAdmin.declareBinding(BindingBuilder.bind(responseQueue).to(responseExchange).with(responseRoutingKey));
                    LOG.debug("Adding binding {} {}", responseExchange.getName(), responseRoutingKey);
                    final UUID correlationId = UUID.randomUUID();
                    final HostMaintenanceModeRequestMessage requestMessage = new HostMaintenanceModeRequestMessage();
                    final MessageProperties messageProperties = new MessageProperties(new Date(), correlationId.toString(), replyTo);
                    requestMessage.setMessageProperties(messageProperties);
                    requestMessage.setCredentials(new Credentials(vcenterCredentials.getEndpointUrl(), vcenterCredentials.getPassword(), vcenterCredentials.getUsername()));
                    MaintenanceModeRequest maintenanceModeRequest = new MaintenanceModeRequest(hostname, Boolean.TRUE);
                    requestMessage.setMaintenanceModeRequest(maintenanceModeRequest);
                    try {
                        new URL(vcenterCredentials.getEndpointUrl());
                    } catch (MalformedURLException e) {
                        final CompletableFuture<HostMaintenanceModeResponse> promise = new CompletableFuture<>();
                        promise.completeExceptionally(e);
                        return promise;
                    }
                    final CompletableFuture<HostMaintenanceModeResponse> promise = hostMaintenanceModeAsyncAcknowledgement.register(correlationId.toString());
                    rabbitTemplate.convertAndSend(requestExchange, requestRoutingKey, requestMessage);
                    return promise;
                }
            }
        }
    } catch (CapabilityRegistryException e) {
        LOG.error("Failed while looking up Capability Registry for {}", requiredCapability, e);
    } catch (ServiceTimeoutException e) {
        LOG.error("Service timed out while querying Capability Registry");
    }
    return CompletableFuture.completedFuture(null);
}
Also used : MalformedURLException(java.net.MalformedURLException) Capability(com.dell.cpsd.hdp.capability.registry.api.Capability) HostMaintenanceModeResponse(com.dell.cpsd.paqx.fru.rest.dto.vcenter.HostMaintenanceModeResponse) MaintenanceModeRequest(com.dell.cpsd.virtualization.capabilities.api.MaintenanceModeRequest) CapabilityProvider(com.dell.cpsd.hdp.capability.registry.api.CapabilityProvider) HostMaintenanceModeRequestMessage(com.dell.cpsd.virtualization.capabilities.api.HostMaintenanceModeRequestMessage) ListCapabilityProvidersResponse(com.dell.cpsd.hdp.capability.registry.client.callback.ListCapabilityProvidersResponse) ServiceTimeoutException(com.dell.cpsd.service.common.client.exception.ServiceTimeoutException) Date(java.util.Date) URL(java.net.URL) TopicExchange(org.springframework.amqp.core.TopicExchange) EndpointProperty(com.dell.cpsd.hdp.capability.registry.api.EndpointProperty) CompletableFuture(java.util.concurrent.CompletableFuture) MessageProperties(com.dell.cpsd.virtualization.capabilities.api.MessageProperties) CapabilityRegistryException(com.dell.cpsd.hdp.capability.registry.client.CapabilityRegistryException) UUID(java.util.UUID) EndpointCredentials(com.dell.cpsd.paqx.fru.rest.dto.EndpointCredentials) Credentials(com.dell.cpsd.virtualization.capabilities.api.Credentials)

Example 4 with Credentials

use of com.dell.cpsd.virtualization.capabilities.api.Credentials in project fru-paqx-parent by dellemc-symphony.

the class vCenterServiceImpl method showSystem.

public CompletableFuture<vCenterSystemProperties> showSystem(final EndpointCredentials vcenterCredentials) {
    final String requiredCapability = "vcenter-discover";
    try {
        final ListCapabilityProvidersResponse listCapabilityProvidersResponse = capabilityRegistryLookupManager.listCapabilityProviders(TimeUnit.SECONDS.toMillis(5));
        for (final CapabilityProvider capabilityProvider : listCapabilityProvidersResponse.getResponse()) {
            for (final Capability capability : capabilityProvider.getCapabilities()) {
                LOG.debug("Found capability {}", capability.getProfile());
                if (requiredCapability.equals(capability.getProfile())) {
                    LOG.debug("Found matching capability {}", capability.getProfile());
                    final List<EndpointProperty> endpointProperties = capability.getProviderEndpoint().getEndpointProperties();
                    final Map<String, String> amqpProperties = endpointProperties.stream().collect(Collectors.toMap(EndpointProperty::getName, EndpointProperty::getValue));
                    final String requestExchange = amqpProperties.get("request-exchange");
                    final String requestRoutingKey = amqpProperties.get("request-routing-key");
                    final TopicExchange responseExchange = new TopicExchange(amqpProperties.get("response-exchange"));
                    final String responseRoutingKey = amqpProperties.get("response-routing-key").replace("{replyTo}", "." + replyTo);
                    amqpAdmin.declareBinding(BindingBuilder.bind(responseQueue).to(responseExchange).with(responseRoutingKey));
                    LOG.debug("Adding binding {} {}", responseExchange.getName(), responseRoutingKey);
                    final UUID correlationId = UUID.randomUUID();
                    DiscoveryRequestInfoMessage requestMessage = new DiscoveryRequestInfoMessage();
                    requestMessage.setMessageProperties(new MessageProperties().withCorrelationId(correlationId.toString()).withReplyTo(replyTo).withTimestamp(new Date()));
                    try {
                        new URL(vcenterCredentials.getEndpointUrl());
                    } catch (MalformedURLException e) {
                        final CompletableFuture<vCenterSystemProperties> promise = new CompletableFuture<>();
                        promise.completeExceptionally(e);
                        return promise;
                    }
                    final DiscoveryRequestInfoMessage discoveryRequestInfo = new DiscoveryRequestInfoMessage();
                    Credentials credentials = new Credentials();
                    credentials.setUsername(vcenterCredentials.getUsername());
                    credentials.setAddress(vcenterCredentials.getEndpointUrl());
                    credentials.setPassword(vcenterCredentials.getPassword());
                    requestMessage.setCredentials(credentials);
                    final CompletableFuture<vCenterSystemProperties> promise = asyncAcknowledgement.register(correlationId.toString());
                    rabbitTemplate.convertAndSend(requestExchange, requestRoutingKey, requestMessage);
                    return promise;
                }
            }
        }
    } catch (CapabilityRegistryException e) {
        LOG.error("Failed while looking up Capability Registry for {}", requiredCapability, e);
    } catch (ServiceTimeoutException e) {
        LOG.error("Service timed out while querying Capability Registry");
    }
    LOG.error("Unable to find required capability: {}", requiredCapability);
    return CompletableFuture.completedFuture(null);
}
Also used : MalformedURLException(java.net.MalformedURLException) Capability(com.dell.cpsd.hdp.capability.registry.api.Capability) CapabilityProvider(com.dell.cpsd.hdp.capability.registry.api.CapabilityProvider) ListCapabilityProvidersResponse(com.dell.cpsd.hdp.capability.registry.client.callback.ListCapabilityProvidersResponse) ServiceTimeoutException(com.dell.cpsd.service.common.client.exception.ServiceTimeoutException) Date(java.util.Date) URL(java.net.URL) TopicExchange(org.springframework.amqp.core.TopicExchange) com.dell.cpsd.paqx.fru.rest.dto.vCenterSystemProperties(com.dell.cpsd.paqx.fru.rest.dto.vCenterSystemProperties) EndpointProperty(com.dell.cpsd.hdp.capability.registry.api.EndpointProperty) CompletableFuture(java.util.concurrent.CompletableFuture) MessageProperties(com.dell.cpsd.virtualization.capabilities.api.MessageProperties) CapabilityRegistryException(com.dell.cpsd.hdp.capability.registry.client.CapabilityRegistryException) UUID(java.util.UUID) EndpointCredentials(com.dell.cpsd.paqx.fru.rest.dto.EndpointCredentials) Credentials(com.dell.cpsd.virtualization.capabilities.api.Credentials) DiscoveryRequestInfoMessage(com.dell.cpsd.virtualization.capabilities.api.DiscoveryRequestInfoMessage)

Example 5 with Credentials

use of com.dell.cpsd.virtualization.capabilities.api.Credentials in project fru-paqx-parent by dellemc-symphony.

the class vCenterServiceImpl method requestVmDeletion.

@Override
public CompletableFuture<DestroyVmResponse> requestVmDeletion(final EndpointCredentials vcenterCredentials, final String uuid) {
    final String requiredCapability = "vcenter-destroy-virtualMachine";
    try {
        final ListCapabilityProvidersResponse listCapabilityProvidersResponse = capabilityRegistryLookupManager.listCapabilityProviders(TimeUnit.SECONDS.toMillis(5));
        for (final CapabilityProvider capabilityProvider : listCapabilityProvidersResponse.getResponse()) {
            for (final Capability capability : capabilityProvider.getCapabilities()) {
                LOG.debug("Found capability {}", capability.getProfile());
                if (requiredCapability.equals(capability.getProfile())) {
                    LOG.debug("Found matching capability {}", capability.getProfile());
                    final List<EndpointProperty> endpointProperties = capability.getProviderEndpoint().getEndpointProperties();
                    final Map<String, String> amqpProperties = endpointProperties.stream().collect(Collectors.toMap(EndpointProperty::getName, EndpointProperty::getValue));
                    final String requestExchange = amqpProperties.get("request-exchange");
                    final String requestRoutingKey = amqpProperties.get("request-routing-key");
                    final TopicExchange responseExchange = new TopicExchange(amqpProperties.get("response-exchange"));
                    final String responseRoutingKey = amqpProperties.get("response-routing-key").replace("{replyTo}", "." + replyTo);
                    amqpAdmin.declareBinding(BindingBuilder.bind(responseQueue).to(responseExchange).with(responseRoutingKey));
                    LOG.debug("Adding binding {} {}", responseExchange.getName(), responseRoutingKey);
                    final UUID correlationId = UUID.randomUUID();
                    final DestroyVMRequestMessage requestMessage = new DestroyVMRequestMessage();
                    requestMessage.setUuid(uuid);
                    final MessageProperties messageProperties = new MessageProperties(new Date(), correlationId.toString(), replyTo);
                    requestMessage.setMessageProperties(messageProperties);
                    requestMessage.setCredentials(new Credentials(vcenterCredentials.getEndpointUrl(), vcenterCredentials.getPassword(), vcenterCredentials.getUsername()));
                    try {
                        new URL(vcenterCredentials.getEndpointUrl());
                    } catch (MalformedURLException e) {
                        final CompletableFuture<DestroyVmResponse> promise = new CompletableFuture<>();
                        promise.completeExceptionally(e);
                        return promise;
                    }
                    final CompletableFuture<DestroyVmResponse> promise = vmDeletionAsyncAcknowledgement.register(correlationId.toString());
                    rabbitTemplate.convertAndSend(requestExchange, requestRoutingKey, requestMessage);
                    return promise;
                }
            }
        }
    } catch (CapabilityRegistryException e) {
        LOG.error("Failed while looking up Capability Registry for {}", requiredCapability, e);
    } catch (ServiceTimeoutException e) {
        LOG.error("Service timed out while querying Capability Registry");
    }
    return CompletableFuture.completedFuture(null);
}
Also used : MalformedURLException(java.net.MalformedURLException) Capability(com.dell.cpsd.hdp.capability.registry.api.Capability) DestroyVmResponse(com.dell.cpsd.paqx.fru.rest.dto.vcenter.DestroyVmResponse) CapabilityProvider(com.dell.cpsd.hdp.capability.registry.api.CapabilityProvider) ListCapabilityProvidersResponse(com.dell.cpsd.hdp.capability.registry.client.callback.ListCapabilityProvidersResponse) ServiceTimeoutException(com.dell.cpsd.service.common.client.exception.ServiceTimeoutException) Date(java.util.Date) URL(java.net.URL) TopicExchange(org.springframework.amqp.core.TopicExchange) EndpointProperty(com.dell.cpsd.hdp.capability.registry.api.EndpointProperty) CompletableFuture(java.util.concurrent.CompletableFuture) MessageProperties(com.dell.cpsd.virtualization.capabilities.api.MessageProperties) CapabilityRegistryException(com.dell.cpsd.hdp.capability.registry.client.CapabilityRegistryException) UUID(java.util.UUID) DestroyVMRequestMessage(com.dell.cpsd.virtualization.capabilities.api.DestroyVMRequestMessage) EndpointCredentials(com.dell.cpsd.paqx.fru.rest.dto.EndpointCredentials) Credentials(com.dell.cpsd.virtualization.capabilities.api.Credentials)

Aggregations

Capability (com.dell.cpsd.hdp.capability.registry.api.Capability)6 CapabilityProvider (com.dell.cpsd.hdp.capability.registry.api.CapabilityProvider)6 EndpointProperty (com.dell.cpsd.hdp.capability.registry.api.EndpointProperty)6 CapabilityRegistryException (com.dell.cpsd.hdp.capability.registry.client.CapabilityRegistryException)6 ListCapabilityProvidersResponse (com.dell.cpsd.hdp.capability.registry.client.callback.ListCapabilityProvidersResponse)6 EndpointCredentials (com.dell.cpsd.paqx.fru.rest.dto.EndpointCredentials)6 ServiceTimeoutException (com.dell.cpsd.service.common.client.exception.ServiceTimeoutException)6 Credentials (com.dell.cpsd.virtualization.capabilities.api.Credentials)6 MalformedURLException (java.net.MalformedURLException)6 URL (java.net.URL)6 UUID (java.util.UUID)6 CompletableFuture (java.util.concurrent.CompletableFuture)6 TopicExchange (org.springframework.amqp.core.TopicExchange)6 MessageProperties (com.dell.cpsd.virtualization.capabilities.api.MessageProperties)4 Date (java.util.Date)4 ClusterOperationResponse (com.dell.cpsd.paqx.fru.rest.dto.vcenter.ClusterOperationResponse)2 ClusterOperationRequest (com.dell.cpsd.virtualization.capabilities.api.ClusterOperationRequest)2 ClusterOperationRequestMessage (com.dell.cpsd.virtualization.capabilities.api.ClusterOperationRequestMessage)2 VCenterHostPowerOperationStatus (com.dell.cpsd.paqx.fru.rest.dto.VCenterHostPowerOperationStatus)1 com.dell.cpsd.paqx.fru.rest.dto.vCenterSystemProperties (com.dell.cpsd.paqx.fru.rest.dto.vCenterSystemProperties)1