Details

      Description

      Initial working proposal for live update of properties

        Issue Links

          Activity

          Transition Time In Source Status Execution Times Last Executer Last Execution Date
          Open Open Resolved Resolved
          3371d 22h 29m 1 Oliver Heger 13/Sep/14 20:23
          Oliver Heger made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Hide
          Oliver Heger added a comment -

          With the new reloading mechanism automatic and periodic reloading checks can be performed.

          Show
          Oliver Heger added a comment - With the new reloading mechanism automatic and periodic reloading checks can be performed.
          Henning Schmiedehausen made changes -
          Fix Version/s 2.0 [ 12312240 ]
          Fix Version/s 1.10 [ 12319742 ]
          Oliver Heger made changes -
          Link This issue relates to CONFIGURATION-520 [ CONFIGURATION-520 ]
          Hide
          Oliver Heger added a comment -

          As part of a proof of concept for a new reloading mechanism I have added a class PeriodicReloadingTrigger. Together with other classes and event notification mechanisms related to reloading this request could be fulfilled.

          Show
          Oliver Heger added a comment - As part of a proof of concept for a new reloading mechanism I have added a class PeriodicReloadingTrigger . Together with other classes and event notification mechanisms related to reloading this request could be fulfilled.
          Oliver Heger made changes -
          Fix Version/s 1.10 [ 12319742 ]
          Fix Version/s 1.9 [ 12317945 ]
          Oliver Heger made changes -
          Fix Version/s 1.9 [ 12317945 ]
          Fix Version/s 1.8 [ 12314043 ]
          Emmanuel Bourg made changes -
          Summary Observable configurations Periodic reloading
          Component/s File reloading [ 12312303 ]
          Hide
          Emmanuel Bourg added a comment -

          You are right, thank you for reminding this.

          This is the discussion that spawned this idea:
          http://apache-commons.680414.n4.nabble.com/configuration-What-about-live-update-of-config-data-td682444.html

          Show
          Emmanuel Bourg added a comment - You are right, thank you for reminding this. This is the discussion that spawned this idea: http://apache-commons.680414.n4.nabble.com/configuration-What-about-live-update-of-config-data-td682444.html
          Hide
          Oliver Heger added a comment -

          IIUC, this issue is more about a kind of active reloading mechanism. Therefore a timer is used to trigger a configuration in regular intervals. With the current event mechanism this use case cannot be achieved because a reload only happens if a configuration is accessed.

          Show
          Oliver Heger added a comment - IIUC, this issue is more about a kind of active reloading mechanism. Therefore a timer is used to trigger a configuration in regular intervals. With the current event mechanism this use case cannot be achieved because a reload only happens if a configuration is accessed.
          Hide
          Emmanuel Bourg added a comment -

          Configurations are observable since the 1.3 release with the introduction of ConfigurationEvent and ConfigurationListener. This issue can be closed now.

          Show
          Emmanuel Bourg added a comment - Configurations are observable since the 1.3 release with the introduction of ConfigurationEvent and ConfigurationListener. This issue can be closed now.
          Oliver Heger made changes -
          Fix Version/s 1.8 [ 12314043 ]
          Fix Version/s 1.7 [ 12313555 ]
          Oliver Heger made changes -
          Fix Version/s 1.7 [ 12313555 ]
          Fix Version/s 1.6 [ 12312450 ]
          Emmanuel Bourg made changes -
          Component/s Events & Notifications [ 12311759 ]
          Environment Operating System: other
          Platform: Other
          Oliver Heger made changes -
          Fix Version/s 1.5 [ 12312239 ]
          Fix Version/s 1.6 [ 12312450 ]
          Emmanuel Bourg made changes -
          Summary [configuration] Observable configurations Observable configurations
          Oliver Heger made changes -
          Fix Version/s 1.5 [ 12312239 ]
          Henri Yandell made changes -
          Project Commons [ 12310458 ] Commons Configuration [ 12310467 ]
          Component/s Configuration [ 12311107 ]
          Key COM-2174 CONFIGURATION-204
          Assignee Jakarta Commons Developers Mailing List [ commons-dev@jakarta.apache.org ]
          Affects Version/s unspecified [ 12311647 ]
          Henri Yandell made changes -
          Field Original Value New Value
          issue.field.bugzillaimportkey 35433 12342326
          Hide
          Emmanuel Bourg added a comment -

          Quick feedback:

          • I think the notify() method of PropertyListener should include a Configuration
            parameter specifying the source of the event. This is similar to the
            java.bean.PropertyChangeEvent and javax.management.AttributeChangeNotification
            classes. This lets a single listener handle several configurations.
          • We may add a ConfigurationPropertyEvent class and change notify() to pass an
            instance of this class instead of the current parameters, thus future changes to
            the event will not break the existing classes implementing PropertyListener.
          • We may want to keep an eye on JMX, there is a lot of property change
            notification stuff there, I wonder if we could build a bridge between
            [configuration] and this standard.
          Show
          Emmanuel Bourg added a comment - Quick feedback: I think the notify() method of PropertyListener should include a Configuration parameter specifying the source of the event. This is similar to the java.bean.PropertyChangeEvent and javax.management.AttributeChangeNotification classes. This lets a single listener handle several configurations. We may add a ConfigurationPropertyEvent class and change notify() to pass an instance of this class instead of the current parameters, thus future changes to the event will not break the existing classes implementing PropertyListener. We may want to keep an eye on JMX, there is a lot of property change notification stuff there, I wonder if we could build a bridge between [configuration] and this standard.
          Hide
          Oliver Zeigermann added a comment -

          Created an attachment (id=15478)
          Configuration Registry package

          Show
          Oliver Zeigermann added a comment - Created an attachment (id=15478) Configuration Registry package
          Oliver Zeigermann created issue -

            People

            • Assignee:
              Unassigned
              Reporter:
              Oliver Zeigermann
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development