Author: adriancole
Date: 2009-03-08 17:01:16 -0400 (Sun, 08 Mar 2009)
New Revision: 7882
Modified:
core/branches/flat/src/main/java/org/horizon/loader/s3/Jets3tS3Connection.java
core/branches/flat/src/main/java/org/horizon/loader/s3/S3CacheStore.java
Log:
added location of tuning properties
Modified: core/branches/flat/src/main/java/org/horizon/loader/s3/Jets3tS3Connection.java
===================================================================
---
core/branches/flat/src/main/java/org/horizon/loader/s3/Jets3tS3Connection.java 2009-03-08
03:01:49 UTC (rev 7881)
+++
core/branches/flat/src/main/java/org/horizon/loader/s3/Jets3tS3Connection.java 2009-03-08
21:01:16 UTC (rev 7882)
@@ -10,8 +10,12 @@
/**
* A {@link org.jets3t.service.S3Service jets3t} implementation of {@link S3Connection}.
+ * <p/>
+ * Tuning and configuration parameters can be overridden by creating
<tt>jets3t.properties</tt> and adding it to your
+ * classpath.
*
* @author Adrian Cole
+ * @link
http://jets3t.s3.amazonaws.com/toolkit/configuration.html
* @since 1.0
*/
public class Jets3tS3Connection implements S3Connection {
@@ -45,7 +49,7 @@
*
* @see org.jets3t.service.S3Service#deleteObject(org.jets3t.service.model.S3Bucket,
String)
*/
- public void removeObjectFromBucket(String objectKey, S3Bucket bucket) throws
S3ServiceException{
+ public void removeObjectFromBucket(String objectKey, S3Bucket bucket) throws
S3ServiceException {
s3Service.deleteObject(bucket, objectKey);
}
@@ -94,7 +98,7 @@
* @see
Jets3tS3Connection#getAllObjectsInBucketWithoutTheirData(org.jets3t.service.model.S3Bucket)
* @see S3ServiceSimpleMulti#deleteObjects(org.jets3t.service.model.S3Bucket,
org.jets3t.service.model.S3Object[])
*/
- public void removeAllObjectsFromBucket(S3Bucket bucket) throws S3ServiceException{
+ public void removeAllObjectsFromBucket(S3Bucket bucket) throws S3ServiceException {
S3Object[] objects = getAllObjectsInBucketWithoutTheirData(bucket);
s3MultiService.deleteObjects(bucket, objects);
}
Modified: core/branches/flat/src/main/java/org/horizon/loader/s3/S3CacheStore.java
===================================================================
--- core/branches/flat/src/main/java/org/horizon/loader/s3/S3CacheStore.java 2009-03-08
03:01:49 UTC (rev 7881)
+++ core/branches/flat/src/main/java/org/horizon/loader/s3/S3CacheStore.java 2009-03-08
21:01:16 UTC (rev 7882)
@@ -27,8 +27,12 @@
/**
* A {@link org.jets3t.service.S3Service jets3t} implementation of a {@link
org.horizon.loader.bucket.BucketBasedCacheStore}.
* This file store stores stuff in the following format:
<
tt>http://s3.amazon.com/{bucket}/bucket_number.bucket</tt>
+ * <p/>
+ * Tuning and configuration parameters can be overridden by creating
<tt>jets3t.properties</tt> and adding it to your
+ * classpath.
*
* @author Adrian Cole
+ * @link
http://jets3t.s3.amazonaws.com/toolkit/configuration.html
* @since 1.0
*/
public class S3CacheStore extends BucketBasedCacheStore {