Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Making S3's storage class for artifacts configurable #25

Merged
merged 4 commits into from
Feb 10, 2016

Conversation

ashwanthkumar
Copy link
Member

Upgraded from target JVM of 1.6 to 1.7, esp given Java 7 has also reached EOL. I don't see a point in still using 1.6.

With regard to concerns raised at #23, this PR makes storage class configurable for all artifacts using AWS_STORAGE_CLASS environment variable.

@manojlds @Sriram-R

We now look for an environment variable - AWS_STORAGE_CLASS whose values can be one of standard, rrs or glacier. The default behaviour if none specified is standard.

Fixes #23
@@ -34,7 +56,7 @@ public void put(String from, String to, ObjectMetadata metadata) {
}

public void put(PutObjectRequest putObjectRequest) {
putObjectRequest.setStorageClass(StorageClass.ReducedRedundancy);
putObjectRequest.setStorageClass(this.storageClass);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't we set this at the time the put object request gets built? or, we don't have the info there?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't want the AWS's StorageClass leaking outside - adhan.

@brewkode
Copy link
Contributor

brewkode commented Feb 9, 2016

LGTM

@manojlds
Copy link
Member

We will update the docs at the time of cutting a release.

manojlds added a commit that referenced this pull request Feb 10, 2016
Making S3's storage class for artifacts configurable
@manojlds manojlds merged commit fbfd1aa into master Feb 10, 2016
@manojlds manojlds deleted the making-rrs-optional branch February 10, 2016 05:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants