Uploaded image for project: 'River (Retired)'
  1. River (Retired)
  2. RIVER-123

ConfigurationFile should support arithmetic operations

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • jtsk_2.1
    • River_3.0.0
    • net_jini_config
    • None
    • 5091973

    Description

      Bugtraq 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.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              rjmann Ronald Mann
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: