#include <yarp/manager/manager.h>
Inheritance diagram for yarp::manager::Manager:Public Member Functions | |
| Manager (bool withWatchDog=false) | |
| Class Manager. | |
| Manager (const char *szModPath, const char *szAppPath, const char *szResPath, bool withWatchDog=false) | |
| ~Manager () override | |
| bool | addApplication (const char *szFileName, char **szAppName_=nullptr, bool modifyName=false) |
| bool | addApplications (const char *szPath) |
| bool | addModule (const char *szFileName) |
| bool | addModules (const char *szPath) |
| bool | addResource (const char *szFileName) |
| bool | addResources (const char *szPath) |
| bool | removeApplication (const char *szFileName, const char *szAppName) |
| bool | removeModule (const char *szModName) |
| bool | removeResource (const char *szResName) |
| bool | loadApplication (const char *szAppName) |
| bool | saveApplication (const char *szAppName, const char *fileName=nullptr) |
| bool | updateExecutable (unsigned int id, const char *szparam, const char *szhost, const char *szstdio, const char *szworkdir, const char *szenv) |
| bool | updateConnection (unsigned int id, const char *from, const char *to, const char *carrier) |
| Node * | getNode (std::string appName) |
| bool | run () |
| bool | run (unsigned int id, bool async=false) |
| bool | stop () |
| bool | stop (unsigned int id, bool async=false) |
| bool | kill () |
| bool | kill (unsigned int id, bool async=false) |
| bool | connect () |
| bool | connect (unsigned int id) |
| bool | disconnect () |
| bool | disconnect (unsigned int id) |
| bool | rmconnect (unsigned int id) |
| bool | rmconnect () |
| bool | running () |
| bool | running (unsigned int id) |
| bool | suspended () |
| bool | suspended (unsigned int id) |
| bool | connected () |
| bool | connected (unsigned int id) |
| bool | checkDependency () |
| bool | exist (unsigned int id) |
| bool | existPortFrom (unsigned int id) |
| bool | existPortTo (unsigned int id) |
| bool | attachStdout (unsigned int id) |
| bool | detachStdout (unsigned int id) |
| bool | updateResources () |
| bool | updateResource (const char *szName) |
| bool | waitingModuleRun (unsigned int id) |
| bool | waitingModuleStop (unsigned int id) |
| bool | waitingModuleKill (unsigned int id) |
| bool | loadBalance () |
| void | setDefaultBroker (const char *szBroker) |
| const char * | defaultBroker () |
| ExecutablePContainer & | getExecutables () |
| Executable * | getExecutableById (size_t id) |
| bool | switchBroker (size_t id) |
| CnnContainer & | getConnections () |
| ResourcePContainer & | getResources () |
| const char * | getApplicationName () |
| void | enableRestrictedMode () |
| void | disableRestrictedMode () |
| void | enableAutoConnect () |
| void | disableAutoConnect () |
| void | enableAutoDependency () |
| void | disableAutoDependency () |
| void | enableWatchDog () |
| void | disableWatchod () |
| bool | exportDependencyGraph (const char *szFileName) |
| KnowledgeBase * | getKnowledgeBase () |
| ErrorLogger * | getLogger () |
Public Member Functions inherited from yarp::manager::MEvent | |
| MEvent () | |
| virtual | ~MEvent ()=default |
| virtual void | onCnnReleased (void *which) |
Protected Member Functions | |
| void | onExecutableStart (void *which) override |
| void | onExecutableStop (void *which) override |
| void | onExecutableDied (void *which) override |
| void | onExecutableFailed (void *which) override |
| void | onCnnStablished (void *which) override |
| void | onCnnFailed (void *which) override |
| void | onError (void *which) override |
| void | onExecutableStdout (void *which, const char *msg) override |
| Manager::Manager | ( | bool | withWatchDog = false | ) |
Class Manager.
Definition at line 38 of file manager.cpp.
| Manager::Manager | ( | const char * | szModPath, |
| const char * | szAppPath, | ||
| const char * | szResPath, | ||
| bool | withWatchDog = false |
||
| ) |
Definition at line 50 of file manager.cpp.
|
override |
Definition at line 83 of file manager.cpp.
| bool Manager::addApplication | ( | const char * | szFileName, |
| char ** | szAppName_ = nullptr, |
||
| bool | modifyName = false |
||
| ) |
Definition at line 90 of file manager.cpp.
| bool Manager::addApplications | ( | const char * | szPath | ) |
Definition at line 110 of file manager.cpp.
| bool Manager::addModule | ( | const char * | szFileName | ) |
Definition at line 127 of file manager.cpp.
| bool Manager::addModules | ( | const char * | szPath | ) |
Definition at line 141 of file manager.cpp.
| bool Manager::addResource | ( | const char * | szFileName | ) |
Definition at line 155 of file manager.cpp.
| bool Manager::addResources | ( | const char * | szPath | ) |
Definition at line 170 of file manager.cpp.
| bool Manager::attachStdout | ( | unsigned int | id | ) |
Definition at line 1331 of file manager.cpp.
| bool Manager::checkDependency | ( | ) |
checking for port resources availability TODO:later it should change to use proper broker for resource checking. up to now, we use only yraprun for checking port resources
Definition at line 773 of file manager.cpp.
| bool Manager::connect | ( | ) |
Definition at line 1090 of file manager.cpp.
| bool Manager::connect | ( | unsigned int | id | ) |
Definition at line 1062 of file manager.cpp.
| bool Manager::connected | ( | ) |
Definition at line 1208 of file manager.cpp.
| bool Manager::connected | ( | unsigned int | id | ) |
Definition at line 1192 of file manager.cpp.
|
inline |
| bool Manager::detachStdout | ( | unsigned int | id | ) |
Definition at line 1353 of file manager.cpp.
|
inline |
|
inline |
| bool Manager::disconnect | ( | ) |
Definition at line 1142 of file manager.cpp.
| bool Manager::disconnect | ( | unsigned int | id | ) |
Definition at line 1119 of file manager.cpp.
|
inline |
|
inline |
| bool Manager::exist | ( | unsigned int | id | ) |
Definition at line 489 of file manager.cpp.
| bool Manager::existPortFrom | ( | unsigned int | id | ) |
Definition at line 731 of file manager.cpp.
| bool Manager::existPortTo | ( | unsigned int | id | ) |
Definition at line 752 of file manager.cpp.
|
inline |
|
inline |
|
inline |
| Executable * Manager::getExecutableById | ( | size_t | id | ) |
Definition at line 283 of file manager.cpp.
|
inline |
|
inline |
|
inline |
| Node * Manager::getNode | ( | std::string | appName | ) |
Definition at line 483 of file manager.cpp.
|
inline |
| bool Manager::kill | ( | ) |
Definition at line 1008 of file manager.cpp.
| bool Manager::kill | ( | unsigned int | id, |
| bool | async = false |
||
| ) |
Definition at line 985 of file manager.cpp.
| bool Manager::loadApplication | ( | const char * | szAppName | ) |
Definition at line 240 of file manager.cpp.
| bool Manager::loadBalance | ( | ) |
Definition at line 276 of file manager.cpp.
|
overrideprotectedvirtual |
Reimplemented from yarp::manager::MEvent.
Reimplemented in YConsoleManager, and SafeManager.
Definition at line 1381 of file manager.cpp.
|
overrideprotectedvirtual |
Reimplemented from yarp::manager::MEvent.
Reimplemented in YConsoleManager, and SafeManager.
Definition at line 1377 of file manager.cpp.
|
overrideprotectedvirtual |
Reimplemented from yarp::manager::MEvent.
Reimplemented in SafeManager.
Definition at line 1382 of file manager.cpp.
|
overrideprotectedvirtual |
Reimplemented from yarp::manager::MEvent.
Reimplemented in YConsoleManager, and SafeManager.
Definition at line 1378 of file manager.cpp.
|
overrideprotectedvirtual |
Reimplemented from yarp::manager::MEvent.
Reimplemented in YConsoleManager, and SafeManager.
Definition at line 1379 of file manager.cpp.
|
overrideprotectedvirtual |
Reimplemented from yarp::manager::MEvent.
Reimplemented in YConsoleManager, and SafeManager.
Definition at line 1375 of file manager.cpp.
|
overrideprotectedvirtual |
Reimplemented from yarp::manager::MEvent.
Reimplemented in SafeManager.
Definition at line 1380 of file manager.cpp.
|
overrideprotectedvirtual |
Reimplemented from yarp::manager::MEvent.
Reimplemented in YConsoleManager, and SafeManager.
Definition at line 1376 of file manager.cpp.
| bool Manager::removeApplication | ( | const char * | szFileName, |
| const char * | szAppName | ||
| ) |
Definition at line 184 of file manager.cpp.
| bool Manager::removeModule | ( | const char * | szModName | ) |
Definition at line 202 of file manager.cpp.
| bool Manager::removeResource | ( | const char * | szResName | ) |
Definition at line 220 of file manager.cpp.
| bool Manager::rmconnect | ( | ) |
Definition at line 1178 of file manager.cpp.
| bool Manager::rmconnect | ( | unsigned int | id | ) |
Definition at line 1159 of file manager.cpp.
| bool Manager::run | ( | ) |
Definition at line 835 of file manager.cpp.
| bool Manager::run | ( | unsigned int | id, |
| bool | async = false |
||
| ) |
Definition at line 798 of file manager.cpp.
| bool Manager::running | ( | unsigned int | id | ) |
Definition at line 1267 of file manager.cpp.
| bool Manager::saveApplication | ( | const char * | szAppName, |
| const char * | fileName = nullptr |
||
| ) |
Definition at line 266 of file manager.cpp.
|
inline |
| bool Manager::stop | ( | ) |
Definition at line 944 of file manager.cpp.
| bool Manager::stop | ( | unsigned int | id, |
| bool | async = false |
||
| ) |
Definition at line 919 of file manager.cpp.
| bool Manager::suspended | ( | unsigned int | id | ) |
Definition at line 1300 of file manager.cpp.
| bool Manager::switchBroker | ( | size_t | id | ) |
Definition at line 295 of file manager.cpp.
| bool Manager::updateConnection | ( | unsigned int | id, |
| const char * | from, | ||
| const char * | to, | ||
| const char * | carrier | ||
| ) |
Definition at line 456 of file manager.cpp.
| bool Manager::updateExecutable | ( | unsigned int | id, |
| const char * | szparam, | ||
| const char * | szhost, | ||
| const char * | szstdio, | ||
| const char * | szworkdir, | ||
| const char * | szenv | ||
| ) |
Definition at line 430 of file manager.cpp.
| bool Manager::updateResource | ( | const char * | szName | ) |
Definition at line 606 of file manager.cpp.
| bool Manager::updateResources | ( | ) |
Definition at line 553 of file manager.cpp.
| bool Manager::waitingModuleKill | ( | unsigned int | id | ) |
Definition at line 711 of file manager.cpp.
| bool Manager::waitingModuleRun | ( | unsigned int | id | ) |
Definition at line 673 of file manager.cpp.
| bool Manager::waitingModuleStop | ( | unsigned int | id | ) |
Definition at line 693 of file manager.cpp.