Package com.sequenceiq.cloudbreak.domain

Examples of com.sequenceiq.cloudbreak.domain.Resource


    @Before
    public void setUp() {
        underTest = new ProvisionCompleteHandler();
        MockitoAnnotations.initMocks(this);
        resourceSet = new HashSet<>();
        resourceSet.add(new Resource(ResourceType.CLOUDFORMATION_STACK, "", new Stack()));
        event = createEvent();
    }
View Full Code Here


        props.put(AFFINITYGROUP, po.getCommonName());
        AzureClient azureClient = po.getNewAzureClient(azureCredential);
        HttpResponseDecorator cloudServiceResponse = (HttpResponseDecorator) azureClient.createCloudService(props);
        String requestId = (String) azureClient.getRequestId(cloudServiceResponse);
        waitUntilComplete(azureClient, requestId);
        return Arrays.asList(new Resource(ResourceType.AZURE_CLOUD_SERVICE, vmName, stack));
    }
View Full Code Here

            } else {
                LOGGER.error(String.format("Error occurs on %s stack under the affinity group creation", stack.getId()), ex);
                throw new StackCreationFailureException(ex);
            }
        }
        return Arrays.asList(new Resource(ResourceType.AZURE_AFFINITY_GROUP, po.getCommonName(), stack));
    }
View Full Code Here

            } else {
                LOGGER.error(String.format("Error occurs on %s stack under the storage creation", stack.getId()), ex);
                throw new StackCreationFailureException(ex);
            }
        }
        return Arrays.asList(new Resource(ResourceType.AZURE_STORAGE, po.getCommonName(), stack));
    }
View Full Code Here

        props.put(VMTYPE, AzureVmType.valueOf(azureTemplate.getVmType()).vmType().replaceAll(" ", ""));
        AzureClient azureClient = po.getNewAzureClient(azureCredential);
        HttpResponseDecorator virtualMachineResponse = (HttpResponseDecorator) azureClient.createVirtualMachine(props);
        String requestId = (String) azureClient.getRequestId(virtualMachineResponse);
        waitUntilComplete(azureClient, requestId);
        return Arrays.asList(new Resource(resourceType(), vmName, stack));
    }
View Full Code Here

            props.put(SUBNETADDRESSPREFIX, "172.16.0.0/24");
            HttpResponseDecorator virtualNetworkResponse = (HttpResponseDecorator) po.getAzureClient().createVirtualNetwork(props);
            String requestId = (String) po.getAzureClient().getRequestId(virtualNetworkResponse);
            waitUntilComplete(po.getAzureClient(), requestId);
        }
        return Arrays.asList(new Resource(ResourceType.AZURE_NETWORK, name, stack));
    }
View Full Code Here

TOP

Related Classes of com.sequenceiq.cloudbreak.domain.Resource

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.