- Object: Generic Controller to handle Policy,Small Business Logic, Glue in between components, …
- Status: Release Candidate
- Author: Fulup Ar Foll firstname.lastname@example.org
- Date : Dec-2020
- Require : afb-binder version >= 4.0.0 (handle only bindings at least v3)
- Create a controller application from a JSON config file
- Each control (eg: navigation, multimedia, …) is a suite of actions. When all actions succeed control is granted, if one fails control access is denied.
- Actions can either be:
- Invocation of an other binding API, either internal or external (eg: a policy service, Alsa UCM, …)
- C routines from a user provided plugin (eg: policy routine, proprietary code, …)
- Lua script function. Lua provides access to every AGL appfw functionality and can be extended by plugins written in C.
- Controller can easily be included as a separate library in any AGL service or application binder.
- Dependencies: the only dependencies are Application Framework and afb-libhelpers.
- Controller relies on Lua-5.3, when not needed Lua might be removed at compilation time.
The controller library is integrated by default in the Redpesk SDK and is also available as a package for the Redpesk supported linux distributions.
You could find the SDK build which embed the afb-libhelpers library in our packages repositories for the major Linux distribution OS:
To install the native package please refer to this chapter in the Redpesk documentation to install the Redpesk native repositories for your distribution.
Then use your package manager to install the library.
sudo zypper ref sudo zypper install afb-libcontroller-devel
sudo dnf ref sudo dnf install afb-libcontroller-devel
sudo apt-get update sudo apt-get install afb-libcontroller-dev
- The default test HTML page expect the monitoring HTML page to be accessible under /monitoring with the –monitoring option.
- The monitoring HTML pages are installed with the app framework binder in a subdirectory called monitoring.
- You can add other HTML pages with the alias options e.g: afb-binder –port=1234 –monitoring –alias=/path1/to/htmlpages:/path2/to/htmlpages –ldpaths=. –workdir=. –roothttp=../htdocs
- The monitoring is accessible at http://localhost:1234/monitoring.