salsa
0.4.0
|
TaskExecutorFake class. More...
#include <TaskExecutorFake.hh>
Public Member Functions | |
TaskExecutorFake (TaskPool *pTP) | |
virtual | ~TaskExecutorFake () |
virtual bool | run (std::string, std::string) |
Run task. More... | |
virtual void * | pipe () const |
virtual bool | handlePipe (std::vector< std::string > &extra) |
Handle pipe. More... | |
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. | |
Private Attributes | |
Object * | mpPointer {new Object()} |
Fake pointer. | |
std::string | mWorker {} |
Worker. | |
std::string | mUpstream {} |
Upstream. | |
TaskPool * | mpTaskPool = nullptr |
Fake pointer. | |
TaskExecutorFake class.
Definition at line 15 of file TaskExecutorFake.hh.
Salsa::TaskExecutorFake::TaskExecutorFake | ( | TaskPool * | pTP | ) |
Constructor
Definition at line 4 of file TaskExecutorFake.cc.
|
virtual |
|
virtual |
Handle pipe.
Handle pipe
Implements Salsa::TaskExecutor.
Definition at line 29 of file TaskExecutorFake.cc.
|
virtual |
Returns pipe
Reimplemented from Salsa::TaskExecutor.
Definition at line 41 of file TaskExecutorFake.cc.
References mpPointer.
|
virtual |
Run task.
Run
Implements Salsa::TaskExecutor.
Definition at line 17 of file TaskExecutorFake.cc.
References Salsa::TaskPool::handlePipe(), mpPointer, mpTaskPool, Salsa::TaskExecutor::mpTaskState, mUpstream, mWorker, and Salsa::TaskState::state().
|
inherited |
Sets task state
Definition at line 22 of file TaskExecutor.cc.
References Salsa::TaskExecutor::mpTaskState.
Referenced by Salsa::NodeManagerZyre::addTaskSlot().
|
inherited |
Returns task state
Definition at line 30 of file TaskExecutor.cc.
References Salsa::TaskExecutor::mpTaskState.