Examples of deleteSnapshot()


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

        return ec2Service.deleteSecurityGroup(deleteSecurityGroup);
    }

    public DeleteSnapshotResponse deleteSnapshot(DeleteSnapshot deleteSnapshot) {
        AmazonEC2SkeletonInterface ec2Service = ServiceProvider.getInstance().getServiceImpl(AmazonEC2SkeletonInterface.class);
        return ec2Service.deleteSnapshot(deleteSnapshot);
    }

    public DeleteSpotDatafeedSubscriptionResponse deleteSpotDatafeedSubscription(DeleteSpotDatafeedSubscription deleteSpotDatafeedSubscription) {
        AmazonEC2SkeletonInterface ec2Service = ServiceProvider.getInstance().getServiceImpl(AmazonEC2SkeletonInterface.class);
        return ec2Service.deleteSpotDatafeedSubscription(deleteSpotDatafeedSubscription);
View Full Code Here

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

    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);
    }

    /** {@inheritDoc} */
    @Override
    public void terminateInstance(String instanceId) {
View Full Code Here

Examples of com.cybozu.vmbkp.soap.VirtualMachineManager.deleteSnapshot()

        throws Exception
    {
        String snapName = "snapshot-test";
        VirtualMachineManager vmm = gm_.searchVmWithName(vmName_);
        assert vmm != null;
        vmm.deleteSnapshot(snapName);
    }

    /**
     * Get configuration of all virtual machines.
     */
 
View Full Code Here

Examples of com.semagia.atomico.server.storage.IModifiableStorage.deleteSnapshot()

    public Response deleteSnapshot() throws StorageException {
        final IModifiableStorage storage = super.getModifiableStorage();
        if (storage == null) {
            return ResponseUtils.methodNotAllowed();
        }
        final boolean success = storage.deleteSnapshot(_collInfo.getCollectionId(), _snapshotInfo.getSnapshotId());
        final ResponseBuilder builder = success ? Response.ok() : Response.status(Status.INTERNAL_SERVER_ERROR);
        return builder.build();
    }

    /**
 
View Full Code Here

Examples of it.eng.spagobi.analiticalmodel.document.dao.ISnapshotDAO.deleteSnapshot()

          if(numSnap>=histLen){
            int delta = numSnap - histLen;
            for(int i=0; i<=delta; i++) {
              Snapshot snap = SchedulerUtilities.getNamedHistorySnapshot(allsnapshots, snapName, histLen-1);
              Integer snapId = snap.getId();
              snapDao.deleteSnapshot(snapId);
            }
          }
        } catch(Exception e) {
          logger.error("Error while deleting object snapshots", e);
        }
View Full Code Here

Examples of it.eng.spagobi.analiticalmodel.document.dao.ISnapshotDAO.deleteSnapshot()

        Iterator it = snapshotIdsList.iterator();
        while (it.hasNext()) {
          String snapshotIdStr = (String) it.next();
          Integer snapId = new Integer(snapshotIdStr);
          logger.error("Deleting snaphost with id = " + snapId + " ...");
          snapdao.deleteSnapshot(snapId);
        }
      }
    } else {
      logger.error("Current user [" + profile.getUserId().toString() + "] CANNOT erase snapshots!!");
    }
View Full Code Here

Examples of it.eng.spagobi.analiticalmodel.document.dao.ISnapshotDAO.deleteSnapshot()

        }
        if (snapshot.getBiobjId().equals(obj.getId())) {
          logger.info("User [id: " + userProfile.getUserUniqueIdentifier() + ", userId: " + userProfile.getUserId() + ", name: " + userProfile.getUserName() + "] " +
              "is deleting scheduled execution [id: " + snapshot.getId() + ", name: " + snapshot.getName() + "] ...");
          try {
            dao.deleteSnapshot(id);
          } catch (EMFUserError e) {
            throw new SpagoBIServiceException(SERVICE_NAME, "Error while deleting scheduled execution", e);
          }
          logger.debug("Scheduled execution [id: " + snapshot.getId() + ", name: " + snapshot.getName() + "] deleted.");
        } else {
View Full Code Here

Examples of org.apache.cloudstack.engine.subsystem.api.storage.SnapshotStrategy.deleteSnapshot()

            snapshotStrategy = strategy;
            break;
          }
        }
        try {
          boolean result = snapshotStrategy.deleteSnapshot(snapshotId);
          if (result) {
            if (snapshotCheck.getState() == Snapshot.State.BackedUp) {
              UsageEventUtils.publishUsageEvent(EventTypes.EVENT_SNAPSHOT_DELETE, snapshotCheck.getAccountId(),
                  snapshotCheck.getDataCenterId(), snapshotId, snapshotCheck.getName(), null, null, 0L,
                  snapshotCheck.getClass().getName(), snapshotCheck.getUuid());
View Full Code Here

Examples of org.apache.cloudstack.engine.subsystem.api.storage.SnapshotStrategy.deleteSnapshot()

                    if (strategy.canHandle(snap)) {
                        snapshotStrategy = strategy;
                        break;
                    }
                }
                if (snapshotStrategy.deleteSnapshot(snapshot.getId())) {
                    if (snapshot.getRecurringType() == Type.MANUAL) {
                        _resourceLimitMgr.decrementResourceCount(accountId, ResourceType.snapshot);
                        _resourceLimitMgr.decrementResourceCount(accountId, ResourceType.secondary_storage,
                                new Long(snapshot.getSize()));
                    }
View Full Code Here

Examples of org.apache.hadoop.fs.FileSystem.deleteSnapshot()

      Assert.assertTrue(webHdfs.exists(spath));
      final Path s1path = SnapshotTestHelper.getSnapshotRoot(foo, "s1");
      Assert.assertTrue(webHdfs.exists(s1path));

      // delete the two snapshots
      webHdfs.deleteSnapshot(foo, "s1");
      Assert.assertFalse(webHdfs.exists(s1path));
      webHdfs.deleteSnapshot(foo, spath.getName());
      Assert.assertFalse(webHdfs.exists(spath));
    } finally {
      if (cluster != null) {
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.