Electroneum
Loading...
Searching...
No Matches
daemonize::t_executor Class Referencefinal

#include <executor.h>

Collaboration diagram for daemonize::t_executor:

Public Types

typedef ::daemonize::t_daemon t_daemon

Public Member Functions

 t_executor (uint16_t public_rpc_port=0)
std::string const & name ()
t_daemon create_daemon (boost::program_options::variables_map const &vm)
bool run_non_interactive (boost::program_options::variables_map const &vm)
bool run_interactive (boost::program_options::variables_map const &vm)

Static Public Member Functions

static void init_options (boost::program_options::options_description &configurable_options)

Static Public Attributes

static std::string const NAME = "Electroneum Daemon"

Detailed Description

Definition at line 42 of file executor.h.

Member Typedef Documentation

◆ t_daemon

Constructor & Destructor Documentation

◆ t_executor()

daemonize::t_executor::t_executor ( uint16_t public_rpc_port = 0)
inline

Definition at line 49 of file executor.h.

49 : public_rpc_port(public_rpc_port)
50 {
51 }

Member Function Documentation

◆ create_daemon()

t_daemon t_executor::create_daemon ( boost::program_options::variables_map const & vm)

Definition at line 58 of file executor.cpp.

61 {
62 LOG_PRINT_L0("Electroneum '" << ELECTRONEUM_RELEASE_NAME << "' (v" << ELECTRONEUM_VERSION_FULL << ") Daemonised");
63 return t_daemon{vm, public_rpc_port};
64 }
::daemonize::t_daemon t_daemon
Definition executor.h:45
#define LOG_PRINT_L0(x)
Definition misc_log_ex.h:99
const char *const ELECTRONEUM_RELEASE_NAME
const char *const ELECTRONEUM_VERSION_FULL

◆ init_options()

void t_executor::init_options ( boost::program_options::options_description & configurable_options)
static

Definition at line 46 of file executor.cpp.

49 {
50 t_daemon::init_options(configurable_options);
51 }
static void init_options(boost::program_options::options_description &option_spec)
Definition daemon.cpp:93
Here is the call graph for this function:
Here is the caller graph for this function:

◆ name()

std::string const & t_executor::name ( )

Definition at line 53 of file executor.cpp.

54 {
55 return NAME;
56 }
static std::string const NAME
Definition executor.h:47

◆ run_interactive()

bool t_executor::run_interactive ( boost::program_options::variables_map const & vm)

Definition at line 73 of file executor.cpp.

76 {
77 return t_daemon{vm, public_rpc_port}.run(true);
78 }

◆ run_non_interactive()

bool t_executor::run_non_interactive ( boost::program_options::variables_map const & vm)

Definition at line 66 of file executor.cpp.

69 {
70 return t_daemon{vm, public_rpc_port}.run(false);
71 }

Member Data Documentation

◆ NAME

std::string const t_executor::NAME = "Electroneum Daemon"
static

Definition at line 47 of file executor.h.


The documentation for this class was generated from the following files:
  • /home/abuild/rpmbuild/BUILD/electroneum-5.1.3.1-build/electroneum-5.1.3.1/src/daemon/executor.h
  • /home/abuild/rpmbuild/BUILD/electroneum-5.1.3.1-build/electroneum-5.1.3.1/src/daemon/executor.cpp