Package com.amazonaws.services.s3

Examples of com.amazonaws.services.s3.AmazonS3Client.shutdown()


                }
            }
            s3service.deleteBucket(bucket);
            LOG.info("bucket: " + bucket + " deleted");
            tmx.shutdownNow();
            s3service.shutdown();
        }
    }

}
View Full Code Here


                break;
            }
            prevObjectListing = s3service.listNextBatchOfObjects(prevObjectListing);
        }
        s3service.deleteBucket(bucketName);
        s3service.shutdown();
    }

    /**
     * Read a configuration properties file. If the file name ends with ";burn",
     * the file is deleted after reading.
View Full Code Here

         
          copy(s3object, hdfsFile, reporter);                             
         
          s3object.close();
          hdfsFile.close();
          s3Client.shutdown();
         
          return;
        }
        catch (Exception e) {
          // clean up attempt
View Full Code Here

       
      } catch (Throwable e) {
        e.printStackTrace() ;
        exitWithError = true ;
      } finally {
        client.shutdown() ;
      }
    }
   
    System.exit (exitWithError ? 1 : 0) ;
  }
View Full Code Here

            return result;
        }
        finally {
            if (s3Client != AwsUtils.s3Client)
                s3Client.shutdown();
        }
    }

    /**
     * Get list of months in from the file names.
View Full Code Here

            else
                return download;
        }
        finally {
            if (s3Client != AwsUtils.s3Client)
                s3Client.shutdown();
        }
    }

    public static boolean downloadFileIfChangedSince(String bucketName, String bucketFilePrefix, File file, long milles) {
        ObjectMetadata metadata = s3Client.getObjectMetadata(bucketName, bucketFilePrefix + file.getName());
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.