Examples of DeleteSnapshotRequest


Examples of com.amazonaws.services.ec2.model.DeleteSnapshotRequest

  }

  /** unregister EBS snapshot; will fail if snapshot still in use */
  public void snapshotDelete(final String snapshotId) throws Exception {

    final DeleteSnapshotRequest request = new DeleteSnapshotRequest();
    request.setSnapshotId(snapshotId);

    amazonClient.deleteSnapshot(request);

    logger.info("removed snapshotId = " + snapshotId);

View Full Code Here

Examples of com.amazonaws.services.ec2.model.DeleteSnapshotRequest

    @Override
    public void deleteSnapshot(String snapshotId) {
        Validate.notEmpty(snapshotId);
        LOGGER.info(String.format("Deleting snapshot %s in region %s.", snapshotId, region));
        AmazonEC2 ec2Client = ec2Client();
        DeleteSnapshotRequest request = new DeleteSnapshotRequest().withSnapshotId(snapshotId);
        ec2Client.deleteSnapshot(request);
    }
View Full Code Here

Examples of com.amazonaws.services.ec2.model.DeleteSnapshotRequest

        delete((ResultCapture<Void>)null);
    }

    @Override
    public void delete(ResultCapture<Void> extractor) {
        DeleteSnapshotRequest request = new DeleteSnapshotRequest();
        delete(request, extractor);
    }
View Full Code Here

Examples of com.amazonaws.services.ec2.model.DeleteSnapshotRequest

  }

  /** unregister EBS snapshot; will fail if snapshot still in use */
  public void snapshotDelete(final String snapshotId) throws Exception {

    final DeleteSnapshotRequest request = new DeleteSnapshotRequest();
    request.setSnapshotId(snapshotId);

    amazonClient.deleteSnapshot(request);

    logger.info("removed snapshotId = " + snapshotId);

View Full Code Here

Examples of org.apache.hadoop.hbase.protobuf.generated.MasterAdminProtos.DeleteSnapshotRequest

  public void testDeleteSnapshot() throws Exception {

    String snapshotName = "completed";
    SnapshotDescription snapshot = SnapshotDescription.newBuilder().setName(snapshotName).build();

    DeleteSnapshotRequest request = DeleteSnapshotRequest.newBuilder().setSnapshot(snapshot)
        .build();
    try {
      master.deleteSnapshot(null, request);
      fail("Master didn't throw exception when attempting to delete snapshot that doesn't exist");
    } catch (ServiceException e) {
View Full Code Here

Examples of org.apache.hadoop.hbase.protobuf.generated.MasterAdminProtos.DeleteSnapshotRequest

  public void testDeleteSnapshot() throws Exception {

    String snapshotName = "completed";
    SnapshotDescription snapshot = SnapshotDescription.newBuilder().setName(snapshotName).build();

    DeleteSnapshotRequest request = DeleteSnapshotRequest.newBuilder().setSnapshot(snapshot)
        .build();
    try {
      master.deleteSnapshot(null, request);
      fail("Master didn't throw exception when attempting to delete snapshot that doesn't exist");
    } catch (ServiceException e) {
View Full Code Here

Examples of org.apache.hadoop.hbase.protobuf.generated.MasterProtos.DeleteSnapshotRequest

  public void testDeleteSnapshot() throws Exception {

    String snapshotName = "completed";
    SnapshotDescription snapshot = SnapshotDescription.newBuilder().setName(snapshotName).build();

    DeleteSnapshotRequest request = DeleteSnapshotRequest.newBuilder().setSnapshot(snapshot)
        .build();
    try {
      master.getMasterRpcServices().deleteSnapshot(null, request);
      fail("Master didn't throw exception when attempting to delete snapshot that doesn't exist");
    } catch (ServiceException e) {
View Full Code Here

Examples of org.apache.hadoop.hbase.protobuf.generated.MasterProtos.DeleteSnapshotRequest

  public void testDeleteSnapshot() throws Exception {

    String snapshotName = "completed";
    SnapshotDescription snapshot = SnapshotDescription.newBuilder().setName(snapshotName).build();

    DeleteSnapshotRequest request = DeleteSnapshotRequest.newBuilder().setSnapshot(snapshot)
        .build();
    try {
      master.deleteSnapshot(null, request);
      fail("Master didn't throw exception when attempting to delete snapshot that doesn't exist");
    } catch (ServiceException e) {
View Full Code Here

Examples of org.apache.hadoop.hbase.protobuf.generated.MasterProtos.DeleteSnapshotRequest

  public void testDeleteSnapshot() throws Exception {

    String snapshotName = "completed";
    SnapshotDescription snapshot = SnapshotDescription.newBuilder().setName(snapshotName).build();

    DeleteSnapshotRequest request = DeleteSnapshotRequest.newBuilder().setSnapshot(snapshot)
        .build();
    try {
      master.deleteSnapshot(null, request);
      fail("Master didn't throw exception when attempting to delete snapshot that doesn't exist");
    } catch (ServiceException e) {
View Full Code Here

Examples of org.apache.hadoop.hbase.protobuf.generated.MasterProtos.DeleteSnapshotRequest

  public void testDeleteSnapshot() throws Exception {

    String snapshotName = "completed";
    SnapshotDescription snapshot = SnapshotDescription.newBuilder().setName(snapshotName).build();

    DeleteSnapshotRequest request = DeleteSnapshotRequest.newBuilder().setSnapshot(snapshot)
        .build();
    try {
      master.getMasterRpcServices().deleteSnapshot(null, request);
      fail("Master didn't throw exception when attempting to delete snapshot that doesn't exist");
    } catch (ServiceException e) {
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.