public void run() { try { result = s3Service.createBucket(bucket); } catch (S3ServiceException e) { result = e; } }
public void run() { try { result = s3Service.createBucket(bucket); } catch (S3ServiceException e) { result = e; } }
@Override public void mkdir() throws IOException { try { service.createBucket(bucketName); } catch(S3ServiceException e) { throw getIOException(e); } }
/** * * @param containerName * @throws StorageCommunicationException * @see org.opencredo.cloud.storage.StorageOperations#createContainer(java.lang.String) */ public void createContainer(String containerName) throws StorageCommunicationException { Assert.notNull(containerName, "Bucket name cannot be null"); try { s3Service.createBucket(new S3Bucket(containerName)); } catch (S3ServiceException e) { throw new StorageCommunicationException("Bucket creation problem", e); } }
@Override public S3Bucket createBucket(String bucketName) throws S3ServiceException { try { return this.createBucket(bucketName, getJetS3tProperties().getStringProperty( "s3service.default-bucket-location", "US"), null); } catch (ServiceException se) { throw new S3ServiceException(se); } }
@Override public S3Bucket createBucket(String bucketName) throws S3ServiceException { try { return this.createBucket(bucketName, getJetS3tProperties().getStringProperty( "s3service.default-bucket-location", "US"), null); } catch (ServiceException se) { throw new S3ServiceException(se); } }
private void createBucket(String bucketName) throws IOException { try { s3Service.createBucket(bucketName); } catch (S3ServiceException e) { if (e.getCause() instanceof IOException) { throw (IOException) e.getCause(); } throw new S3Exception(e); } }
private void createBucket(String bucketName) throws IOException { try { s3Service.createBucket(bucketName); } catch (S3ServiceException e) { if (e.getCause() instanceof IOException) { throw (IOException) e.getCause(); } throw new S3Exception(e); } }
if (bucket == null) { bucket = createBucket(new S3Bucket(bucketName, location));
if (bucket == null) { bucket = createBucket(new S3Bucket(bucketName, location));
bucket = s3Service.createBucket(bucketName);
bucket = s3Service.createBucket(bucketName);