Uploaded image for project: 'mod_cluster'
  1. mod_cluster
  2. MODCLUSTER-283

Refactor ModClusterConfig to allow complex types

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Major Major
    • 1.2.1.Beta2
    • 1.2.0.Final
    • None
    • None

      mod_cluster's configuration interfaces were originally designed to accept simple configuration property values. With AS7, complex property types (e.g. InetAddress, Collection<InetSocketAddress>, Set<String>) are easier to define - and the old methods are now cumbersome. We should keep the old mutator methods (for backwards compatibility), but alter the accessor methods to accept more complex types.
      e.g.
      Collection<InetSocketAddress> MCMPConfiguration.getProxies();
      void ModClusterConfig.setProxies(Collection<InetSocketAddress>);
      void ModClusterConfig.setProxyList(String proxyList);

      InetAddress AdvertiseConfiguration.getAdvertiseGroupAddress();
      void ModClusterConfig.setProxies(Collection<InetSocketAddress>);
      void ModClusterConfig.setProxyList(String proxyList);

      etc.

              pferraro@redhat.com Paul Ferraro
              pferraro@redhat.com Paul Ferraro
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: