Uploaded image for project: 'Policy Framework'
  1. Policy Framework
  2. POLICY-3266 Über Story: Cover the full scope of LCM for Control Loops, Server Side
  3. POLICY-3464

Implementaton and Unit Test of Supervision, Retry and Timeout handling on ParticipantStatus message

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Done
    • Icon: Medium Medium
    • None
    • None
    • None
    • None
    • Policy 12/7-26/7, Policy 28/7-17/9

      Implement and unit test the supervision, retry, timeout, and reporting for ParticipantStatus message dialogue.

       Please refer to the following Wiki pages:

      https://wiki.onap.org/display/DW/System+Level+Dialogues

      https://wiki.onap.org/display/DW/The+CLAMP+Control+Loop+Participant+Protocol

       

      Please be aware of the addition of a "start_phase" in the Control Loop Element. take this into account in the design, see lines 46 to 50 in:
      https://github.com/onap/policy-clamp/blob/master/common/src/main/resources/tosca/ControlLoopTOSCAServiceTemplateTypes.yaml

       

      Also take care of this issue

      Introduce a timeout variable in ToscaServiceTemplate or in Participant to wait for a certain time for participant to comeup, or turn to PASSIVE. If participant does-not come up after the wait time, UNINITIALIZE the control loop.

      This subtask is created to handle the TODO added for this logic in SupervisionHandler.java

       https://gerrit.onap.org/r/c/policy/clamp/+/121069/1/tosca-controlloop/runtime/src/main/java/org/onap/policy/clamp/controlloop/runtime/supervision/SupervisionHandler.java#141

      @Override
      public void startAndRegisterPublishers(List<TopicSink> topicSinks) {
      // TODO: Use a parameter for the timeout

      Handle the timeout added in above file.

            FrancescoFioraEst Francesco Fiora
            FrancescoFioraEst Francesco Fiora
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: