Return-Path: Delivered-To: apmail-camel-dev-archive@www.apache.org Received: (qmail 67005 invoked from network); 26 Jan 2011 23:15:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 26 Jan 2011 23:15:06 -0000 Received: (qmail 80598 invoked by uid 500); 26 Jan 2011 23:15:06 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 80572 invoked by uid 500); 26 Jan 2011 23:15:06 -0000 Mailing-List: contact dev-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list dev@camel.apache.org Received: (qmail 80564 invoked by uid 500); 26 Jan 2011 23:15:06 -0000 Delivered-To: apmail-activemq-camel-dev@activemq.apache.org Received: (qmail 80561 invoked by uid 99); 26 Jan 2011 23:15:06 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Jan 2011 23:15:06 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Jan 2011 23:15:05 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id p0QNEhwR014961 for ; Wed, 26 Jan 2011 23:14:43 GMT Message-ID: <24346785.227781296083683653.JavaMail.jira@thor> Date: Wed, 26 Jan 2011 18:14:43 -0500 (EST) From: "Ashwin Karpe (JIRA)" To: camel-dev@activemq.apache.org Subject: [jira] Assigned: (CAMEL-3575) allow ScheduledRoutePolicy to handle more than one action (start, stop, resume, pause) In-Reply-To: <15381098.113861295638663910.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CAMEL-3575?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Ashwin Karpe reassigned CAMEL-3575: ----------------------------------- Assignee: Ashwin Karpe > allow ScheduledRoutePolicy to handle more than one action (start, stop, resume, pause) > -------------------------------------------------------------------------------------- > > Key: CAMEL-3575 > URL: https://issues.apache.org/jira/browse/CAMEL-3575 > Project: Camel > Issue Type: Improvement > Components: camel-quartz > Affects Versions: 2.6.0 > Reporter: Ricardo Veguilla > Assignee: Ashwin Karpe > Fix For: 2.7.0 > > Attachments: ScheduledRoutePolicy-Patch.diff > > > The current implementation of ScheuledRoutePolicy only supports one type of action (start,stop,resume,pause) for only one route. If, for example, you attempt to configure a CronScheduleRoutePolicy with a routeStartTime and routeStopTime, only the one will by handled because ScheduleRoutePolicy (super-class of CronScheduleRoutePolicy) only store one action and one route in the SchedulerContext: > protected void loadCallbackDataIntoSchedulerContext(Action action, Route route) throws SchedulerException { > getScheduler().getContext().put(SCHEDULED_ACTION, action); > getScheduler().getContext().put(SCHEDULED_ROUTE, route); > } > with the effect of creating two timers (one for startTime, the other for stopTime) that execute the same action (the last call to scheduleRoute). -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.