-
Notifications
You must be signed in to change notification settings - Fork 24.9k
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
Remove unneeded client subinterfaces #108052
Remove unneeded client subinterfaces #108052
Conversation
Since the removal of the transport client these interfaces all have exactly one implementation. There's no need for the extra layer of abstraction any more so this commit removes it.
3403183
to
bb461dc
Compare
Pinging @elastic/es-core-infra (Team:Core/Infra) |
This was mechanical but unfortunately that process seems to have lost the Javadocs and reordered everything. I'm not sure this matters, the order wasn't important and there was essentially nothing useful in those comments anyway. |
*/ | ||
ClusterAdminClient cluster(); | ||
protected final ClusterAdminClient clusterAdmin; | ||
protected final IndicesAdminClient indicesAdmin; |
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 this could be a record. Do we rely on those fields being protected in lots of plases?
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.
There's mocks and other reflection-based stuff in tests that get in the way of tightening these things down. Possibly we could make them private
but I'm hoping this stuff can all just go away soon so I don't think it's worth polishing this too much.
Since the removal of the transport client these interfaces all have
exactly one implementation. There's no need for the extra layer of
abstraction any more so this commit removes it.