Package com.sequenceiq.cloudbreak.service.stack.flow

Examples of com.sequenceiq.cloudbreak.service.stack.flow.CoreInstanceMetaData


            GccCredential credential = (GccCredential) stack.getCredential();
            GccTemplate template = (GccTemplate) stack.getTemplate();
            Compute.Instances.Get instanceGet = compute.instances().get(
                    credential.getProjectId(), template.getGccZone().getValue(), resource);
            Instance executeInstance = instanceGet.execute();
            CoreInstanceMetaData coreInstanceMetaData = new CoreInstanceMetaData(
                    resource,
                    executeInstance.getNetworkInterfaces().get(0).getNetworkIP(),
                    executeInstance.getNetworkInterfaces().get(0).getAccessConfigs().get(0).getNatIP(),
                    template.getVolumeCount(),
                    longName(resource, credential.getProjectId()),
View Full Code Here


        Map<String, Object> props = new HashMap<>();
        props.put(NAME, resource.getResourceName());
        props.put(SERVICENAME, resource.getResourceName());
        Object virtualMachine = azureClient.getVirtualMachine(props);
        try {
            CoreInstanceMetaData instanceMetaData = new CoreInstanceMetaData(
                    resource.getResourceName(),
                    getPrivateIP((String) virtualMachine),
                    resource.getResourceName() + ".cloudapp.net",
                    stack.getTemplate().getVolumeCount(),
                    getLongName((String) virtualMachine)
View Full Code Here

        DescribeInstancesRequest instancesRequest = new DescribeInstancesRequest().withInstanceIds(instanceIds);
        DescribeInstancesResult instancesResult = amazonEC2Client.describeInstances(instancesRequest);
        for (Reservation reservation : instancesResult.getReservations()) {
            for (com.amazonaws.services.ec2.model.Instance instance : reservation.getInstances()) {
                coreInstanceMetadata.add(new CoreInstanceMetaData(
                        instance.getInstanceId(),
                        instance.getPrivateIpAddress(),
                        instance.getPublicDnsName(),
                        instance.getBlockDeviceMappings().size() - 1,
                        instance.getPrivateDnsName()
View Full Code Here

                    public boolean apply(InstanceMetaData input) {
                        return input.getInstanceId().equals(instance.getInstanceId());
                    }
                });
                if (!metadataExists) {
                    coreInstanceMetadata.add(new CoreInstanceMetaData(
                            instance.getInstanceId(),
                            instance.getPrivateIpAddress(),
                            instance.getPublicDnsName(),
                            instance.getBlockDeviceMappings().size() - 1,
                            instance.getPrivateDnsName()
View Full Code Here

TOP

Related Classes of com.sequenceiq.cloudbreak.service.stack.flow.CoreInstanceMetaData

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.