Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
db_size_api_plugin.hpp
Go to the documentation of this file.
1#pragma once
2
5
7
8namespace sysio {
9
10using namespace appbase;
11
16
23
24class db_size_api_plugin : public plugin<db_size_api_plugin> {
25public:
27
28 db_size_api_plugin() = default;
33 virtual ~db_size_api_plugin() override = default;
34
35 virtual void set_program_options(options_description& cli, options_description& cfg) override {}
36 void plugin_initialize(const variables_map& vm) {}
37 void plugin_startup();
39
41
42private:
43};
44
45}
46
47FC_REFLECT( sysio::db_size_index_count, (index)(row_count) )
48FC_REFLECT( sysio::db_size_stats, (free_bytes)(used_bytes)(size)(indices) )
db_size_api_plugin(const db_size_api_plugin &)=delete
void plugin_initialize(const variables_map &vm)
APPBASE_PLUGIN_REQUIRES((http_plugin)(chain_plugin)) db_size_api_plugin()=default
db_size_api_plugin & operator=(db_size_api_plugin &&)=delete
db_size_api_plugin(db_size_api_plugin &&)=delete
virtual ~db_size_api_plugin() override=default
db_size_api_plugin & operator=(const db_size_api_plugin &)=delete
virtual void set_program_options(options_description &cli, options_description &cfg) override
#define FC_REFLECT(TYPE, MEMBERS)
Specializes fc::reflector for TYPE.
Definition reflect.hpp:311
unsigned __int64 uint64_t
Definition stdint.h:136
vector< db_size_index_count > indices
void cli()