Wire Sysio
Wire Sysion 1.0.0
Loading...
Searching...
No Matches
resource_monitor_plugin.hpp
Go to the documentation of this file.
1
#pragma once
2
#include <
appbase/application.hpp
>
3
#include <
sysio/chain_plugin/chain_plugin.hpp
>
4
5
namespace
sysio
{
6
7
using namespace
appbase
;
8
9
class
resource_monitor_plugin
:
public
appbase::plugin
<resource_monitor_plugin> {
10
public
:
11
resource_monitor_plugin
( );
12
virtual
~resource_monitor_plugin
();
13
14
APPBASE_PLUGIN_REQUIRES
( (
chain_plugin
) )
15
virtual
void
set_program_options
(options_description&, options_description& cfg)
override
;
16
17
void
plugin_initialize
(
const
variables_map& options);
18
void
plugin_startup
();
19
void
plugin_shutdown
();
20
21
// Called by plugins and other components to request
22
// directory monitoring
23
void
monitor_directory
(
const
bfs::path&
path
);
24
25
private
:
26
std::unique_ptr<class resource_monitor_plugin_impl> my;
27
};
28
29
}
application.hpp
chain_plugin.hpp
appbase::plugin
Definition
plugin.hpp:48
fc::path
wraps boost::filesystem::path to provide platform independent path manipulation.
Definition
filesystem.hpp:28
sysio::chain_plugin
Definition
chain_plugin.hpp:763
sysio::resource_monitor_plugin
Definition
resource_monitor_plugin.hpp:9
sysio::resource_monitor_plugin::set_program_options
virtual void set_program_options(options_description &, options_description &cfg) override
Definition
resource_monitor_plugin.cpp:164
sysio::resource_monitor_plugin::monitor_directory
void monitor_directory(const bfs::path &path)
Definition
resource_monitor_plugin.cpp:180
sysio::resource_monitor_plugin::plugin_initialize
void plugin_initialize(const variables_map &options)
Definition
resource_monitor_plugin.cpp:168
sysio::resource_monitor_plugin::~resource_monitor_plugin
virtual ~resource_monitor_plugin()
Definition
resource_monitor_plugin.cpp:162
sysio::resource_monitor_plugin::resource_monitor_plugin
resource_monitor_plugin()
Definition
resource_monitor_plugin.cpp:160
sysio::resource_monitor_plugin::plugin_startup
void plugin_startup()
Definition
resource_monitor_plugin.cpp:172
sysio::resource_monitor_plugin::plugin_shutdown
void plugin_shutdown()
Definition
resource_monitor_plugin.cpp:176
appbase
Definition
application.cpp:18
sysio
Definition
abi_serializer.cpp:8
APPBASE_PLUGIN_REQUIRES
#define APPBASE_PLUGIN_REQUIRES(PLUGINS)
Definition
plugin.hpp:11
plugins
resource_monitor_plugin
include
sysio
resource_monitor_plugin
resource_monitor_plugin.hpp
Generated by
1.12.0