Tabnine Logo
org.jets3t.service
Code IndexAdd Tabnine to your IDE (free)

How to use org.jets3t.service

Best Java code snippets using org.jets3t.service (Showing top 20 results out of 315)

origin: Alluxio/alluxio

@Override
public String[] getCommonPrefixes() {
 return mChunk.getCommonPrefixes();
}
origin: Alluxio/alluxio

 @Override
 public ObjectListingChunk getNextChunk() throws IOException {
  if (!mChunk.isListingComplete()) {
   StorageObjectsChunk nextChunk = getObjectListingChunk(mChunk.getPrefix(),
     mChunk.getDelimiter(), mChunk.getPriorLastKey());
   if (nextChunk != null) {
    return new GCSObjectListingChunk(nextChunk);
   }
  }
  return null;
 }
}
origin: Alluxio/alluxio

@Override
public ObjectStatus[] getObjectStatuses() {
 StorageObject[] objects = mChunk.getObjects();
 ObjectStatus[] ret = new ObjectStatus[objects.length];
 for (int i = 0; i < ret.length; ++i) {
  ret[i] = new ObjectStatus(objects[i].getKey(), objects[i].getMd5HashAsBase64(),
    objects[i].getContentLength(), objects[i].getLastModifiedDate().getTime());
 }
 return ret;
}
origin: opentripplanner/OpenTripPlanner

AWSCredentials awsCredentials = new AWSCredentials(awsAccessKey, awsSecretKey);
try {
  S3Service s3Service = new RestS3Service(awsCredentials);
  String key = formatLatLon(x, y) + ".tiff";
  S3Object object = s3Service.getObject(awsBucketName, key);
  InputStream istream = object.getDataInputStream();
  FileOutputStream ostream = new FileOutputStream(path);
origin: net.java.dev.jets3t/jets3t

@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);
  }
}
origin: net.java.dev.jets3t/jets3t

@Override
public S3Bucket getOrCreateBucket(String bucketName) throws S3ServiceException {
  try {
    return this.getOrCreateBucket(bucketName,
        getJetS3tProperties().getStringProperty(
        "s3service.default-bucket-location", "US"));
  } catch (ServiceException se) {
    throw new S3ServiceException(se);
  }
}
origin: net.java.dev.jets3t/jets3t

public void run() {
  try {
    result = s3Service.copyObject(sourceBucketName, sourceObjectKey,
      destinationBucketName, destinationObject, replaceMetadata);
  } catch (ServiceException se) {
    result = new S3ServiceException(se);
  }
}
origin: net.java.dev.jets3t/jets3t

@Override
protected String getBucketLocationImpl(String bucketName)
  throws S3ServiceException
{
  try {
    return super.getBucketLocationImpl(bucketName);
  } catch (ServiceException se) {
    throw new S3ServiceException(se);
  }
}
origin: Alluxio/alluxio

 @Override
 protected InputStream openObject(String key, OpenOptions options) throws IOException {
  try {
   return new GCSInputStream(mBucketName, key, mClient, options.getOffset());
  } catch (ServiceException e) {
   throw new IOException(e.getMessage());
  }
 }
}
origin: net.java.dev.jets3t/jets3t

/**
 * @return
 * true if the "filecomparer.skip-symlinks" configuration option is set.
 */
public boolean isSkipSymlinks() {
  return jets3tProperties.getBoolProperty("filecomparer.skip-symlinks", false);
}
origin: net.java.dev.jets3t/jets3t

public void run() {
  try {
    result = ((S3Service)storageService).multipartStartUpload(bucketName,
      (S3Object)object);
  } catch (ServiceException e) {
    result = e;
  }
}
origin: net.java.dev.jets3t/jets3t

public void run() {
  try {
    result = ((S3Service)storageService).multipartCompleteUpload(multipartUpload);
  } catch (ServiceException e) {
    result = e;
  }
}
origin: net.java.dev.jets3t/jets3t

/**
 * @return the credentials in the underlying storage service.
 */
public ProviderCredentials getProviderCredentials() {
  return storageService.getProviderCredentials();
}
origin: net.java.dev.jets3t/jets3t

/**
 * Deletes a bucket. Only the owner of a bucket may delete it.
 * <p>
 * This method cannot be performed by anonymous services.
 *
 * @param bucketName
 * the name of the bucket to delete.
 * @throws ServiceException
 */
public void deleteBucket(String bucketName) throws ServiceException {
  deleteBucketImpl(bucketName);
}
origin: net.java.dev.jets3t/jets3t

/**
 * Delete a bucket's lifecycle configuration; removes the effect of any previously-applied
 * configuration.
 *
 * @param bucketName
 * a bucket with a lifecycle configuration.
 * @throws S3ServiceException
 */
public void deleteLifecycleConfig(String bucketName) throws S3ServiceException {
  deleteLifecycleConfigImpl(bucketName);
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.jets3t

@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);
  }
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.jets3t

@Override
public S3Bucket getOrCreateBucket(String bucketName) throws S3ServiceException {
  try {
    return this.getOrCreateBucket(bucketName,
        getJetS3tProperties().getStringProperty(
        "s3service.default-bucket-location", "US"));
  } catch (ServiceException se) {
    throw new S3ServiceException(se);
  }
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.jets3t

public void run() {
  try {
    result = s3Service.copyObject(sourceBucketName, sourceObjectKey,
      destinationBucketName, destinationObject, replaceMetadata);
  } catch (ServiceException se) {
    result = new S3ServiceException(se);
  }
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.jets3t

@Override
protected String getBucketLocationImpl(String bucketName)
  throws S3ServiceException
{
  try {
    return super.getBucketLocationImpl(bucketName);
  } catch (ServiceException se) {
    throw new S3ServiceException(se);
  }
}
origin: net.java.dev.jets3t/jets3t

/**
 * @return
 * true if the "filecomparer.generate-md5-files" configuration option is set.
 */
public boolean isGenerateMd5Files() {
  return jets3tProperties.getBoolProperty("filecomparer.generate-md5-files", false);
}
org.jets3t.service

Most used classes

  • S3Object
    An S3 object.
  • RestS3Service
    REST/HTTP implementation of an S3Service based on theHttpClient [http://jakarta.apache.org/commons/h
  • AWSCredentials
    Class to contain the Amazon Web Services (AWS) credentials of a user. This class also includes utili
  • S3Service
    A service that handles communication with S3, offering all the operations that can be performed on S
  • Jets3tProperties
    Utility class to load and store JetS3t-specific properties. Properties are initially loaded via getI
  • StorageObject,
  • ServiceException,
  • StorageObjectsChunk,
  • S3ServiceException,
  • Permission,
  • ServiceUtils,
  • S3ObjectsChunk,
  • AccessControlList,
  • GSObject,
  • CanonicalGrantee,
  • GrantAndPermission,
  • GranteeInterface,
  • GSAccessControlList,
  • XmlResponsesSaxParser
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now