Java Code Examples for com.amazonaws.services.s3.AmazonS3.listBuckets()
The following are Jave code examples for showing how to use
listBuckets() of the
com.amazonaws.services.s3.AmazonS3
class.
You can vote up the examples you like. Your votes will be used in our system to get
more good examples.
+ Save this method
Example 1
Project: radosgw-admin4j File: BaseTest.java View Source Code | 5 votes |
private static void testS3Connectivity() { try { AmazonS3 s3 = createS3(adminAccessKey, adminSecretKey); s3.listBuckets(); } catch (Exception e) { System.out.println( "Cannot make communication with radosgw S3 endpoint: " + e.getLocalizedMessage()); System.exit(0); } }