[ 
https://issues.apache.org/jira/browse/CAMEL-13242?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Dennis updated CAMEL-13242:
---------------------------
    Affects Version/s: 2.22.0
          Description: 
In camel-zookeeper-master please add support for using one master route policy 
to control multiple routes

MasterRoutePolicy policy = new MasterRoutePolicy();
 from("quartz2://r1?cron=0+0+15+?+**+").routePolicy(policy).log("r1 doing work")
 from("timer://r2?period=120s").routePolicy(policy).log("r2 doing work")

Both routes must start only if the node is master

See 
[discussion|http://camel.465427.n5.nabble.com/Master-Route-Policy-for-multiple-routes-td5830391.html[]|http://camel.465427.n5.nabble.com/Master-Route-Policy-for-multiple-routes-td5830391.html]

 

 

  was:
Please add support for using one master route policy to control multiple routes

MasterRoutePolicy policy = new MasterRoutePolicy();
from("quartz2://r1?cron=0+0+15+?+*+*").routePolicy(policy).log("r1 doing work")
from("timer://r2?period=120s").routePolicy(policy).log("r2 doing work")

Both routes must start only if the node is master



See 
[discussion|http://camel.465427.n5.nabble.com/Master-Route-Policy-for-multiple-routes-td5830391.html[]|http://camel.465427.n5.nabble.com/Master-Route-Policy-for-multiple-routes-td5830391.html]

 

 

          Component/s: camel-zookeeper

> Support multiple routes in Master Route Policy
> ----------------------------------------------
>
>                 Key: CAMEL-13242
>                 URL: https://issues.apache.org/jira/browse/CAMEL-13242
>             Project: Camel
>          Issue Type: New Feature
>          Components: camel-zookeeper
>    Affects Versions: 2.22.0
>            Reporter: Dennis
>            Priority: Major
>
> In camel-zookeeper-master please add support for using one master route 
> policy to control multiple routes
> MasterRoutePolicy policy = new MasterRoutePolicy();
>  from("quartz2://r1?cron=0+0+15+?+**+").routePolicy(policy).log("r1 doing 
> work")
>  from("timer://r2?period=120s").routePolicy(policy).log("r2 doing work")
> Both routes must start only if the node is master
> See 
> [discussion|http://camel.465427.n5.nabble.com/Master-Route-Policy-for-multiple-routes-td5830391.html[]|http://camel.465427.n5.nabble.com/Master-Route-Policy-for-multiple-routes-td5830391.html]
>  
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to