|
| ISuperviseMaster ()=default |
| Default constructor.
|
virtual | ~ISuperviseMaster () |
| Default destructor.
|
void | ProgramName (std::string name) |
| Defines the program/system name.
|
const std::string & | ProgramName () const |
| Program or system name.
|
void | ConfigFile (std::string config_file) |
| Configuration file name.
|
const std::string & | ConfigFile () const |
| Returns the configuration file name.
|
void | EnableMqtt (bool enable) |
| Enable a MQTT client.
|
bool | EnableMqtt () const |
| Returns true if a MQTT client is enabled.
|
virtual void | Start () |
| Start the system.
|
virtual void | Stop () |
| Stop the system.
|
virtual ISuperviseApplication * | CreateApplication () |
| Create a supervise application.
|
std::vector< std::unique_ptr< ISuperviseApplication > > & | Applications () |
| Returns a list af supervise applications.
|
const std::vector< std::unique_ptr< ISuperviseApplication > > & | Applications () const |
| Returns a list af supervise applications.
|
void | ReadConfig () |
| Read in the configuration.
|
void | SaveConfig () |
| Save the configuration.
|
A supervise master supervise one or more applications. The purpose is simplify the creation of a system. Instead of manually start several application services, the master will start the system application as normal executables.
The master is normally started as a service/Daemon but can also be used in unit tests for testing applications and systems.