Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
sysio::trace_api_plugin Class Reference

#include <trace_api_plugin.hpp>

Inheritance diagram for sysio::trace_api_plugin:
Collaboration diagram for sysio::trace_api_plugin:

Public Member Functions

 APPBASE_PLUGIN_REQUIRES ((chain_plugin)(http_plugin)) trace_api_plugin()
 
virtual ~trace_api_plugin ()
 
virtual void set_program_options (appbase::options_description &cli, appbase::options_description &cfg) override
 
void plugin_initialize (const appbase::variables_map &options)
 
void plugin_startup ()
 
void plugin_shutdown ()
 
void handle_sighup () override
 
- Public Member Functions inherited from appbase::plugin< trace_api_plugin >
 plugin ()
 
virtual ~plugin ()
 
virtual state get_state () const override
 
virtual const std::string & name () const override
 
virtual void register_dependencies ()
 
virtual void initialize (const variables_map &options) override
 
virtual void startup () override
 
virtual void shutdown () override
 
- Public Member Functions inherited from appbase::abstract_plugin
virtual ~abstract_plugin ()
 

Additional Inherited Members

- Public Types inherited from appbase::abstract_plugin
enum  state { registered , initialized , started , stopped }
 
- Protected Member Functions inherited from appbase::plugin< trace_api_plugin >
 plugin (const string &name)
 

Detailed Description

Plugin that runs both a data extraction and the HTTP RPC in the same application

Definition at line 10 of file trace_api_plugin.hpp.

Constructor & Destructor Documentation

◆ ~trace_api_plugin()

sysio::trace_api_plugin::~trace_api_plugin ( )
virtual

Definition at line 428 of file trace_api_plugin.cpp.

429{}

Member Function Documentation

◆ APPBASE_PLUGIN_REQUIRES()

sysio::trace_api_plugin::APPBASE_PLUGIN_REQUIRES ( (chain_plugin)(http_plugin) )

◆ handle_sighup()

void sysio::trace_api_plugin::handle_sighup ( )
overridevirtual

Reimplemented from appbase::plugin< trace_api_plugin >.

Definition at line 461 of file trace_api_plugin.cpp.

461 {
463}
static void update(const fc::string &name, logger &log)
Definition logger.cpp:92
const fc::string logger_name("net_plugin_impl")
fc::logger _log
Here is the call graph for this function:
Here is the caller graph for this function:

◆ plugin_initialize()

void sysio::trace_api_plugin::plugin_initialize ( const appbase::variables_map & options)

Definition at line 437 of file trace_api_plugin.cpp.

437 {
438 auto common = std::make_shared<trace_api_common_impl>();
439 common->plugin_initialize(options);
440
441 my = std::make_shared<trace_api_plugin_impl>(common);
442 my->plugin_initialize(options);
443
444 rpc = std::make_shared<trace_api_rpc_plugin_impl>(common);
445 rpc->plugin_initialize(options);
446}

◆ plugin_shutdown()

void sysio::trace_api_plugin::plugin_shutdown ( )

Definition at line 455 of file trace_api_plugin.cpp.

455 {
456 my->plugin_shutdown();
457 rpc->plugin_shutdown();
458 fc_ilog( _log, "exit shutdown");
459}
#define fc_ilog(LOGGER, FORMAT,...)
Definition logger.hpp:83

◆ plugin_startup()

void sysio::trace_api_plugin::plugin_startup ( )

Definition at line 448 of file trace_api_plugin.cpp.

448 {
449 handle_sighup(); // setup logging
450
451 my->plugin_startup();
452 rpc->plugin_startup();
453}
Here is the call graph for this function:

◆ set_program_options()

void sysio::trace_api_plugin::set_program_options ( appbase::options_description & cli,
appbase::options_description & cfg )
overridevirtual

Implements appbase::abstract_plugin.

Definition at line 431 of file trace_api_plugin.cpp.

431 {
435}
static void set_program_options(appbase::options_description &cli, appbase::options_description &cfg)
static void set_program_options(appbase::options_description &cli, appbase::options_description &cfg)
static void set_program_options(appbase::options_description &cli, appbase::options_description &cfg)
void cli()
Here is the call graph for this function:

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