Omaha #3277 Update smart init launcher to allow additional threads.

Change-Id: I118d905823bd8304f0e5ea2087a16d3d8ee075ce

Former-commit-id: 475cb088596a89e3bd2818196e2f2e250930a95c
This commit is contained in:
Richard Peter 2014-06-26 10:15:23 -05:00
parent f2b4bcfef1
commit 584b7576af
3 changed files with 8 additions and 5 deletions

View file

@ -415,7 +415,7 @@
<endpoint id="exportDigitalDataCron" uri="clusteredquartz://gfe/exportDigitalData/?cron=${gfe.cron}"/>
<endpoint id="gfeLogPurgeCron" uri="clusteredquartz://gfe/purgeGfeLogs/?cron=${purge.gfe.logs.cron}"/>
<endpoint id="svcbuLogPurgeCron" uri="clusteredquartz://gfe/purgeSvcbuLogs/?cron=${purge.svcbu.logs.cron}"/>
<endpoint id="iscSendLauncher" uri="timer://iscSendThread?repeatCount=1"/>
<endpoint id="iscSendLauncher" uri="quartz://iscSendThread?trigger.repeatCount=0&amp;trigger.repeatInterval=1"/>
<route id="exportDigitalData">
<from uri="exportDigitalDataCron"/>

View file

@ -29,9 +29,12 @@
<bean id="wclWatch" class="com.raytheon.edex.plugin.gfe.watch.WCLWatchSrv"/>
<bean id="vtecChangeListener" class="com.raytheon.edex.plugin.gfe.server.notify.VTECTableChangeListener"/>
<camelContext id="gfe-camel-spring" xmlns="http://camel.apache.org/schema/spring" errorHandlerRef="errorHandler">
<endpoint id="smartInitLauncher" uri="timer://smartInitThread?repeatCount=${smartinit.threads}"/>
<!-- TODO: This can be switched back to original thread count and use a bean to
subtract one from the thread count once this issue has been fixed.
https://issues.apache.org/jira/browse/CAMEL-7540 -->
<endpoint id="smartInitLauncher" uri="quartz://smartInitThread?trigger.repeatCount=${smartinit.additional.threads}&amp;trigger.repeatInterval=1"/>
<route id="SPCWatch">
<from uri="vm:gfe.spcWatch"/>

View file

@ -1,5 +1,5 @@
# The number of smart init threads to use
smartinit.threads=1
# Will always have 1 smart init thread. This is the number of additional threads to start.
smartinit.additional.threads=0
# interval to run exportDigitalData
gfe.cron=0+15+*+*+*+?