#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 | collectYarprunProcessesByHost (std::map< std::string, ProcessContainer > &hostProcesses, std::map< std::string, bool > &hostQueryOk) |
| 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 39 of file manager.cpp.
| Manager::Manager | ( | const char * | szModPath, |
| const char * | szAppPath, | ||
| const char * | szResPath, | ||
| bool | withWatchDog = false |
||
| ) |
Definition at line 51 of file manager.cpp.
|
override |
Definition at line 84 of file manager.cpp.
| bool Manager::addApplication | ( | const char * | szFileName, |
| char ** | szAppName_ = nullptr, |
||
| bool | modifyName = false |
||
| ) |
Definition at line 91 of file manager.cpp.
| bool Manager::addApplications | ( | const char * | szPath | ) |
Definition at line 111 of file manager.cpp.
| bool Manager::addModule | ( | const char * | szFileName | ) |
Definition at line 128 of file manager.cpp.
| bool Manager::addModules | ( | const char * | szPath | ) |
Definition at line 142 of file manager.cpp.
| bool Manager::addResource | ( | const char * | szFileName | ) |
Definition at line 156 of file manager.cpp.
| bool Manager::addResources | ( | const char * | szPath | ) |
Definition at line 171 of file manager.cpp.
| bool Manager::attachStdout | ( | unsigned int | id | ) |
Definition at line 1367 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 774 of file manager.cpp.
| void Manager::collectYarprunProcessesByHost | ( | std::map< std::string, ProcessContainer > & | hostProcesses, |
| std::map< std::string, bool > & | hostQueryOk | ||
| ) |
Definition at line 1283 of file manager.cpp.
| bool Manager::connect | ( | ) |
Definition at line 1091 of file manager.cpp.
| bool Manager::connect | ( | unsigned int | id | ) |
Definition at line 1063 of file manager.cpp.
| bool Manager::connected | ( | ) |
Definition at line 1209 of file manager.cpp.
| bool Manager::connected | ( | unsigned int | id | ) |
Definition at line 1193 of file manager.cpp.
|
inline |
| bool Manager::detachStdout | ( | unsigned int | id | ) |
Definition at line 1389 of file manager.cpp.
|
inline |
|
inline |
| bool Manager::disconnect | ( | ) |
Definition at line 1143 of file manager.cpp.
| bool Manager::disconnect | ( | unsigned int | id | ) |
Definition at line 1120 of file manager.cpp.
|
inline |
|
inline |
| bool Manager::exist | ( | unsigned int | id | ) |
Definition at line 490 of file manager.cpp.
| bool Manager::existPortFrom | ( | unsigned int | id | ) |
Definition at line 732 of file manager.cpp.
| bool Manager::existPortTo | ( | unsigned int | id | ) |
Definition at line 753 of file manager.cpp.
|
inline |
|
inline |
|
inline |
| Executable * Manager::getExecutableById | ( | size_t | id | ) |
Definition at line 284 of file manager.cpp.
|
inline |
|
inline |
|
inline |
| Node * Manager::getNode | ( | std::string | appName | ) |
Definition at line 484 of file manager.cpp.
|
inline |
| bool Manager::kill | ( | ) |
Definition at line 1009 of file manager.cpp.
| bool Manager::kill | ( | unsigned int | id, |
| bool | async = false |
||
| ) |
Definition at line 986 of file manager.cpp.
| bool Manager::loadApplication | ( | const char * | szAppName | ) |
Definition at line 241 of file manager.cpp.
| bool Manager::loadBalance | ( | ) |
Definition at line 277 of file manager.cpp.
|
overrideprotectedvirtual |
Reimplemented from yarp::manager::MEvent.
Reimplemented in YConsoleManager, and SafeManager.
Definition at line 1417 of file manager.cpp.
|
overrideprotectedvirtual |
Reimplemented from yarp::manager::MEvent.
Reimplemented in YConsoleManager, and SafeManager.
Definition at line 1413 of file manager.cpp.
|
overrideprotectedvirtual |
Reimplemented from yarp::manager::MEvent.
Reimplemented in SafeManager.
Definition at line 1418 of file manager.cpp.
|
overrideprotectedvirtual |
Reimplemented from yarp::manager::MEvent.
Reimplemented in YConsoleManager, and SafeManager.
Definition at line 1414 of file manager.cpp.
|
overrideprotectedvirtual |
Reimplemented from yarp::manager::MEvent.
Reimplemented in YConsoleManager, and SafeManager.
Definition at line 1415 of file manager.cpp.
|
overrideprotectedvirtual |
Reimplemented from yarp::manager::MEvent.
Reimplemented in YConsoleManager, and SafeManager.
Definition at line 1411 of file manager.cpp.
|
overrideprotectedvirtual |
Reimplemented from yarp::manager::MEvent.
Reimplemented in SafeManager.
Definition at line 1416 of file manager.cpp.
|
overrideprotectedvirtual |
Reimplemented from yarp::manager::MEvent.
Reimplemented in YConsoleManager, and SafeManager.
Definition at line 1412 of file manager.cpp.
| bool Manager::removeApplication | ( | const char * | szFileName, |
| const char * | szAppName | ||
| ) |
Definition at line 185 of file manager.cpp.
| bool Manager::removeModule | ( | const char * | szModName | ) |
Definition at line 203 of file manager.cpp.
| bool Manager::removeResource | ( | const char * | szResName | ) |
Definition at line 221 of file manager.cpp.
| bool Manager::rmconnect | ( | ) |
Definition at line 1179 of file manager.cpp.
| bool Manager::rmconnect | ( | unsigned int | id | ) |
Definition at line 1160 of file manager.cpp.
| bool Manager::run | ( | ) |
Definition at line 836 of file manager.cpp.
| bool Manager::run | ( | unsigned int | id, |
| bool | async = false |
||
| ) |
Definition at line 799 of file manager.cpp.
| bool Manager::running | ( | unsigned int | id | ) |
Definition at line 1268 of file manager.cpp.
| bool Manager::saveApplication | ( | const char * | szAppName, |
| const char * | fileName = nullptr |
||
| ) |
Definition at line 267 of file manager.cpp.
|
inline |
| bool Manager::stop | ( | ) |
Definition at line 945 of file manager.cpp.
| bool Manager::stop | ( | unsigned int | id, |
| bool | async = false |
||
| ) |
Definition at line 920 of file manager.cpp.
| bool Manager::suspended | ( | unsigned int | id | ) |
Definition at line 1336 of file manager.cpp.
| bool Manager::switchBroker | ( | size_t | id | ) |
Definition at line 296 of file manager.cpp.
| bool Manager::updateConnection | ( | unsigned int | id, |
| const char * | from, | ||
| const char * | to, | ||
| const char * | carrier | ||
| ) |
Definition at line 457 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 431 of file manager.cpp.
| bool Manager::updateResource | ( | const char * | szName | ) |
Definition at line 607 of file manager.cpp.
| bool Manager::updateResources | ( | ) |
Definition at line 554 of file manager.cpp.
| bool Manager::waitingModuleKill | ( | unsigned int | id | ) |
Definition at line 712 of file manager.cpp.
| bool Manager::waitingModuleRun | ( | unsigned int | id | ) |
Definition at line 674 of file manager.cpp.
| bool Manager::waitingModuleStop | ( | unsigned int | id | ) |
Definition at line 694 of file manager.cpp.