salsa 0.7.1
|
Base TaskExecutor class. More...
#include <TaskExecutor.hh>
Public Member Functions | |
TaskExecutor () | |
virtual | ~TaskExecutor () |
virtual bool | run (std::string, std::string)=0 |
Run task. | |
virtual bool | handlePipe (std::vector< std::string > &)=0 |
Handle pipe. | |
virtual void * | pipe () const |
void | taskState (TaskState *pTS) |
TaskState * | taskState () const |
Static Public Member Functions | |
static std::shared_ptr< spdlog::logger > | getConsoleOutput () |
Get console output. | |
static void | setConsoleLevel (spdlog::level::level_enum level) |
Sets console log level. | |
Protected Attributes | |
TaskState * | mpTaskState = nullptr |
Task state. | |
Static Private Attributes | |
static std::shared_ptr< spdlog::logger > | mspConsoleLogger = spdlog::stdout_color_mt("salsa") |
Pointer to spd logger. | |
Base TaskExecutor class.
Definition at line 14 of file TaskExecutor.hh.
Salsa::TaskExecutor::TaskExecutor | ( | ) |
Constructor
Definition at line 3 of file TaskExecutor.cc.
|
virtual |
Destructor
Definition at line 9 of file TaskExecutor.cc.
|
inlinestaticinherited |
Get console output.
Definition at line 21 of file Object.hh.
References Salsa::Object::mspConsoleLogger.
Referenced by Salsa::ConfigZyre::apply().
|
pure virtual |
Handle pipe.
Implemented in Salsa::TaskExecutorFake, and Salsa::TaskExecutorForkZmq.
Referenced by Salsa::TaskPool::handlePipe().
|
virtual |
Returns pointer to pipe
Reimplemented in Salsa::TaskExecutorFake, and Salsa::TaskExecutorForkZmq.
Definition at line 15 of file TaskExecutor.cc.
Referenced by Salsa::NodeManagerZyre::addTaskSlot(), and Salsa::TaskPool::handlePipe().
|
pure virtual |
Run task.
Implemented in Salsa::TaskExecutorForkZmq, and Salsa::TaskExecutorFake.
Referenced by Salsa::NodeManagerZyre::runTask().
|
inlinestaticinherited |
Sets console log level.
Definition at line 29 of file Object.hh.
References Salsa::Object::mspConsoleLogger.
TaskState * Salsa::TaskExecutor::taskState | ( | ) | const |
void Salsa::TaskExecutor::taskState | ( | TaskState * | pTS | ) |
Sets task state
Definition at line 22 of file TaskExecutor.cc.
References mpTaskState.
Referenced by Salsa::NodeManagerZyre::addTaskSlot().
|
protected |
Task state.
Definition at line 31 of file TaskExecutor.hh.
Referenced by Salsa::TaskExecutorForkZmq::handlePipe(), Salsa::TaskExecutorForkZmq::run(), Salsa::TaskExecutorFake::run(), taskState(), and taskState().
|
staticprivateinherited |
Pointer to spd logger.
Definition at line 32 of file Object.hh.
Referenced by Salsa::Object::getConsoleOutput(), and Salsa::Object::setConsoleLevel().