Tabnine Logo
UploadResult.getETag
Code IndexAdd Tabnine to your IDE (free)

How to use
getETag
method
in
com.amazonaws.services.s3.transfer.model.UploadResult

Best Java code snippets using com.amazonaws.services.s3.transfer.model.UploadResult.getETag (Showing top 3 results out of 315)

origin: EMCECS/ecs-sync

  @Override
  public String call() throws Exception {
    return upload.waitForUploadResult().getETag();
  }
}, OPERATION_MPU);
origin: io.ifar.skid-road/skid-road

@Override
public void put(String uri, File f) throws AmazonClientException {
  LOG.trace("Uploading " + uri);
  String[] parts = pieces(uri);
  ObjectMetadata om = new ObjectMetadata();
  om.setContentLength(f.length());
  if (f.getName().endsWith("gzip")) {
    om.setContentEncoding("gzip");
  }
  uploadsInProgress.incrementAndGet();
  try {
    PutObjectRequest req = new PutObjectRequest(parts[0],parts[1],f);
    req.setMetadata(om);
    UploadResult resp = svc.upload(req).waitForUploadResult();
    LOG.trace("Uploaded " + uri + " with ETag " + resp.getETag());
  } catch (InterruptedException ie) {
    LOG.error("Interrupted while uploading {} to {}.",
        f.getPath(), uri);
    throw Throwables.propagate(ie);
  } finally {
    uploadsInProgress.decrementAndGet();
  }
}
origin: io.digdag/digdag-storage-s3

UploadResult result = transferManager.upload(req).waitForUploadResult();
return result.getETag();
com.amazonaws.services.s3.transfer.modelUploadResultgetETag

Javadoc

Returns the entity tag identifying the new object. An entity tag is an opaque string that changes if and only if an object's data changes.

Popular methods of UploadResult

  • <init>
  • setBucketName
    Sets the name of the bucket containing the uploaded object.
  • setETag
    Sets the entity tag identifying the new object. An entity tag is an opaque string that changes if an
  • setKey
    Sets the key of the newly created object.
  • setVersionId
    Sets the version ID of the new object, only present if versioning has been enabled for the bucket.

Popular in Java

  • Start an intent from android
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • setContentView (Activity)
  • putExtra (Intent)
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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