Package org.jets3t.service.impl.rest.httpclient

Examples of org.jets3t.service.impl.rest.httpclient.RestS3Service.listObjects()


    }, Beacon.SCHEMA$, AvroFormat.BINARY, null);
    Properties p = new Properties();
    p.load(getClass().getResourceAsStream("creds.properties"));
    ProviderCredentials pc = new AWSCredentials(p.getProperty("AWS_ACCESS_KEY_ID"), p.getProperty("AWS_SECRET_ACCESS_KEY"));
    final RestS3Service s3 = new RestS3Service(pc);
    S3Object[] s3Objects = s3.listObjects("com.bagcheck.archive", "beacons/", null);
    ExecutorService es = Executors.newCachedThreadPool();
    List<Callable<Void>> callables = new ArrayList<Callable<Void>>();
    for (final S3Object s3Object : s3Objects) {
      if (!s3Object.getName().equals("beacons/")) {
        callables.add(new Callable<Void>() {
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.