Issue #2469 Fixed default rules implementation
Former-commit-id: 9f5d3a8fefb7c9977533c8c3770e14e5a5e09f72
This commit is contained in:
parent
49f6c31256
commit
45413d0db4
4 changed files with 12 additions and 5 deletions
|
@ -15,6 +15,8 @@ subnotify.task.frequency=1 MINUTES
|
|||
checkExpiredSubscription.cron=0+2+*+*+*+?
|
||||
# Cron for subscriptions nearing the end of their active period - currently once/day at 00:15Z
|
||||
checkEndingSubscription.cron=0+15+0+*+*+?
|
||||
# The period which adhoc subscriptions are cleaned, every 20 mins
|
||||
adhocsubscription-process.cron=0+0/20+*+*+*+?
|
||||
# How many retrieval queue consumers
|
||||
retrieval-process.threads=4
|
||||
# How many subNotify threads for retrieval
|
||||
|
|
|
@ -53,6 +53,7 @@ import com.raytheon.uf.edex.database.purge.PurgeRuleSet;
|
|||
* ------------ ---------- ----------- --------------------------
|
||||
* Oct 11, 2013 2460 dhladky Initial creation
|
||||
* Oct 23, 2013 2469 dhladky Refined the time check and accommodation for lack of purge rules.
|
||||
* Feb 24, 2014 2469 dhladky Added check to add in default rules when regular rules don't exist.
|
||||
*
|
||||
* </pre>
|
||||
*
|
||||
|
@ -75,8 +76,9 @@ public class AdhocSubscriptionCleaner {
|
|||
* Cleans old adhoc subscriptions from the WFO registry.
|
||||
* Compares the end() time on the sub to the expiration period in
|
||||
* associated purge rules derived from the plugin each subs data
|
||||
* is stored too. Runs on every 20 minutes.
|
||||
* is stored too. Runs on every 60 minutes.
|
||||
*/
|
||||
@SuppressWarnings("rawtypes")
|
||||
public void processSubscriptions() {
|
||||
|
||||
statusHandler.handle(Priority.INFO, "Processing Adhoc Subscriptions for expiration...");
|
||||
|
@ -153,7 +155,11 @@ public class AdhocSubscriptionCleaner {
|
|||
if (purgeRuleSet != null) {
|
||||
|
||||
List<PurgeRule> rules = purgeRuleSet.getRules();
|
||||
// if no rules exist, create a default, 12 hours
|
||||
// If no regular rules, try defaults.
|
||||
if (rules.isEmpty()) {
|
||||
rules = purgeRuleSet.getDefaultRules();
|
||||
}
|
||||
// if still no rules exist, create a default, 12 hours
|
||||
if (rules.isEmpty()) {
|
||||
rules = new ArrayList<PurgeRule>();
|
||||
PurgeRule rule = new PurgeRule();
|
||||
|
|
|
@ -37,6 +37,8 @@
|
|||
<property name="contextPath" value="/" />
|
||||
<property name="war"
|
||||
value="file:///${edex.home}/webapps/registryEbxml" />
|
||||
<property name="systemClasses"
|
||||
value="java., javax., org., com., gov., ch., net., edu."/>
|
||||
</bean>
|
||||
</list>
|
||||
</property>
|
||||
|
@ -48,5 +50,4 @@
|
|||
</bean>
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
</beans>
|
|
@ -2,8 +2,6 @@
|
|||
ebxml-subscription-process.cron=0/20+*+*+*+*+?
|
||||
# The period which the registry runs the garbage collection
|
||||
ebxml-garbage-collect-process.cron=0+0/5+*+*+*+?
|
||||
# The period which adhoc subscriptions are cleaned, every 20 mins
|
||||
adhocsubscription-process.cron=0+0/20+*+*+*+?
|
||||
# When a federation synchonization is necessary, this is the number of threads
|
||||
# that will be used for synchronization
|
||||
ebxml-federation-sync-threads=3
|
||||
|
|
Loading…
Add table
Reference in a new issue