Package com.cloud.bridge.service

Examples of com.cloud.bridge.service.S3BucketAdapter.deleteContainer()


      }
      finally
      {
        if(!success && shostTuple != null) {
          S3BucketAdapter bucketAdapter =  getStorageHostBucketAdapter(shostTuple.getFirst());
          bucketAdapter.deleteContainer(shostTuple.getSecond(), request.getBucketName());
        }
        PersistContext.releaseNamedLock("bucket.creation");
      }
     
    } else {
View Full Code Here


      
       // -> delete the file
       Tuple<SHost, String> tupleBucketHost = getBucketStorageHost(sbucket);
       S3BucketAdapter bucketAdapter = getStorageHostBucketAdapter(tupleBucketHost.getFirst());     
       bucketAdapter.deleteContainer(tupleBucketHost.getSecond(), request.getBucketName());
     
       // -> cascade-deleting can delete related SObject/SObjectItem objects, but not SAcl, SMeta and policy objects. We
       //    need to perform deletion of these objects related to bucket manually.
       //    Delete SMeta & SAcl objects: (1)Get all the objects in the bucket, (2)then all the items in each object, (3) then all meta & acl data for each item
       Set<SObject> objectsInBucket = sbucket.getObjectsInBucket();
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.