BitShares-Core  4.0.0
BitShares blockchain implementation and command-line interface software
Public Member Functions | Public Attributes | List of all members
graphene::app::application Class Reference

#include <application.hpp>

Public Member Functions

 application ()
 
 ~application ()
 
void set_program_options (boost::program_options::options_description &command_line_options, boost::program_options::options_description &configuration_file_options) const
 
void initialize (const fc::path &data_dir, const boost::program_options::variables_map &options)
 
void initialize_plugins (const boost::program_options::variables_map &options)
 
void startup ()
 
void shutdown ()
 
void startup_plugins ()
 
void shutdown_plugins ()
 
template<typename PluginType >
std::shared_ptr< PluginType > register_plugin (bool auto_load=false)
 
std::shared_ptr< abstract_pluginget_plugin (const string &name) const
 
template<typename PluginType >
std::shared_ptr< PluginType > get_plugin (const string &name) const
 
net::node_ptr p2p_node ()
 
std::shared_ptr< chain::databasechain_database () const
 
void set_api_limit ()
 
void set_block_production (bool producing_blocks)
 
fc::optional< api_access_infoget_api_access_info (const string &username) const
 
void set_api_access_info (const string &username, api_access_info &&permissions)
 
bool is_finished_syncing () const
 
const application_optionsget_options ()
 
void enable_plugin (const string &name)
 
bool is_plugin_enabled (const string &name) const
 

Public Attributes

boost::signals2::signal< void()> syncing_finished
 Emitted when syncing finishes (is_finished_syncing will return true) More...
 
std::shared_ptr< fc::threadelasticsearch_thread
 

Detailed Description

Definition at line 76 of file application.hpp.

Constructor & Destructor Documentation

graphene::app::application::application ( )

Definition at line 943 of file application.cpp.

graphene::app::application::~application ( )

Definition at line 947 of file application.cpp.

Member Function Documentation

std::shared_ptr< chain::database > graphene::app::application::chain_database ( ) const

Definition at line 1106 of file application.cpp.

void graphene::app::application::enable_plugin ( const string &  name)

Definition at line 1131 of file application.cpp.

optional< api_access_info > graphene::app::application::get_api_access_info ( const string &  username) const

Definition at line 1116 of file application.cpp.

const application_options & graphene::app::application::get_options ( )

Definition at line 1177 of file application.cpp.

std::shared_ptr< abstract_plugin > graphene::app::application::get_plugin ( const string &  name) const

Definition at line 1091 of file application.cpp.

template<typename PluginType >
std::shared_ptr<PluginType> graphene::app::application::get_plugin ( const string &  name) const
inline

Definition at line 121 of file application.hpp.

void graphene::app::application::initialize ( const fc::path data_dir,
const boost::program_options::variables_map &  options 
)

Definition at line 1054 of file application.cpp.

void graphene::app::application::initialize_plugins ( const boost::program_options::variables_map &  options)

Definition at line 1160 of file application.cpp.

bool graphene::app::application::is_finished_syncing ( ) const

Definition at line 1126 of file application.cpp.

bool graphene::app::application::is_plugin_enabled ( const string &  name) const

Definition at line 1096 of file application.cpp.

net::node_ptr graphene::app::application::p2p_node ( )

Definition at line 1101 of file application.cpp.

template<typename PluginType >
std::shared_ptr<PluginType> graphene::app::application::register_plugin ( bool  auto_load = false)
inline

Definition at line 92 of file application.hpp.

void graphene::app::application::set_api_access_info ( const string &  username,
api_access_info &&  permissions 
)

Definition at line 1121 of file application.cpp.

void graphene::app::application::set_api_limit ( )

Definition at line 1079 of file application.cpp.

void graphene::app::application::set_block_production ( bool  producing_blocks)

Definition at line 1111 of file application.cpp.

void graphene::app::application::set_program_options ( boost::program_options::options_description &  command_line_options,
boost::program_options::options_description &  configuration_file_options 
) const

Definition at line 960 of file application.cpp.

void graphene::app::application::shutdown ( )

Definition at line 1149 of file application.cpp.

void graphene::app::application::shutdown_plugins ( )

Definition at line 1143 of file application.cpp.

void graphene::app::application::startup ( )

Definition at line 1066 of file application.cpp.

void graphene::app::application::startup_plugins ( )

Definition at line 1167 of file application.cpp.

Member Data Documentation

std::shared_ptr<fc::thread> graphene::app::application::elasticsearch_thread

Definition at line 146 of file application.hpp.

boost::signals2::signal<void()> graphene::app::application::syncing_finished

Emitted when syncing finishes (is_finished_syncing will return true)

Definition at line 138 of file application.hpp.


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