You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@river.apache.org by "Ron Mann (JIRA)" <ji...@apache.org> on 2007/07/27 21:01:53 UTC

[jira] Created: (RIVER-123) ConfigurationFile should support 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


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 is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.