Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

PlantUML Macro
titleInstantiation
@startuml

actor CLAMP
participant Deployment_API
database Runtime_DB
control CL_Instance_Control
participant DmaaP
collections Participants

CLAMP -> Deployment_API : Fetch all Deployed Control Loops
Deployment_API -> Runtime_DB : Rest call to get the Deployed Control Loops
Runtime_DB -> Deployment_API : Return all Deployed Loops which reside in the database
Deployment_API -> CLAMP : Provide the data
CLAMP -> CLAMP : Select Control Loop to be instantiated and provide configurations for it
CLAMP -> CL_Instance_Control : Instantiate CL POST REST API call

alt case where CLAMP sends deployed CL id instead of the full CL in the body

CL_Instance_Control -> Runtime_DB : Fetch the Deployed Control Loop from Models table
Runtime_DB -> CL_Instance_Control : Return the requested Deployed Control Loop data

end

CL_Instance_Control -> DmaaP : INSTANTIATE Event (JSON/Yaml)
note over CL_Instance_Control, DmaaP : List of Participant ID's containing Participant Metadata Blocks
Participants -> DmaaP : Pulls its part of CL and tries to Instantiate

alt failure case

... timeout INSTANTIATEnote over CL_Instance_Control : TIMEOUT, Instantiation ACK not received by themonitoring Monitoring Service...
note over CL_Instance_Control : Supervision_Service sendsservice \nSupervision_Service requests a teardown request to CL_Instance_Control
CL_Instance_Control -> DmaaP : TEARDOWN Event (JSON/Yaml)
Participants -> DmaaP : Pulls its part of CL and starts Teardown

end
@enduml

...