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

Make transport action name available in TransportAction base class #6860

Conversation

javanna
Copy link
Member

@javanna javanna commented Jul 14, 2014

Each transport action is associated with at least an action name, which is the action name that gets serialized together with the request and identifies what to do with the request itself. Also, the action name is the name of the registered transport handler that handles incoming request for the transport action.

This PR makes the action name available in a generic manner in the TransportAction base class, so that it can be used when needed by subclasses, or in the base class for instance for action filtering.

@uboness
Copy link
Contributor

uboness commented Jul 14, 2014

LGTM (I would have called the field actionName instead... but it's not critical)

@javanna
Copy link
Member Author

javanna commented Jul 14, 2014

Funny thing is...I had called it actionName in the first place, then renamed it back to transportAction to be compliant to what we used up until now...I do prefer actionName

…e class

Each transport action is associated with at least an action name, which is the action name that gets serialized together with the request and identifies what to do with the request itself. Also, the action name is the name of the registered transport handler that handles incoming request for the transport action.

This commit makes the action name available in a generic manner in the TransportAction base class, so that it can be used when needed by subclasses, or in the base class for instance for action filtering.

Closes elastic#6860
javanna added a commit that referenced this pull request Jul 14, 2014
…e class

Each transport action is associated with at least an action name, which is the action name that gets serialized together with the request and identifies what to do with the request itself. Also, the action name is the name of the registered transport handler that handles incoming request for the transport action.

This commit makes the action name available in a generic manner in the TransportAction base class, so that it can be used when needed by subclasses, or in the base class for instance for action filtering.

Closes #6860
@s1monw
Copy link
Contributor

s1monw commented Jul 14, 2014

LGTM - thanks for doing this.

@s1monw s1monw removed the review label Jul 14, 2014
@javanna javanna self-assigned this Jul 15, 2014
javanna added a commit that referenced this pull request Jul 15, 2014
…e class

Each transport action is associated with at least an action name, which is the action name that gets serialized together with the request and identifies what to do with the request itself. Also, the action name is the name of the registered transport handler that handles incoming request for the transport action.

This commit makes the action name available in a generic manner in the TransportAction base class, so that it can be used when needed by subclasses, or in the base class for instance for action filtering.

Closes #6860
@javanna javanna closed this in 3c54eb9 Jul 15, 2014
@javanna
Copy link
Member Author

javanna commented Jul 15, 2014

As a side note, this change will cause compilation errors within plugins that implement their own TransportActions, easily solvable by just passing in their action name when calling the super constructor.

@s1monw
Copy link
Contributor

s1monw commented Jul 15, 2014

mark it as breaking then?

@clintongormley clintongormley changed the title Internal: make transport action name available in TransportAction base class Internal: Make transport action name available in TransportAction base class Jul 16, 2014
@clintongormley clintongormley changed the title Internal: Make transport action name available in TransportAction base class Make transport action name available in TransportAction base class Jun 6, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants