helics
3.5.2
|
#include <BrokerServer.hpp>
Public Member Functions | |
BrokerServer () noexcept | |
BrokerServer (int argc, char *argv[]) | |
BrokerServer (std::vector< std::string > args) | |
BrokerServer (std::string_view configFile) | |
~BrokerServer () | |
void | startServers () |
void | forceTerminate () |
void | closeServers () |
Static Public Member Functions | |
static bool | hasActiveBrokers () |
helper class defining some common functionality for brokers and cores that use different communication methods
|
noexcept |
default constructor
helics::apps::BrokerServer::BrokerServer | ( | int | argc, |
char * | argv[] | ||
) |
construct from command line arguments
argc | the number of arguments |
argv | the strings in the input |
|
explicit |
construct from command line arguments contained in a vector
args | the number of arguments |
|
explicit |
construct from command line arguments parsed as a single string
configFile | a configuration file for the broker Server |
helics::apps::BrokerServer::~BrokerServer | ( | ) |
destructor
References closeServers().
void helics::apps::BrokerServer::closeServers | ( | ) |
close the broker server from creating new brokers
Referenced by forceTerminate(), and ~BrokerServer().
void helics::apps::BrokerServer::forceTerminate | ( | ) |
force terminate all running brokers
References closeServers(), and helics::BrokerFactory::getAllBrokers().
|
static |
check if there are any active Brokers running
References helics::BrokerFactory::brokersActive().
void helics::apps::BrokerServer::startServers | ( | ) |
start the broker servers