Examples of describeSnapshots()


Examples of com.amazon.ec2.AmazonEC2SkeletonInterface.describeSnapshots()

        return ec2Service.describeSnapshotAttribute(describeSnapshotAttribute);
    }

    public DescribeSnapshotsResponse describeSnapshots(DescribeSnapshots describeSnapshots) {
        AmazonEC2SkeletonInterface ec2Service = ServiceProvider.getInstance().getServiceImpl(AmazonEC2SkeletonInterface.class);
        return ec2Service.describeSnapshots(describeSnapshots);
    }

    public DescribeSpotDatafeedSubscriptionResponse describeSpotDatafeedSubscription(DescribeSpotDatafeedSubscription describeSpotDatafeedSubscription) {
        AmazonEC2SkeletonInterface ec2Service = ServiceProvider.getInstance().getServiceImpl(AmazonEC2SkeletonInterface.class);
        return ec2Service.describeSpotDatafeedSubscription(describeSpotDatafeedSubscription);
View Full Code Here

Examples of com.amazonaws.services.ec2.AmazonEC2.describeSnapshots()

        // Set the owner id to self to avoid getting snapshots from other accounts.
        request.withOwnerIds(Arrays.<String>asList("self"));
        if (snapshotIds != null) {
            request.setSnapshotIds(Arrays.asList(snapshotIds));
        }
        DescribeSnapshotsResult result = ec2Client.describeSnapshots(request);
        List<Snapshot> snapshots = result.getSnapshots();

        LOGGER.info(String.format("Got %d EBS snapshots in region %s.", snapshots.size(), region));
        return snapshots;
    }
View Full Code Here

Examples of com.cloud.bridge.service.core.ec2.EC2Engine.describeSnapshots()

        }

        // -> execute the request
        EC2Engine engine = ServiceProvider.getInstance().getEC2Engine();
        DescribeSnapshotsResponse EC2response = EC2SoapServiceImpl.toDescribeSnapshotsResponse(
                engine.describeSnapshots( EC2request ));
        serializeResponse(response, EC2response);
            }


    private void describeVolumes( HttpServletRequest request, HttpServletResponse response )
View Full Code Here

Examples of com.cloud.bridge.service.core.ec2.EC2Engine.describeSnapshots()

            EC2request.setFilterSet(sfs);
        }

        // -> execute the request
        EC2Engine engine = ServiceProvider.getInstance().getEC2Engine();
        DescribeSnapshotsResponse EC2response = EC2SoapServiceImpl.toDescribeSnapshotsResponse(engine.describeSnapshots(EC2request));
        serializeResponse(response, EC2response);
    }

    private void describeVolumes(HttpServletRequest request, HttpServletResponse response) throws ADBException, XMLStreamException, IOException {
        EC2DescribeVolumes EC2request = new EC2DescribeVolumes();
View Full Code Here

Examples of com.cloud.bridge.service.core.ec2.EC2Engine.describeSnapshots()

        }

        // -> execute the request
        EC2Engine engine = ServiceProvider.getInstance().getEC2Engine();
        DescribeSnapshotsResponse EC2response = EC2SoapServiceImpl.toDescribeSnapshotsResponse(
                engine.describeSnapshots( EC2request ));
        serializeResponse(response, EC2response);
            }


    private void describeVolumes( HttpServletRequest request, HttpServletResponse response )
View Full Code Here

Examples of com.netflix.simianarmy.client.aws.AWSClient.describeSnapshots()

        Assert.assertEquals(snapshot.getLaunchTime(), startTime);
    }

    private AWSClient createMockAWSClient(List<Snapshot> snapshotList, String... ids) {
        AWSClient awsMock = mock(AWSClient.class);
        when(awsMock.describeSnapshots(ids)).thenReturn(snapshotList);
        when(awsMock.region()).thenReturn("us-east-1");
        return awsMock;
    }

    private List<Snapshot> createSnapshotList(Date startTime) {
View Full Code Here

Examples of com.netflix.simianarmy.client.aws.AWSClient.describeSnapshots()

        refreshSnapshotToAMIs();

        List<Resource> resources = new LinkedList<Resource>();
        AWSClient awsClient = getAWSClient();

        for (Snapshot snapshot : awsClient.describeSnapshots(snapshotIds)) {
            Resource snapshotResource = new AWSResource().withId(snapshot.getSnapshotId())
                    .withRegion(getAWSClient().region()).withResourceType(AWSResourceType.EBS_SNAPSHOT)
                    .withLaunchTime(snapshot.getStartTime()).withDescription(snapshot.getDescription());
            for (Tag tag : snapshot.getTags()) {
                LOGGER.debug(String.format("Adding tag %s = %s to resource %s",
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.