-
Notifications
You must be signed in to change notification settings - Fork 1
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
Pivotal ID # 181636957: FIRE: Retry File Persistence #564
Pivotal ID # 181636957: FIRE: Retry File Persistence #564
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Please consider my comments
|
||
class FireClientFactory private constructor() { | ||
companion object { | ||
fun create(tmpDirPath: String, config: FireConfig): uk.ac.ebi.fire.client.integration.web.FireClient { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I understand the change from FireOperations
to FireClient
, it makes a lot of sense now that we'll have multiple clients implementations however, I think we should rename the uk.ac.ebi.fire.client.api.FireClient
implementation class so we don't have confusions and we don't need to use full imports in the code.
I think the name we had before, FireWebClient
still would make sense or even WebFireClient
|
||
@Suppress("TooManyFunctions") | ||
internal class RetryWebClient( | ||
private val fileOperations: FireClient, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it'd be much clearer to call this parameter just fireClient
, specially after changing the interface name
password = properties.fire.password | ||
), | ||
RetryConfig( | ||
maxAttempts = 20, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we make these values configurable?
https://www.pivotaltracker.com/story/show/181636957