congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
ObjectKey
Code IndexAdd Tabnine to your IDE (free)

How to use
ObjectKey
in
com.emc.object.s3.bean

Best Java code snippets using com.emc.object.s3.bean.ObjectKey (Showing top 4 results out of 315)

origin: com.emc.ecs/object-client

  public DeleteObjectsRequest withKeys(String... keys) {
    ObjectKey[] objects = new ObjectKey[keys.length];
    for (int i = 0; i < keys.length; i++) {
      objects[i] = new ObjectKey(keys[i]);
    }
    return withKeys(objects);
  }
}
origin: pravega/pravega

@Override
public DeleteObjectsResult deleteObjects(DeleteObjectsRequest request) {
  for (ObjectKey obj : request.getDeleteObjects().getKeys()) {
    this.deleteObject(request.getBucketName(), obj.getKey());
  }
  return new DeleteObjectsResult();
}
origin: EMCECS/ecs-sync

while (targetVersions.hasPrevious()) { // go in reverse order
  S3ObjectVersion version = targetVersions.previous();
  deleteVersions.add(new ObjectKey(identifier, version.getVersionId()));
origin: pravega/pravega

TestContext() throws Exception {
  String bucketName = BUCKET_NAME_PREFIX + UUID.randomUUID().toString();
  this.adapterConfig = ExtendedS3StorageConfig.builder()
      .with(ExtendedS3StorageConfig.BUCKET, bucketName)
      .with(ExtendedS3StorageConfig.ACCESS_KEY_ID, "x")
      .with(ExtendedS3StorageConfig.SECRET_KEY, "x")
      .with(ExtendedS3StorageConfig.ROOT, "test")
      .with(ExtendedS3StorageConfig.URI, endpoint)
      .build();
  URI uri = URI.create(endpoint);
  s3Config = new S3Config(uri)
      .withIdentity(adapterConfig.getAccessKey()).withSecretKey(adapterConfig.getSecretKey());
  s3Proxy = new S3ProxyImpl(endpoint, s3Config);
  s3Proxy.start();
  client = new S3JerseyClientWrapper(s3Config, s3Proxy);
  client.createBucket(bucketName);
  List<ObjectKey> keys = client.listObjects(bucketName).getObjects().stream()
      .map(object -> new ObjectKey(object.getKey()))
      .collect(Collectors.toList());
  if (!keys.isEmpty()) {
    client.deleteObjects(new DeleteObjectsRequest(bucketName).withKeys(keys));
  }
}
com.emc.object.s3.beanObjectKey

Most used methods

  • <init>
  • getKey

Popular in Java

  • Reactive rest calls using spring rest template
  • requestLocationUpdates (LocationManager)
  • onRequestPermissionsResult (Fragment)
  • setRequestProperty (URLConnection)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • Best plugins for Eclipse
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