~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin/logging.h

  • Committer: Brian Aker
  • Date: 2009-11-24 02:06:37 UTC
  • mfrom: (1223.1.7 push)
  • Revision ID: brian@gaz-20091124020637-9gb65vj98x1arydm
MergeĀ forĀ staging.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
 *
4
4
 *  Definitions required for Query Logging plugin
5
5
 *
6
 
 *  Copyright (C) 2008 Sun Microsystems, Inc.
 
6
 *  Copyright (C) 2008 Sun Microsystems
7
7
 *
8
8
 *  This program is free software; you can redistribute it and/or modify
9
9
 *  it under the terms of the GNU General Public License as published by
22
22
#ifndef DRIZZLED_PLUGIN_LOGGING_H
23
23
#define DRIZZLED_PLUGIN_LOGGING_H
24
24
 
25
 
#include "drizzled/plugin/plugin.h"
26
 
 
27
25
#include <string>
28
26
 
29
 
#include "drizzled/visibility.h"
30
 
 
31
27
namespace drizzled
32
28
{
33
 
class Session;
34
 
 
35
29
namespace plugin
36
30
{
37
31
 
38
 
class DRIZZLED_API Logging : public Plugin
 
32
class Logging : public Plugin
39
33
{
40
34
  Logging();
41
35
  Logging(const Logging &);
52
46
   */
53
47
  virtual bool pre(Session *) {return false;}
54
48
  virtual bool post(Session *) {return false;}
55
 
  virtual bool postEnd(Session*) {return false;}
56
 
  virtual bool resetGlobalScoreboard() {return false;}
57
49
 
58
50
  static bool addPlugin(Logging *handler);
59
51
  static void removePlugin(Logging *handler);
60
52
  static bool preDo(Session *session);
61
53
  static bool postDo(Session *session);
62
 
  static bool postEndDo(Session *session);
63
 
  static bool resetStats(Session *session);
64
54
};
65
55
 
66
56
} /* namespace plugin */