176
176
LoggingStats *outer_logging_stats;
179
class SessionStatusTool : public drizzled::plugin::TableFunction
183
SessionStatusTool(LoggingStats *logging_stats);
185
class Generator : public drizzled::plugin::TableFunction::Generator
188
Generator(drizzled::Field **arg, LoggingStats *logging_stats,
189
std::vector<drizzled::drizzle_show_var *> *all_status_vars);
191
void fill(const std::string &name, char *value, drizzled::SHOW_TYPE show_type);
195
StatusVars *status_vars;
197
std::vector<drizzled::drizzle_show_var *>::iterator all_status_vars_it;
198
std::vector<drizzled::drizzle_show_var *>::iterator all_status_vars_end;
201
Generator *generator(drizzled::Field **arg)
203
return new Generator(arg, outer_logging_stats, &all_status_vars);
207
LoggingStats *outer_logging_stats;
209
std::vector<drizzled::drizzle_show_var *> all_status_vars;
214
class GlobalStatusTool : public drizzled::plugin::TableFunction
218
GlobalStatusTool(LoggingStats *logging_stats);
220
class Generator : public drizzled::plugin::TableFunction::Generator
223
Generator(drizzled::Field **arg, LoggingStats *logging_stats,
224
std::vector<drizzled::drizzle_show_var *> *all_status_vars);
226
void fill(const std::string &name, char *value, drizzled::SHOW_TYPE show_type);
230
LoggingStats *logging_stats;
231
StatusVars summed_status_vars;
232
std::vector<drizzled::drizzle_show_var *>::iterator all_status_vars_it;
233
std::vector<drizzled::drizzle_show_var *>::iterator all_status_vars_end;
236
Generator *generator(drizzled::Field **arg)
238
return new Generator(arg, outer_logging_stats, &all_status_vars);
242
LoggingStats *outer_logging_stats;
244
std::vector<drizzled::drizzle_show_var *> all_status_vars;
249
179
#endif /* PLUGIN_LOGGING_STATS_STATS_SCHEMA_H */