salsa 0.7.1
Loading...
Searching...
No Matches
Salsa::TaskExecutorForkZmq Class Reference

TaskExecutorForkZmq class. More...

#include <TaskExecutorForkZmq.hh>

Inheritance diagram for Salsa::TaskExecutorForkZmq:
Salsa::TaskExecutor Salsa::Object

Public Member Functions

 TaskExecutorForkZmq (zactor_t *pActor=nullptr)
 
virtual ~TaskExecutorForkZmq ()
 
virtual bool run (std::string worker, std::string upstream)
 Run task.
 
virtual void * pipe () const
 
virtual bool handlePipe (std::vector< std::string > &extra)
 Handle pipe.
 
void taskState (TaskState *pTS)
 
TaskStatetaskState () 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

zactor_t * mpZActor = nullptr
 ZMQ Actor pointer.
 
TaskStatempTaskState = nullptr
 Task state.
 

Static Private Attributes

static std::shared_ptr< spdlog::logger > mspConsoleLogger = spdlog::stdout_color_mt("salsa")
 Pointer to spd logger.
 

Detailed Description

Constructor & Destructor Documentation

◆ TaskExecutorForkZmq()

Salsa::TaskExecutorForkZmq::TaskExecutorForkZmq ( zactor_t * pActor = nullptr)

Constructor

Definition at line 4 of file TaskExecutorForkZmq.cc.

References mpZActor, and Salsa::TaskExecutor::TaskExecutor().

◆ ~TaskExecutorForkZmq()

Salsa::TaskExecutorForkZmq::~TaskExecutorForkZmq ( )
virtual

Destructor

Definition at line 10 of file TaskExecutorForkZmq.cc.

References mpZActor.

Member Function Documentation

◆ getConsoleOutput()

static std::shared_ptr< spdlog::logger > Salsa::Object::getConsoleOutput ( )
inlinestaticinherited

Get console output.

Definition at line 21 of file Object.hh.

References mspConsoleLogger.

Referenced by Salsa::ConfigZyre::apply().

◆ handlePipe()

bool Salsa::TaskExecutorForkZmq::handlePipe ( std::vector< std::string > & )
virtual

Handle pipe.

Handle pipe

Implements Salsa::TaskExecutor.

Definition at line 58 of file TaskExecutorForkZmq.cc.

References Salsa::TaskExecutor::mpTaskState, and pipe().

◆ pipe()

void * Salsa::TaskExecutorForkZmq::pipe ( ) const
virtual

Returns pipe

Reimplemented from Salsa::TaskExecutor.

Definition at line 50 of file TaskExecutorForkZmq.cc.

References mpZActor.

Referenced by handlePipe(), and run().

◆ run()

bool Salsa::TaskExecutorForkZmq::run ( std::string ,
std::string  )
virtual

Run task.

Run

Implements Salsa::TaskExecutor.

Definition at line 19 of file TaskExecutorForkZmq.cc.

References Salsa::TaskExecutor::mpTaskState, and pipe().

◆ setConsoleLevel()

static void Salsa::Object::setConsoleLevel ( spdlog::level::level_enum level)
inlinestaticinherited

Sets console log level.

Definition at line 29 of file Object.hh.

References mspConsoleLogger.

◆ taskState() [1/2]

TaskState * Salsa::TaskExecutor::taskState ( ) const
inherited

Returns task state

Definition at line 30 of file TaskExecutor.cc.

References mpTaskState.

◆ taskState() [2/2]

void Salsa::TaskExecutor::taskState ( TaskState * pTS)
inherited

Sets task state

Definition at line 22 of file TaskExecutor.cc.

References mpTaskState.

Referenced by Salsa::NodeManagerZyre::addTaskSlot().

Member Data Documentation

◆ mpTaskState

TaskState* Salsa::TaskExecutor::mpTaskState = nullptr
protectedinherited

◆ mpZActor

zactor_t* Salsa::TaskExecutorForkZmq::mpZActor = nullptr
protected

ZMQ Actor pointer.

Definition at line 26 of file TaskExecutorForkZmq.hh.

Referenced by pipe(), TaskExecutorForkZmq(), and ~TaskExecutorForkZmq().

◆ mspConsoleLogger

std::shared_ptr< spdlog::logger > Salsa::Object::mspConsoleLogger = spdlog::stdout_color_mt("salsa")
staticprivateinherited

Pointer to spd logger.

Definition at line 32 of file Object.hh.

Referenced by getConsoleOutput(), and setConsoleLevel().


The documentation for this class was generated from the following files: