river-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Peter Firmstone (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (RIVER-123) ConfigurationFile should support arithmetic operations
Date Sat, 05 Dec 2015 10:59:11 GMT

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

Peter Firmstone resolved RIVER-123.
-----------------------------------
       Resolution: Won't Fix
    Fix Version/s: River_3.0.0

Use Groovy configuration for arithmetic operations.

> ConfigurationFile should support arithmetic operations
> ------------------------------------------------------
>
>                 Key: RIVER-123
>                 URL: https://issues.apache.org/jira/browse/RIVER-123
>             Project: River
>          Issue Type: Improvement
>          Components: net_jini_config
>    Affects Versions: jtsk_2.1
>            Reporter: Ron Mann
>             Fix For: River_3.0.0
>
>
> Bugtraq ID [5091973|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5091973]
> There have been some requests on the Porter discussion list for ConfigurationFile to
support arithmetic operations.  A use case for this feature is to facilitate configuring services
with a set of consecutive ports open in a firewall.
> Below is the use case provided by Van Simmons from Invesco:
> "...my particular case was in wanting to use a range of port numbers for my various services
so that I could open some holes in a firewall and allow access to the services.  In that case,
I would like to pass in ${basePortNumber} as variable, have reggie use ${basePortNumber},
outrigger use ${basePortNumber}+1, et al.  That way, if I decided to move things around I
could do that without revisiting all my config files."
> While ${basePortNumber} could not be used directly in an addition expression because
it is of type String, it would be possible to do something like Integer.parseInt(${basePortNumber})
+ 1.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message