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

Refactored AckedClusterStateUpdateTask & co. to remove code repetitions in subclasses #6559

Conversation

javanna
Copy link
Member

@javanna javanna commented Jun 19, 2014

Made AckedClusterStateUpdateTask an abstract class instead of an interface, which contains the common methods.
Also introduced the AckedRequest interface to mark both AcknowledgedRequest & ClusterStateUpdateRequest so that the different ways of updating the cluster state (with or without a MetaData*Service) can share the same code.
Removed ClusterStateUpdateListener as we can just use its base class ActionListener instead.

…ns in subclasses

Made AckedClusterStateUpdateTask an abstract class instead of an interface, which contains the common methods.
Also introduced the AckedRequest interface to mark both AcknowledgedRequest & ClusterStateUpdateRequest so that the different ways of updating the cluster state (with or without a MetaData*Service) can share the same code.
Removed ClusterStateUpdateListener as we can just use its base class ActionListener instead.
@javanna javanna self-assigned this Jun 19, 2014
@imotov
Copy link
Contributor

imotov commented Jun 19, 2014

Nice stats! LGTM.

@jpountz
Copy link
Contributor

jpountz commented Jun 20, 2014

LGTM

@javanna javanna closed this in f16451a Jun 20, 2014
javanna added a commit that referenced this pull request Jun 20, 2014
…ns in subclasses

Made AckedClusterStateUpdateTask an abstract class instead of an interface, which contains the common methods.
Also introduced the AckedRequest interface to mark both AcknowledgedRequest & ClusterStateUpdateRequest so that the different ways of updating the cluster state (with or without a MetaData*Service) can share the same code.
Removed ClusterStateUpdateListener as we can just use its base class ActionListener instead.

Closes #6559
@s1monw s1monw removed the review label Jun 24, 2014
@clintongormley clintongormley changed the title Refactored AckedClusterStateUpdateTask & co. to remove code repetitions in subclasses Internal: Refactored AckedClusterStateUpdateTask & co. to remove code repetitions in subclasses Jul 16, 2014
@clintongormley clintongormley changed the title Internal: Refactored AckedClusterStateUpdateTask & co. to remove code repetitions in subclasses Refactored AckedClusterStateUpdateTask & co. to remove code repetitions in subclasses Jun 7, 2015
@clintongormley clintongormley added :Distributed/Distributed A catch all label for anything in the Distributed Area. If you aren't sure, use this one. and removed :Cluster labels Feb 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Distributed/Distributed A catch all label for anything in the Distributed Area. If you aren't sure, use this one. >enhancement v1.3.0 v2.0.0-beta1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants