|
NebulaStream
0.6.213
NebulaStream is a data and application management framework for the internet of things
|
ZMQ server on hostname:port with numNetworkThreads i/o threads and a set of callbacks in exchangeProtocol. This class is not copyable. More...
#include <ZmqServer.hpp>
Public Member Functions | |
| ZmqServer (std::string hostname, uint16_t requestedPort, uint16_t numNetworkThreads, ExchangeProtocol &exchangeProtocol, Runtime::BufferManagerPtr bufferManager) | |
| ~ZmqServer () | |
| bool | start () |
| bool | stop () |
| std::shared_ptr< zmq::context_t > | getContext () |
| bool | isServerRunning () const |
| uint16_t | getServerPort () const |
| std::string | getHostname () const |
| uint16_t | getNumOfThreads () const |
| uint16_t | getRequestedPort () const |
| void | getServerSocketInfo (std::string &hostname, uint16_t &port) |
| Retrieves the current server socket information. More... | |
ZMQ server on hostname:port with numNetworkThreads i/o threads and a set of callbacks in exchangeProtocol. This class is not copyable.
|
explicit |
Create a ZMQ server on hostname:port with numNetworkThreads i/o threads and a set of callbacks in exchangeProtocol
| hostname | |
| port | |
| numNetworkThreads | |
| exchangeProtocol |
References NES_DEBUG, and NES_WARNING.
| NES::Network::ZmqServer::~ZmqServer | ( | ) |
|
inline |
Get the global zmq context
|
inline |
Returns the hostname
|
inline |
Returns the hostname
|
inline |
Returns the hostname
|
inline |
Returns the current server port
Referenced by NES::Network::TEST_F().
| void NES::Network::ZmqServer::getServerSocketInfo | ( | std::string & | hostname, |
| uint16_t & | port | ||
| ) |
Retrieves the current server socket information.
| hostname | the hostname in use |
| port | the port in use |
|
inline |
Checks if the server is running
Referenced by NES::Network::TEST_F().
| bool NES::Network::ZmqServer::start | ( | ) |
Start the server. It throws exceptions if the starting fails.
References NES_DEBUG, and NES::setThreadName().
Referenced by NES::Network::TEST_F().
| bool NES::Network::ZmqServer::stop | ( | ) |
Stop the server. It throws exceptions if the stopping fails.
plz do not change the above shutdown sequence following zmq's guidelines, the correct way to terminate it is to:
References NES_DEBUG, NES_ERROR, NES_INFO, and NES_WARNING.
Referenced by ~ZmqServer().