Rest plugin sending request to master node

Hi,
I would like to know if there is any Java API or code to dispatch/route a
(REST)request coming on a generic node to the active master node.

I have a REST plugin getting the requests in different cluster nodes, but
I'd like to dispatch all the requests to the master node if exists and
having only the master node processing and answering them. Is this feasible
within an elasticsearch plugin?
Thanks
kind regards
Marc

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Hey,

You accept the REST request on any node, and create a subclass of a
MasterNodeOperationRequest in your rest handler, which is then
automatically send only to the master.
Hope this helps for a start.

If this is feasible highly depends on your usecase, if it makes send to
have this additional roundtrip and overloading on your master node...

--Alex

On Fri, Jun 21, 2013 at 10:23 AM, Marc ciarcia.marco@gmail.com wrote:

Hi,
I would like to know if there is any Java API or code to dispatch/route a
(REST)request coming on a generic node to the active master node.

I have a REST plugin getting the requests in different cluster nodes, but
I'd like to dispatch all the requests to the master node if exists and
having only the master node processing and answering them. Is this feasible
within an elasticsearch plugin?
Thanks
kind regards
Marc

--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.