Belle II Software  release-08-01-10
NSMCommunicator Class Reference
Collaboration diagram for NSMCommunicator:

Public Member Functions

 NSMCommunicator (const std::string &host="", int port=-1)
 
 NSMCommunicator (NSMcontext *nsmc)
 
void init (const NSMNode &node, const std::string &host, int port)
 
void setCallback (NSMCallback *callback)
 
void callContext ()
 
int getId () const
 
void setId (int id)
 
NSMMessagegetMessage ()
 
const NSMMessagegetMessage () const
 
void setMessage (const NSMMessage &msg)
 
const NSMNodegetNode () const
 
int getNodeIdByName (const std::string &name)
 
int getNodePidByName (const std::string &name)
 
const std::string & getHostName ()
 
int getPort ()
 
NSMCallbackgetCallback ()
 
bool isConnected (const std::string &node)
 
const std::string getNodeNameById (int id)
 
void pushQueue (const NSMMessage &msg)
 
bool hasQueue () const
 
NSMMessage popQueue ()
 

Static Public Member Functions

static NSMCommunicatorselect (double sec)
 
static NSMCommunicatorconnected (const std::string &node)
 
static NSMCommunicatorList & get ()
 
static bool send (const NSMMessage &msg)
 

Private Types

typedef std::vector< NSMCommunicator * > NSMCommunicatorList
 

Private Member Functions

NSMcontextgetContext ()
 
bool sendRequest (const NSMMessage &msg)
 

Private Attributes

int m_id
 
NSMcontextm_nsmc
 
NSMCallbackm_callback
 
NSMMessage m_message
 
std::string m_host
 
int m_port
 
NSMNode m_node
 
std::queue< NSMMessagem_msg_q
 

Static Private Attributes

static NSMCommunicatorList g_comm
 
static Mutex g_mutex
 
static Mutex g_mutex_select
 

Friends

class NSMData
 

Detailed Description

Definition at line 32 of file NSMCommunicator.h.


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