Table of Contents |
---|
...
Terminology
- Broadcast message: a message for all participants (participantId=null and participantType=null)
- Message to a participant: a message only for a participant (participantId and participantType properly filled)
- ThreadPoolExecutor: ThreadPoolExecutor executes the given task, into SupervisionAspect class is configured to execute tasks in ordered manner, one by one
- Spring Scheduling: into SupervisionAspect class, the @Scheduled annotation invokes "schedule()" method every "runtime.participantParameters.heartBeatMs" milliseconds with a fixed delay
- MessageIntercept: "@MessageIntercept" annotation is used into SupervisionHandler class to intercept "handleParticipantMessage" method calls using spring aspect oriented programming
- GUI: graphical user interface, Postman or a Front-End Application
Design of Rest Api
Create of a Control Loop Type
...
CL-runtime Rest Api supports **application/json**, **application/yaml** and **text/plain** Media Media Types. The configuration is implemented in CoderHttpMesageConverter.
...
JSON format is a standard for Rest Api. For the conversion from JSON to Object and vice-versa will be used **org.onap.policy.common.utils.coder.StandardCoder**.
application/yaml
YAML format is a standard for Control Loop Type Definition. For the conversion from YAML to Object and vice-versa will be used **org.onap.policy.common.utils.coder.StandardYamlCoder**.
text/plain
Text format is used by Prometheus. For the conversion from Object to String will be used **StringHttpMessageConverter**.
Note |
---|
This page is Work in Progress |
...