salsa 0.7.1
|
TaskExecutorFake class. More...
#include <TaskExecutorFake.hh>
Public Member Functions | |
TaskExecutorFake (TaskPool *pTP) | |
virtual | ~TaskExecutorFake () |
virtual bool | run (std::string, std::string) |
Run task. | |
virtual void * | pipe () const |
virtual bool | handlePipe (std::vector< std::string > &extra) |
Handle pipe. | |
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. | |
Static Private Attributes | |
static std::shared_ptr< spdlog::logger > | mspConsoleLogger = spdlog::stdout_color_mt("salsa") |
Pointer to spd logger. | |
TaskExecutorFake class.
Definition at line 15 of file TaskExecutorFake.hh.
Salsa::TaskExecutorFake::TaskExecutorFake | ( | TaskPool * | pTP | ) |
Constructor
Definition at line 4 of file TaskExecutorFake.cc.
References mpTaskPool, and Salsa::TaskExecutor::TaskExecutor().
|
virtual |
|
inlinestaticinherited |
Get console output.
Definition at line 21 of file Object.hh.
References mspConsoleLogger.
Referenced by Salsa::ConfigZyre::apply().
|
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 mpPointer, mpTaskPool, Salsa::TaskExecutor::mpTaskState, mUpstream, and mWorker.
|
inlinestaticinherited |
|
inherited |
|
inherited |
Sets task state
Definition at line 22 of file TaskExecutor.cc.
References mpTaskState.
Referenced by Salsa::NodeManagerZyre::addTaskSlot().
Fake pointer.
Definition at line 25 of file TaskExecutorFake.hh.
Referenced by pipe(), run(), and ~TaskExecutorFake().
|
private |
Fake pointer.
Definition at line 28 of file TaskExecutorFake.hh.
Referenced by run(), and TaskExecutorFake().
|
protectedinherited |
Task state.
Definition at line 31 of file TaskExecutor.hh.
Referenced by Salsa::TaskExecutorForkZmq::handlePipe(), Salsa::TaskExecutorFake::run(), Salsa::TaskExecutorForkZmq::run(), taskState(), and taskState().
|
staticprivateinherited |
Pointer to spd logger.
Definition at line 32 of file Object.hh.
Referenced by getConsoleOutput(), and setConsoleLevel().
|
private |
|
private |