salsa  0.3.0
 All Classes Functions Variables Enumerations Pages
NodeManagerZyre.hh
1 #pragma once
2 
3 #include <NodeManager.hh>
4 #include <NodeZyre.hh>
5 
6 namespace Salsa {
15 
16 class NodeManagerZyre : public NodeManager {
17 public:
18  NodeManagerZyre(NodeZyre * pNodeZyre);
19  virtual ~NodeManagerZyre();
20 
21  virtual Socket * onEnter(std::string self, std::string fromType, Message * pMsg, std::vector<std::string> & out);
22  virtual Socket * onExit(std::string self, Message * pMsg, std::vector<std::string> & out);
23  virtual Socket * onWhisper(std::string self, Message * pMsg, std::vector<std::string> & out);
24 
25  virtual bool handleTaskPool(void * pPool);
26  virtual void addTaskSlot();
27  virtual void runTask(TaskState * pTaskState, std::string wk, std::string upstream);
28  virtual bool sendWhisper(Socket * pSocket, std::string to, std::vector<std::string> & vect);
29 
30 private:
31  NodeZyre * mpNodeZyre = nullptr;
32 };
33 } // namespace Salsa
virtual Socket * onEnter(std::string self, std::string fromType, Message *pMsg, std::vector< std::string > &out)
Base Message class.
Definition: Message.hh:15
NodeManagerZyre(NodeZyre *pNodeZyre)
Base salsa TaskState class.
Definition: TaskState.hh:16
NodeManager class.
Definition: NodeManager.hh:20
virtual Socket * onExit(std::string self, Message *pMsg, std::vector< std::string > &out)
NodeZyre * mpNodeZyre
Current zyre node.
virtual bool sendWhisper(Socket *pSocket, std::string to, std::vector< std::string > &vect)
virtual Socket * onWhisper(std::string self, Message *pMsg, std::vector< std::string > &out)
virtual void runTask(TaskState *pTaskState, std::string wk, std::string upstream)
Run task interface.
Base Socket class.
Definition: Socket.hh:15
salsa node class
Definition: NodeZyre.hh:20
virtual bool handleTaskPool(void *pPool)
NodeManagerZyre class.
virtual void addTaskSlot()