Uploaded image for project: 'netconf'
  1. netconf
  2. NETCONF-1102

Refactor notification stream starts

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Medium Medium
    • 7.0.0
    • None
    • restconf-nb

      RestconfStreamsSubscriptionService's path currently overlaps with RestconfDataService, i.e. the access is mediated through delegation. As noted in the current FIXME, the fact we are starting the stream through a GET operation is a REST violation. This harks back to the original implementation which dropped here: https://git.opendaylight.org/gerrit/c/controller/+/5094.

      Given that the streams can hold a ton of data, we should start them when the first subscriber attaches and stop them when it detaches.

      Current organization of the code deals with updating the datastore, which should actually happen when the stream is created, so this change requires cleaning up component wiring.

            rovarga Robert Varga
            rovarga Robert Varga
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: