32 #include <drizzled/gettext.h>
33 #include <boost/program_options.hpp>
35 #include "stats_table.h"
36 #include "analysis_table.h"
37 #include "sysvar_holder.h"
42 namespace po=boost::program_options;
44 namespace drizzle_plugin
51 static AnalysisTableTool *analysis_table_tool;
53 static StatsTableTool *stats_table_tool;
58 static std::string sysvar_memcached_servers;
71 stats_table_tool=
new StatsTableTool;
72 context.add(stats_table_tool);
74 analysis_table_tool=
new AnalysisTableTool;
75 context.add(analysis_table_tool);
77 context.registerVariable(
new sys_var_std_string(
"servers",
78 sysvar_memcached_servers));
86 po::value<std::string>()->default_value(
""),
87 _(
"List of memcached servers."));
92 DRIZZLE_DECLARE_PLUGIN
98 N_(
"Dictionary of memcached statistics"),
100 drizzle_plugin::init,
102 drizzle_plugin::init_options
104 DRIZZLE_DECLARE_PLUGIN_END;