Skip to content

Make ClientConfiguration Configurable!#30

Closed
civitaspo wants to merge 3 commits into
embulk:masterfrom
civitaspo:client_configure
Closed

Make ClientConfiguration Configurable!#30
civitaspo wants to merge 3 commits into
embulk:masterfrom
civitaspo:client_configure

Conversation

@civitaspo

Copy link
Copy Markdown

Hi @frsyuki @muga

I wrote ClientConfigurationConfiguable class, which make it possible to be configured ClientConfiguration by users' config.yml.
(Because I want to change the maxErrorRetry parameter.)

So, how do you think?

NOTE: RetryPolicy and DnsResolver is interface, so they cannot be configured by the yaml.

@ConfigDefault("null")
public Optional<String> getAccessKeyId();

// TODO timeout, ssl, etc

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

This p-r meets the requirements of this TODO?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

yes

@civitaspo

Copy link
Copy Markdown
Author

(If you have a good class name for ClientConfigurationConfiguable, plz tell me. It's so long...)

@civitaspo civitaspo changed the title Client configure Make ClientConfiguration Configurable! Mar 30, 2016
import java.security.SecureRandom;

/**
* Created by takahiro.nakayama on 3/25/16.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

please don't add this line

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Ok, I remove this from next time.

@frsyuki

frsyuki commented Apr 12, 2016

Copy link
Copy Markdown
Contributor

I commented. I created #31.

@civitaspo

Copy link
Copy Markdown
Author

This p-r was merged to #31, so close this.

@civitaspo civitaspo closed this Apr 12, 2016
@civitaspo
civitaspo deleted the client_configure branch April 12, 2016 08:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants